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 NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
62 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
134 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