Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Multi instrument strategy
Collapse
X
-
Multi instrument strategy
Hi, I would like to add a 2nd instrument to a strategy and could use some help. I went to this link http://www.ninjatrader-support.com/H...ameInstruments but it must have been changed because it had nothing about programming. If someone could point me in the right direction it would be appreciated.Tags: None
-
Hello snotrag12,
Thank you for your post.
You can find information on multiple time frames and instruments in NinjaScript at the following link: http://www.ninjatrader.com/support/h...nstruments.htm
Please let me know if I may be of further assistance.
-
Coding problem
I generated a simple strategy via wizard: If close is greater than previous close plus offset enter short. I then unlocked the code and added the ^Vix daily, line 40. No problem. I then tried to change line 51: If close of ^Vix is greater than previous close of ^Vix plus offset enter short. I tried to add the ^Vix with BarsArray. Didn't work. Perhaps you could straighten out my mistake on this. I've enclosed a screenshot of the offending code.
thanks for your help
Comment
-
Hello snotrag12,
Thank you for your response.
You can use Closes to access the additional bar series that have been added to your code: http://www.ninjatrader.com/support/h...nt7/closes.htm
Please review the link above for information on Closes.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
646 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
367 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
107 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
569 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
573 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment