Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Over fill detection?

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

    Over fill detection?

    The NT 7 page states

    All orders are now monitored for over fill. This means that your strategy has an order has filled in part or in whole after the cancellation requested was submitted. An alert level log will be issue and optionally an email will be sent. This can be overridden and handled yourself.
    How can I detect over fills programmatically? What method do I need to override? Maybe I'm just blind but didn't find anything so far.

    #2
    Override OnOrderStatus()...then check the return IOrder object OverFill property. If true, the referenced order was filled after your strategy went to cancel it.
    RayNinjaTrader Customer Service

    Comment


      #3
      Thanks!

      I guess I could stop a strategy by setting Enabled to false? Is there a FlattenAll function?

      Comment


        #4
        Never mind, Account.Flatten() should do.

        Comment


          #5
          You can call Disable() to disable the strategy. This will not generate any closing orders, just stop the strategy.
          RayNinjaTrader Customer Service

          Comment


            #6
            Are Disable() and Account.Flatten() to be documented in Help? Or is it part of the unsupported list?

            Thanks

            Comment


              #7
              Disable() is supported NinjaScript, whereas. Flatten() is not.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by CarlTrading, 03-31-2026, 09:41 PM
              1 response
              47 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by CarlTrading, 04-01-2026, 02:41 AM
              0 responses
              23 views
              0 likes
              Last Post CarlTrading  
              Started by CaptainJack, 03-31-2026, 11:44 PM
              0 responses
              33 views
              1 like
              Last Post CaptainJack  
              Started by CarlTrading, 03-30-2026, 11:51 AM
              0 responses
              50 views
              0 likes
              Last Post CarlTrading  
              Started by CarlTrading, 03-30-2026, 11:48 AM
              0 responses
              42 views
              0 likes
              Last Post CarlTrading  
              Working...
              X