Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Use condtions for ES but then submit orders for another futures contract
Collapse
X
-
Hello durdcash,
You could do that using the strategy builder. You would need to use the NQ as the primary instrument that you apply the strategy to and then add the ES as a secondary instrument in the builder. That would let you form conditions based on ES prices and submit orders to the NQ primary instrument.
https://ninjatrader.com/support/help...standingTheAdd itrionalDataScreen
https://ninjatrader.com/support/help..._builder.htm#H owToMakePriceDataComparisons
You can also make more complex scripts in manual coding that use any primary instrument you wanted and submit orders to any of the secondary instruments that you add.
-
I have been able to finally get this to work where I have my ES conditions submit for trade 1 which is ES and then trade submits to NQ. Currently the only way I have to exit is when ES hits my trade profit target it sells NQ. What is the best way to make it to use the data from NQ. I have created the data series for NQ and am using the index of [1] for the trades. Do I need to create other variables in other locations for example on bar update do I need to add the barsinprogress==1 for another section and then move the exit logic there?
Comment
-
Hello durdcash,
If you are manually coding the strategy you can add any series that you want the strategy to use and then isolate parts of its logic using barsinprogress conditions. If you wanted the NQ data used and that is barsinprogress 1 then that exit logic would need to go inside thata part of the script. You can see some examples of separating logic in the following page:
Comment
-
durdcash here's a 3rd party add-on that does what you want --> https://www.speedytradingservers.com...-8-replicator/
Comment
-
NinjaTrader_Jesse Thanks! Looks like I got it all figured it out. From the code I have for exit, I was still referencing position[0] instead of positions[1].
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
64 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
139 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
75 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
45 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
50 views
0 likes
|
Last Post
|

Comment