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.

    BertrandNinjaTrader Customer Service

    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.
        BertrandNinjaTrader Customer Service

        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 MarianApalaghiei, Today, 10:49 PM
          1 response
          7 views
          0 likes
          Last Post NinjaTrader_Manfred  
          Started by love2code2trade, Yesterday, 01:45 PM
          4 responses
          28 views
          0 likes
          Last Post love2code2trade  
          Started by funk10101, Today, 09:43 PM
          0 responses
          8 views
          0 likes
          Last Post funk10101  
          Started by pkefal, 04-11-2024, 07:39 AM
          11 responses
          37 views
          0 likes
          Last Post jeronymite  
          Started by bill2023, Yesterday, 08:51 AM
          8 responses
          46 views
          0 likes
          Last Post bill2023  
          Working...
          X