I had posted in the wrong thread. I open a new thread. Details to follow.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Issue With IB
Collapse
X
-
Tags: None
-
Issue with IB - Stop Orders
Hi,
I've programmed a Strategy that works fine in Backtest mode when using it with the SIM account. However when I use it in real trading with IB, once the entry is executed, the associated stop order is pending and then canceled a few minutes later. Any tip on how to solve the issue?
Thanks and regards.
-
NT Logs
Hi,
Here what I've found in the log. The Stop Order was canceled with Error code 202
02/06/2009 16:15:02;Order;Order='626726526/U386013' Name='Sell' New State=Cancelled Instrument='CAC40 06-09' Action=Sell Limit price=0 Stop price=3370,5 Quantity=3 Type=Stop Filled=0 Fill price=0 Error=NoError Native error='Order Canceled - reason: (202)';
02/06/2009 16:15:02;Order;Order='626726526/U386013' Name='Sell' New State=PendingCancel Instrument='CAC40 06-09' Action=Sell Limit price=0 Stop price=3370,5 Quantity=3 Type=Stop Filled=0 Fill price=0 Error=NoError Native error='';
02/06/2009 16:10:00;Order;Order='626726526/U386013' Name='Sell' New State=Accepted Instrument='CAC40 06-09' Action=Sell Limit price=0 Stop price=3370,5 Quantity=3 Type=Stop Filled=0 Fill price=0 Error=NoError Native error='';
Comment
-
Hi Josh,
Sorry for posting in the wrong thread. I 'll activate the Traces.
BTW, in the NT strategy I am no canceling stop orders but eventually change the StopValue in the ExitLongStop(StopValue) Order . This works in SIM mode or backtest. Any issue about using that mode with IB?
Thank you in advance.
JM
__________________
Josh Wrote
To go about figuring out why your orders are canceled you will need to use TraceOrders = true as per this tip: http://www.ninjatrader-support2.com/...ead.php?t=3627
__________________
Comment
-
Thank you.Originally posted by NinjaTrader_Bertrand View PostJean-Marc-Molina, thanks for opening a new thread, the trace orders are the way to go. It could be you modify your stop order to an invalid price that is rejected from your broker...
I am not sure. the first order with the same stop price (3370,5) had not been rejected 5 minutes before.
I will see with the traces tomorrow.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
77 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
45 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
27 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
32 views
0 likes
|
Last Post
|
||
|
Started by Mindset, 02-28-2026, 06:16 AM
|
0 responses
63 views
0 likes
|
Last Post
by Mindset
02-28-2026, 06:16 AM
|

Comment