Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Handling overfills in Unmanaged

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

    Handling overfills in Unmanaged

    Hi,

    A couple of questions before I implement my own handling of overfills:
    • When I OCO orders together, and I still get overfills, I expect the first one to be filled not to have the overfill flag set, and other orders which were supposed to be cancelled but still got filled to have the flag set. Is this correct?
    • Will OnExecution() be called for orders with the 'overfill' flag set?


    Thanks,

    Boaz

    #2
    Hi Boaz,

    Thanks for the post. I'm not sure what you mean by overfill flag. Can you please clarify?
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      IOrder.OverFill

      Comment


        #4
        Thanks for the reply.

        When I OCO orders together, and I still get overfills, I expect the first one to be filled not to have the overfill flag set, and other orders which were supposed to be cancelled but still got filled to have the flag set. Is this correct?
        This property is set per order. The order that's marked for cancellation and then filled will have overfill property = true. If the first order was never marked for cancellation, then it would have overfill = false.

        Will OnExecution() be called for orders with the 'overfill' flag set?
        Yes, if the order is filled then OnExecution() will be raised. Overfill = true would be set after the fill event (if the order was marked for cancellation.)
        Last edited by NinjaTrader_RyanM1; 01-19-2012, 01:35 PM.
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          Hi Ryan,

          Is there any way I can simulate an overfill (aside from going live)?

          Boaz

          Comment


            #6
            Unfortunately there is no way I'm aware of you could simulate overfills. They can happen on Sim101 as well as live, but since it's a local account (no connection lag) it's very hard to produce overfills on-demand.

            This would be a nice thing to have, especially for those programming their own overfill handling. I'll submit as a request to our development team so that it can be considered for a future version. This has been assigned tracking id # 1497.
            Last edited by NinjaTrader_RyanM1; 01-25-2012, 09:31 AM.
            Ryan M.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

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