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 CaptainJack, 05-29-2026, 05:09 AM
|
0 responses
388 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 05:09 AM
|
||
|
Started by CaptainJack, 05-29-2026, 12:02 AM
|
0 responses
260 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 12:02 AM
|
||
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
218 views
1 like
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
302 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
268 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|

Comment