Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
NT7 64-bit multi-instrument issue/question
Collapse
X
-
NT7 64-bit multi-instrument issue/question
I've been trying to program a strategy on NT7 64-bit that utilizes an index as a 2nd instrument. The strategy runs just fine if I add a stock (say Add("MSFT", PeriodType.Day, 1)) but doesn't run if I Add("^DJIA", PeriodType.Day, 1) or ^SP500, ^VIX, etc. I know the historical data exist for these indices in my DB, and I can chart the indices just fine. I also get no error message on the Log tab from the control panel. I'm referencing the appropriate instrument from the strategy using BarsArray / BarsInProgress, and I know it works since all I have to do is substitute a stock such as AA, AAPL, MSFT, etc in the Add line and it works just fine. I'm stuck - any thoughts / help would be much appreciated. -
An index works fine as a second instrument; make sure to use ToDay(Time[0]) to strip away the time when checking date equivalence; the time part for a daily bar's timestamp will change based on the session selected.
I've posted a few multi-instrument indicators you can look at; one of them (Beta) uses ^SP500 as it's default second instrument.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
74 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
40 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
63 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
63 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
53 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment