Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

SetStopLoss after order is missing

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

    #16
    Hello Chelsea,

    Thank you for a possible solution. I thought of that approach, but then the whole account is again exposed to an endless stop (during the time of the stop being cancelled).
    If there is an internet glitch at that time, the account is exposed to endless loss.

    Is there no better way to avoid inflight execution?

    Regards,
    Ulises
    ulisesguerrero
    NinjaTrader Ecosystem Vendor - Thrifty Coders

    Comment


      #17
      Hello Ulises,

      The only guaranteed way to avoid an in-flight-execution is to cancel the first order, confirm the order is cancelled, before submitting the second order.

      This would have nothing to do with an 'endless stop' (did you mean endless loop where an order is rejected, resubmitted, rejected, etc, as this would not be related to this at all)
      Chelsea B.NinjaTrader Customer Service

      Comment


        #18
        Hello Chelsea,

        I meant stop-less. During that period of time where we are trying to cancel the stop, there's no way to guarantee the account is protected. An internet glitch + news event, that would destroy a trading account.

        No safe way of avoiding inflight execution? I guess unavoidable risk?

        Thanks
        Ulises
        ulisesguerrero
        NinjaTrader Ecosystem Vendor - Thrifty Coders

        Comment


          #19
          Hello Ulises,

          That's the nature of risk with electronic trading.

          You can risk two orders being filled, or you can risk one order being cancelled and a replacement order not being able to be submitted.

          But the response time for the order cancellation message being received by ninjatrader and the submission for the replacement market order from OnOrderUpdate() is going to be minimal (unless the CPU is under heavy load). A full internet outage at that exact moment would be less likely than two orders being filled at the same time if the first is not cancelled first.

          Theoretically, the same could happen if you are on the phone with your broker and the phone line goes dead.
          Chelsea B.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by NullPointStrategies, Yesterday, 05:17 AM
          0 responses
          66 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          141 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          75 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          46 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          51 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X