CancelOrder(.. to manually close order when another one is filled. But mabe its an error to be fixed by NT team?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
ExitLongStop, ExitLongLimit and OCO
Collapse
X
-
I have the same situation. In my case Target order has been filled, but Stop loss has not being cancelled. and later system went short on that stop loss orders. I did not noticed it during back-testing, but in real-time only. I was palnning to use methode
CancelOrder(.. to manually close order when another one is filled. But mabe its an error to be fixed by NT team?
-
I was running on IQFeed in Sim101 account. Feed is irrelevant and brokerage should be also however, please run on Sim101 and see if you have the problem there or not.
I did change one line of code to fire orders off more rapidly.
I used Close[0] > Open[0] instead of something you had with %, don't recall. I also opened a DOM and modified target orders occasionally in random sequence to force them to fill.RayNinjaTrader Customer Service
Comment
-
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
558 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
324 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 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
545 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
547 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment