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 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
21 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
50 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
40 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment