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 cmoran13, Yesterday, 01:02 PM
|
0 responses
31 views
0 likes
|
Last Post
by cmoran13
Yesterday, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
22 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|
||
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
162 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
95 views
1 like
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
151 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|

Comment