Forum: NinjaTrader
July 11th, 2011, 10:06 PM
|
Replies: 4
Views: 7,063
For the record,
You were 100% correct Big...
For the record,
You were 100% correct Big Mike.
At first, I was only testing the indicator containing the statement on daily charts with Kinetick EOD data. Essentially, those are historical...
|
Forum: NinjaTrader
July 3rd, 2011, 01:44 AM
|
Replies: 4
Views: 7,063
Actually, it was my bad.
The statement does...
Actually, it was my bad.
The statement does work in NinjaScript, but you have to make sure that you use the if (CurrentBar < n) return;
statement properly first. I'm not used to doing this as...
|
Forum: NinjaTrader
July 2nd, 2011, 09:05 PM
|
Replies: 4
Views: 7,063
Determining the 'Last' Bar
In ThinkScript, you can use the following statement:
If IsNan(Close[-1]) then 1 else 0;
to determine if the bar being 'processed' is the last one or if there are more bars ahead of it.
I...
|