Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Issue With IB

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Issue With IB

    Hi,

    I had posted in the wrong thread. I open a new thread. Details to follow.

    #2
    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.

    Comment


      #3
      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


        #4
        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


          #5
          Jean-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...

          Comment


            #6
            Originally posted by NinjaTrader_Bertrand View Post
            Jean-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...
            Thank you.

            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
            80 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            46 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            29 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            32 views
            0 likes
            Last Post TheRealMorford  
            Started by Mindset, 02-28-2026, 06:16 AM
            0 responses
            66 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Working...
            X