Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
why is limit order canceled after 1 bar with EnterLongLimit()?
Collapse
X
-
why is limit order canceled after 1 bar with EnterLongLimit()?
I use the EnterLongLimit() to place a limit order. but it is canceled as soon as the current bar is closed. how to make the limit order in place until I want to cancel it?Tags: None
-
b/c limit order is first come first serve, that way my limit order will be at the last of the queue every time the bar updates, and be last to get filled. is there a way to keep the limit order so that I keep be in line in the queue?Originally posted by NinjaTrader_Josh View Postleontancfa,
By default, if you do not resubmit your limit order, it will expire and auto cancel. If you want to keep it active you should resubmit on every OnBarUpdate() you want to keep it alive for.
Comment
-
what is the method for resubmit? can't find sth like resubmit() in referenceOriginally posted by NinjaTrader_Josh View PostNo, when you resubmit it does not remove your space in the queue. All it does is tell NT to keep the order alive and not cancel it. What happens is not the replacement of your order, but simply to let NT continue managing it.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
65 views
0 likes
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
149 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
162 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
99 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
286 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|

Comment