Please send in an email to support [at] ninjatrader [dot] com with a link to this thread and Attn: Josh in the subject. Please include your phone number and I will arrange for the proper resources to assist you tomorrow. Thank you.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Problem with "Closes"
Collapse
X
-
In NT6.5, what would be the equivalent to the NT7 code below? (Noting that CurrentBars[x] doesn't exist in NT6.5)
Here's an example using NT7:
if (BarsInProgress == 0)
{
if(CurrentBars[1] >=2)
{if(Closes[1][0] >= Closes[1][1])
{
Cls1up =1;
}
else
Cls1up =0;
}
}
Comment
-
Brett,
Any progress on the BarsArray issue with Gain Capital data? Is this a bug in the NT7 platform as you had speculated? If so, will the bug be fixed in the next beta, NT7 v20?
Also, I tried your suggestion (sent via Skype IM) to set CurrentBars[1] >= 20 but that just gave me an OnBarUpdate() error "You are accessing an index with a value that is invalid since its out of range."
See attachment for the code that I used.
Thx,
Lou
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by SalmaTrader, 07-07-2026, 10:26 PM
|
0 responses
50 views
0 likes
|
Last Post
by SalmaTrader
07-07-2026, 10:26 PM
|
||
|
Started by CarlTrading, 07-05-2026, 01:16 PM
|
0 responses
22 views
0 likes
|
Last Post
by CarlTrading
07-05-2026, 01:16 PM
|
||
|
Started by CaptainJack, 06-17-2026, 10:32 AM
|
0 responses
16 views
0 likes
|
Last Post
by CaptainJack
06-17-2026, 10:32 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:15 AM
|
0 responses
22 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:15 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:06 AM
|
0 responses
23 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:06 AM
|

Comment