Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Making orders not update on Bar Closing
Collapse
X
-
Making orders not update on Bar Closing
I have a strategy (using Strategy Builder) that submits an order which stays open until that bar ends then it cancels. Is there a way to make the order stay open until filled? Also, this is a similar but opposite end problem. If I have a stop loss set to close price +/-and offset can I make that not update when the bar closes? In other words the stop loss updates to the next bar instead of just becoming a fixed price.Tags: None
-
Hello Zinger357,
The Strategy Builder orders are submitted without the isLiveUntilCancelled bool as true; so will automatically cancel when the submission bar closes if they are not resubmitted.
To keep the order alive, re-submit the order using the original price on each new bar.
Below is a link to an example.
Alternatively, you could unlock the script and submit the order using the isLiveUntilCancelled bool parameter as true and the order will not automatically cancel.
Below are links to examples.
Chelsea B.NinjaTrader Customer Service
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Today, 05:17 AM
|
0 responses
52 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
130 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
70 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
44 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
48 views
0 likes
|
Last Post
|

Comment