• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Unmanaged: Overfill question

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

    Unmanaged: Overfill question

    Hi,

    Let's say that I want to ignore "Overfill event". Now imagine that after cancelling a working Buy limit order, I get an in-flight execution, so I got an Overfill event. Since I want to address by a certain logic, I need to know first this:

    When in-flight execution happened, are already updated the NEW Position.MarketPosition and Position.Quantity info ?

    Thanks in advance

    #2
    Hello pstrusi,

    From the help guide:

    "An overfill is categorized as when an order returns a "Filled" or "PartFilled" state after the order was already marked for cancellation. The cancel request could have been induced by an explicit CancelOrder() call, from more implicit cancellations like those that occur when another order sharing the same OCO ID is filled, or from things like order expirations."

    http://www.ninjatrader.com/support/h...reoverfill.htm

    This means that if you are attempting to cancel an order that filled, part filled, or already cancelled you will get this message, however, the order likely has filled and will update the position and execution.

    If you are using the unmanaged approach you can choose to ignore overfills.
    http://ninjatrader.com/support/helpG...reoverfill.htm

    And detect these in OnOrderUpdate() with the IOrder.OrderState.
    http://ninjatrader.com/support/helpG...nt7/iorder.htm

    The position will update OnPositionUpdate().
    http://ninjatrader.com/support/helpG...tionupdate.htm
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by dltharpe, Today, 09:17 AM
    0 responses
    4 views
    0 likes
    Last Post dltharpe  
    Started by HiddenPhilosopher, Today, 06:45 AM
    0 responses
    6 views
    0 likes
    Last Post HiddenPhilosopher  
    Started by PG7940, Today, 04:26 AM
    0 responses
    10 views
    0 likes
    Last Post PG7940
    by PG7940
     
    Started by marcus2300, Today, 02:25 AM
    0 responses
    2 views
    0 likes
    Last Post marcus2300  
    Started by drpapp, 01-24-2019, 06:57 AM
    5 responses
    69 views
    0 likes
    Last Post pjsmith
    by pjsmith
     
    Working...
    X