Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Ultimate handling for rejected stops...how?

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

    Ultimate handling for rejected stops...how?

    I am trying to ensure that I robustly handle any rejected stop orders when they are placed on the wrong side of the market due to fast moving markets.

    For real-time, I overrode the default error handler, and then submit it as a market order.

    However, this code does not fire in backtesting...so I implemented a basic check of:
    if (price == stop price) then market order entry, else stop order entry.

    That seems to work, but my question really is how to best code so that the same code will be used for both real time and backtesting?

    Is that possible, or is my solution above the recommended method?


    And, will NT7 simply have a built in option to handle rejected stops so that they can be resubmitted as market orders or should I just add the default override of the error handler for all my systems?

    I am porting from TS because I am tired of their inability to handle rejected stops btw...so this is quite a key issue for me.

    Thanks

    #2
    SIFTrader,

    Since backtesting is different than real-time, the approach you used will be the one to take.

    If you wish to control it to become a market order I would recommend programming the logic yourself.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      SIFTrader/Josh:

      Can you point me to any link on how to override the default error handler?

      I need to take care of exactly the same situation.

      This is one of the most pernicious problems when trading some instruments because often the exchange (e.g. GLOBEX) will cancel your order instead of executing it as you intended!

      Thanks

      Comment


        #4
        Hello,

        I will have someone reply to you on Monday. Thank you for your patience.
        DenNinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_Ben View Post
          Hello,

          I will have someone reply to you on Monday. Thank you for your patience.
          Bump...
          This is an important topic in any robust system so any pointers will be useful

          Comment


            #6
            aviat72, sorry for our delay - you can turn off auto error handling by setting RealTimeErrorHandling to TakeNoAction - http://www.ninjatrader-support.com/H...rHandling.html

            Of course it's your responsibility then to properly account for all scenarios involved.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            649 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            370 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            109 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            573 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            576 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X