Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Cancel Limit Order at particular time
Collapse
X
-
Originally posted by NinjaTrader_Bertrand View Postm3power222, I suggest you check into the 'SampleAtmStrategy' strategy sample installed per default with NinjaTrader. The order status returns you a string array as order state and you try comparing it with a int variable.
That is where I got "orderId.Length > 0" from. There is a variable as well:
private string orderId = string.Empty;
It appears to be working from testing. Just not sure if that is the best way to code it as I really don't know how to code.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
57 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
143 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
161 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
97 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
276 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|

Comment