Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
ATM Strategy Cancel Order After 1 bar
Collapse
X
-
Hi babouin77, I moved the post to a new topic since the other one was a year old:
https://ninjatrader.com/support/forum/node/1220868
We do not have an existing example of this but the methods are all documented to accomplish it. The documentation here has an example on how to use GetAtmStrategyEntryOrderStatus to first read the status fo the entry order, and if its working, cancel it using AtmStrategyCancelEntryOrder():
To add onto the condition to check if at least one bar has passed you can save a class level variable, setting it to the CurrentBar value when you submit the entry order, and cancel if the next CurrentBar == SavedValue+1.
Kind regards,
-ChrisL
- Likes 1
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