Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
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 sgordet, Today, 11:48 AM
|
0 responses
0 views
0 likes
|
Last Post
by sgordet
Today, 11:48 AM
|
||
Started by Trader146, Today, 11:41 AM
|
0 responses
2 views
0 likes
|
Last Post
by Trader146
Today, 11:41 AM
|
||
Started by jpapa, 04-23-2024, 07:22 AM
|
2 responses
16 views
0 likes
|
Last Post
by rene69851
Today, 11:39 AM
|
||
Started by funk10101, Today, 11:35 AM
|
0 responses
1 view
0 likes
|
Last Post
by funk10101
Today, 11:35 AM
|
||
Started by samish18, Today, 11:26 AM
|
0 responses
1 view
0 likes
|
Last Post
by samish18
Today, 11:26 AM
|
Comment