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 charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        60 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        145 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        161 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        97 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        283 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Working...
        X