Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
running strategy on multiple instruments
Collapse
X
-
running strategy on multiple instruments
I have a strategy i want to run on ES and NQ at the same time. Is there a way i can prevent the strategy from taking a position on 1 instrument if it is currently in a position on the other instrument. Eample: I don't want to enter a short position on ES if I am currently long NQ.Tags: None
-
Hello Tyler803,
Yes you would need to use a multi instrument strategy so the strategy knows about both instruments and their position. There is a good deal of information in the following link going over using secondary series in a script. If you scroll all the way to the bottom there is a sample using two instruments for trading.
To know the position of each instrument you would use the plural Positions collection: https://ninjatrader.com/support/help...tsub=positions
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
88 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
134 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
68 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
119 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
69 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment