Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

OCO order error

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

    OCO order error

    Hi. When I place a profit target order and a stop loss order throught setstoploss and setprofittarget, and my stop loss is filled, I see the following error. Can you tell me what is going on?


    [IMG]file:///C:/Users/CES/Desktop/error1.jpg[/IMG][IMG]file:///C:/Users/CES/Desktop/error1.jpg[/IMG]
    Attached Files

    #2
    cesas, which TWS version do you use? We recommend using 892.7 with NinjaTrader 6.5.1000.11 as per the IB connection guide - http://www.ninjatrader.com/webnew/su...ivebrokers.htm

    On top of that, please check with IB tech support on their error message 161

    Comment


      #3
      Hi Bertrand. I am using ninjatrader 6.5.1000.11 already and I am using TWS version from ninjatrader website. If I understand what youre saying, the problem is not form ninjatrader, is from TWS, ok?

      Comment


        #4
        cesas, yes this appears to be a native error (error code 161). If you like I can take a look at your trace and log files, for this please contact me using the Help > Mail to Support feature and put Attn Bertrand in the subject. Thanks!

        Comment


          #5
          sent........

          Comment


            #6
            Ok thanks got them, will follow up via email.

            Comment


              #7
              Hi bertrand. I receive your e mail, I sent an email to IB. But I receive another error. See the attach.
              Thanks
              Attached Files

              Comment


                #8
                cesas,

                Please provide background information as to what you were doing when this occurred. Thank you.
                Josh P.NinjaTrader Customer Service

                Comment


                  #9
                  Hi. Fully automated trading this way when happens:

                  -Short SP eMINI Futures.
                  -Large order, about 200 contracts
                  -Several partial fills, about 8.
                  -When the short order was filled, my strategy put in a take profit and stop loss order throght setprofittarget and setstoploss conditions.
                  -My profit was filled and the error appear
                  -several partial fills at take profit
                  -Using IB paper trading account
                  -Using 1min chart
                  Last edited by cesas; 06-22-2009, 02:18 PM.

                  Comment


                    #10
                    Please attach your trace and log files. Thank you.
                    Josh P.NinjaTrader Customer Service

                    Comment


                      #11
                      josh, another useful information. The first attach (error 161) occurs when the stop loss is hit. The second attach (error 201) occurs when the take profit is hit.

                      Comment


                        #12
                        If you could send in trace/log files just like you have done earlier with the 161 errors, we would like to see when the 201 occurs. Thank you.
                        Josh P.NinjaTrader Customer Service

                        Comment


                          #13
                          how I do that?

                          Comment


                            #14
                            I already sent to you the files

                            Comment


                              #15
                              cesas,

                              Unfortunately I did not receive any files. Please send it in to support [at] ninjatrader [dot] com with Attn Josh in the subject line and mention this thread. Thank you.
                              Josh P.NinjaTrader Customer Service

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by NullPointStrategies, Today, 05:17 AM
                              0 responses
                              20 views
                              0 likes
                              Last Post NullPointStrategies  
                              Started by argusthome, 03-08-2026, 10:06 AM
                              0 responses
                              119 views
                              0 likes
                              Last Post argusthome  
                              Started by NabilKhattabi, 03-06-2026, 11:18 AM
                              0 responses
                              63 views
                              0 likes
                              Last Post NabilKhattabi  
                              Started by Deep42, 03-06-2026, 12:28 AM
                              0 responses
                              41 views
                              0 likes
                              Last Post Deep42
                              by Deep42
                               
                              Started by TheRealMorford, 03-05-2026, 06:15 PM
                              0 responses
                              45 views
                              0 likes
                              Last Post TheRealMorford  
                              Working...
                              X