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 CarlTrading, 03-31-2026, 09:41 PM
|
1 response
45 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
21 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
31 views
1 like
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
50 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
42 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment