Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Overfill Handling

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

    Overfill Handling

    Hello,

    when I type the name of na IOrder and I type a dot it appears a list. One of the Items of this list is Overfill.

    MyOrder.OverFill

    I can handle overfills from OnOrderUpdate with this? If not, what is this for?

    When I type OrderState. the OvewrFill option doesn't appear

    #2
    guillembm, overfill handling is possible in the unmanaged mode, this is not directly an orderstate, but a bool you can check if your IOrder was overfilled or not.

    Comment


      #3
      I'm aware of this. But the question was:

      if an order is overfilled I suppose that MyOrder.OverFill is set to true and this may be used to handle overfills. As an example if MyOrder.OverFill== true then exit all positions and disable the strategy.

      Is this right? I think this is easier to run on unmanaged mode.

      Comment


        #4
        This is correct and doable, however it would be also NT's default orderfill handling with the RealtimeErrorHandling working.

        Comment


          #5
          Since Overfill is an ongoing problem with NinjaTrader strategy and the solution usually given is using Unmanaged orders why can't NT team introduce few options in managed code, selected on Initialize() method:
          OverfillHandlingMethod = 0 // 0,1,2,3, etc., or enums/strings

          where eg.:
          0 = default handling (exit open positions and disable strategy)
          1 = continous handling (exit open positions but don't disable strategy)
          2 = something else

          The reason I am suggesting NT team to handle this is that to my knowledge Overfill handling is the only problem in NT strategies that needs to be handled in unmanaged code that is very often encountered by even beginning developers of the strategies.

          If I would be beginning my experience with NT and I would be told let's say that the only way for my strategy not to close itself suddenly is to manage all orders in unmanaged code and that would be the only reason why I need to even consider unmanaged code, I would probably think twice.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          61 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          39 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          21 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          23 views
          0 likes
          Last Post TheRealMorford  
          Started by Mindset, 02-28-2026, 06:16 AM
          0 responses
          51 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Working...
          X