Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

IOrder

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

    IOrder

    Hi,
    I am developping a strategy, and have to deal with some methods as OnOrderUpdate. I can't figure out the differents states of my IOrder. Let's take some examples:
    What the state of my limit order when it is executed on the market? What is the difference between when my order is in this state and when the trade is terminated: we touch our target for example?
    Let's suppose the market is executing an order and then I send at the same time a cancel Order what can occurs? What means the overfill state (I've already read the documentation). this is mean that my order can be cancelled and then filled?

    Thank you in advance,
    R.E.

    #2
    Hello R.E.,

    Thank you for your post.

    The state of the order would be Filled or PartFilled. You can view the order states at the following link: http://ninjatrader.com/support/helpG...efinitions.htm

    If you send a cancel but the exchange has filled the order, it will be filled and the cancel rejected.

    Over-fills mean that orders have filled in a manner that was not intended. This can be due to race conditions. For example, you send an order to close your position and another to reverse the position, but two closes are submitted. The cases can very but over-fills are a serious issue that you would need to debug your strategy for.

    Comment


      #3
      Thank you Patrick for your answer,
      Sorry to be insistant but since I want to trade real money I want to be sure to inderstand.
      The state working means the trade is executed and we are waiting the stopLoss target, and the filled state means exactly that there is no more trade and that we if it was the only trade we got, the market position is flat?

      Thank you in advance,
      R.E.

      Comment


        #4
        Originally posted by snoppss View Post
        The state working means the trade is executed and we are waiting the stopLoss target, and the filled state means exactly that there is no more trade and that we if it was the only trade we got, the market position is flat?
        Working means the order is working at the exchange (NOT filled). Filled means the order has filled.

        So to answer your questions, no. Working is state or orders not a trade. Each order goes through order states, this includes the entry order, stop and profit orders.

        So a basic sequence would be the following:
        • We submit the entry
        • It goes to Working state then Filled
        • Then the Stop and Profit Target are submitted and in Working states
        • Then when they fill, there states are Filled

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        633 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        364 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        105 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        567 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        568 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X