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 kinfxhk, 07-14-2026, 09:39 AM
|
0 responses
15 views
0 likes
|
Last Post
by kinfxhk
07-14-2026, 09:39 AM
|
||
|
Started by kinfxhk, 07-13-2026, 10:18 AM
|
0 responses
59 views
0 likes
|
Last Post
by kinfxhk
07-13-2026, 10:18 AM
|
||
|
Started by kinfxhk, 07-13-2026, 09:50 AM
|
0 responses
42 views
0 likes
|
Last Post
by kinfxhk
07-13-2026, 09:50 AM
|
||
|
Started by kinfxhk, 07-13-2026, 07:21 AM
|
0 responses
47 views
0 likes
|
Last Post
by kinfxhk
07-13-2026, 07:21 AM
|
||
|
Started by kinfxhk, 07-11-2026, 02:11 AM
|
0 responses
38 views
0 likes
|
Last Post
by kinfxhk
07-11-2026, 02:11 AM
|

Comment