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
    BertrandNinjaTrader Customer Service

    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!
        BertrandNinjaTrader Customer Service

        Comment


          #5
          sent........

          Comment


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

            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 AveryFlynn, Today, 04:57 AM
                              0 responses
                              4 views
                              0 likes
                              Last Post AveryFlynn  
                              Started by RubenCazorla, 08-30-2022, 06:36 AM
                              3 responses
                              77 views
                              0 likes
                              Last Post PaulMohn  
                              Started by f.saeidi, Yesterday, 12:14 PM
                              9 responses
                              23 views
                              0 likes
                              Last Post f.saeidi  
                              Started by Tim-c, Today, 03:54 AM
                              0 responses
                              3 views
                              0 likes
                              Last Post Tim-c
                              by Tim-c
                               
                              Started by FrancisMorro, Today, 03:24 AM
                              0 responses
                              5 views
                              0 likes
                              Last Post FrancisMorro  
                              Working...
                              X