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 Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
666 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
377 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
110 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
575 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
580 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment