What do I set up in the strategy builder to make a stop order stay (do not disappear after the bar ends) until it is filled?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Stop order filling
Collapse
X
-
Hello Carlos19.
Thanks for your post.
The Strategy Builder uses the Managed Approach for submitting and handling orders.
By default, orders submitted via Entry() and Exit() methods automatically cancel at the end of a bar if not re-submitted. This could be seen on the Managed Approach help guide page linked below.
Managed Approach: https://ninjatrader.com/support/help...d_approach.htm
To keep orders alive so they do not close automatically at the end of a bar, you could unlock the script from the Strategy Builder and use the Entry and Exit method isLiveUntilCancelled overload. When this parameter is set to true, the order will not cancel at the end of a bar.
Note that this is only possible in an unlocked script, not in a Strategy Builder strategy.
See this reference sample demonstrating keeping orders alive using the isLiveUntilCancelled overload: https://ninjatrader.com/support/help...ders_alive.htm
Please let me know if I may assist you further.<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 Mindset, 04-21-2026, 06:46 AM
|
0 responses
90 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
137 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
68 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
120 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
71 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment