For example if I have 3 strats all running NQ instrument and all 3 are enabled and 1 is currently in a live trade, another strat meets all the conditions and should kick off and start running but I want it to ignore the trade since another strat is live. Is this possible?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
how to not allow a Strat to start if the instrument is being used by another strat
Collapse
X
-
how to not allow a Strat to start if the instrument is being used by another strat
Hi, I'm wondering if it's possible either with a feature in NinjaTrader or a way to code it in to stop a strat from kicking off if the instrument is being used on another strat.
For example if I have 3 strats all running NQ instrument and all 3 are enabled and 1 is currently in a live trade, another strat meets all the conditions and should kick off and start running but I want it to ignore the trade since another strat is live. Is this possible?Tags: None
-
Hello gm7_forum,
Thanks for your post.
A NinjaScript strategy cannot see orders placed by other strategies. They also cannot see any orders that are manually placed.
There would be no NinjaScript methods or properties to prevent a NinjaScript strategy from being enabled if another strategy is running on the same instrument.
Something you could consider is using PositionAccount.MarketPosition to check if you are in a flat position on the account before submitting an order from the strategy to the same account the other strategy is running on.
PositionAccount: https://ninjatrader.com/support/help...ionaccount.htm<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
43 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
20 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
30 views
1 like
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
49 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
38 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment