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 cmoran13, Yesterday, 01:02 PM
|
0 responses
29 views
0 likes
|
Last Post
by cmoran13
Yesterday, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
21 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|
||
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
160 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
95 views
1 like
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
148 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|

Comment