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 CarlTrading, 03-31-2026, 09:41 PM
|
1 response
45 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
31 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
42 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment