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 Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              599 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              344 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              103 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              558 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              557 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X