Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ExitLongStop, ExitLongLimit and OCO

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

    #16
    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?

    Comment


      #17
      styr, are you also using IB? For now, I have coded a CancelOrder in my strategy just to be safe until we figure out what the issue is. I also dont have problems backtesting only during R/T.

      Comment


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


          #19
          Works as expected with Sim101 account with IB R/T prices (one filled, one cancelled) so seems to be specific to using my real IB account.

          Comment


            #20
            Lets try to simplify -

            If you change your strategy to only take 1 entry per direction on a live account, will it work or not?
            RayNinjaTrader Customer Service

            Comment


              #21
              Changed entry per direction = 1, and still same issue (one filled, other abandoned) with IB live.

              Comment


                #22
                I am using IB anad paper tarding account for R/T testing, not sim account.

                Comment


                  #23
                  Originally posted by bigtrade5 View Post
                  Changed entry per direction = 1, and still same issue (one filled, other abandoned) with IB live.
                  Excellent. Will this happen on the very first trade?
                  RayNinjaTrader Customer Service

                  Comment


                    #24
                    Originally posted by NinjaTrader_Ray View Post
                    Excellent. Will this happen on the very first trade?
                    Yup. (extra characters, because Yup is too short of a reply)

                    Comment


                      #25
                      Excellent, I can reproduce on IB paper trade account. Will investigate further and report back findings. Thanks for cooperation.
                      RayNinjaTrader Customer Service

                      Comment


                        #26
                        This is a bug which will be fixed with next update. Thanks for reporting.

                        Comment


                          #27
                          Please explain bug

                          Originally posted by NinjaTrader_Dierk View Post
                          This is a bug which will be fixed with next update. Thanks for reporting.
                          IS the bug related to IB or not - will it occur with any broker? Live and paper?

                          TIA

                          Comment


                            #28
                            It's with any IB account.

                            Comment

                            Latest Posts

                            Collapse

                            Topics Statistics Last Post
                            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                            0 responses
                            566 views
                            0 likes
                            Last Post Geovanny Suaza  
                            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                            0 responses
                            330 views
                            1 like
                            Last Post Geovanny Suaza  
                            Started by Mindset, 02-09-2026, 11:44 AM
                            0 responses
                            101 views
                            0 likes
                            Last Post Mindset
                            by Mindset
                             
                            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                            0 responses
                            547 views
                            1 like
                            Last Post Geovanny Suaza  
                            Started by RFrosty, 01-28-2026, 06:49 PM
                            0 responses
                            548 views
                            1 like
                            Last Post RFrosty
                            by RFrosty
                             
                            Working...
                            X