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 NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
72 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
143 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
76 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
47 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
51 views
0 likes
|
Last Post
|

Comment