Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

OrderState.Accepted vs OrderState.Working

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

    OrderState.Accepted vs OrderState.Working

    I have a strategy that I use on several exchanges, such as Nybot, Hong Kong Futures Exchange, and Eurex.

    When my strategy submits stop order on the Nybot or HKE, the stop order goes from PendingSubmit, to Accepted.

    However, on the Eurex, a stop order goes from PendingSubmit, to Accepted, to Working.

    What is the cause of this? Why is this not the same on both exchanges? Is this expected? As well, is this broker-dependent? I'm using Interactive Brokers right now, if I change my broker, will this behavior change as well?

    If I have a strategy that changes the stop order, what state should I be checking for, Accepted or Working? I'm concerned that if I check for both Accepted or Working, it might produce the wrong behavior depending on which exchange this is.

    Thanks in advance,

    Ken
    Last edited by kjackson; 12-23-2009, 05:37 AM.

    #2
    kjackson,

    Are you sure the order is not in the process of being filled when it goes working?
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      No, the order was not in the process of being filled. This is my log output:

      12/23/2009 12:05:30 AM|1|32|Order='XXX' Name='Stop1' New State=PendingSubmit Instrument='FDAX 03-10' Action=BuyToCover Limit price=0 Stop price=5981 Quantity=1 Type=Stop Filled=0 Fill price=0 Error=NoError Native error=''

      12/23/2009 12:05:31 AM|1|32|Order='XXX' Name='Stop1' New State=Accepted Instrument='FDAX 03-10' Action=BuyToCover Limit price=0 Stop price=5981 Quantity=1 Type=Stop Filled=0 Fill price=0 Error=NoError Native error=''

      12/23/2009 12:05:31 AM|1|32|Order='XXX' Name='Stop1' New State=Working Instrument='FDAX 03-10' Action=BuyToCover Limit price=0 Stop price=5981 Quantity=1 Type=Stop Filled=0 Fill price=0 Error=NoError Native error=''

      12/23/2009 12:16:02 AM|1|32|Order='XXXXXXXXXX' Name='Stop1' New State=Filled Instrument='FDAX 03-10' Action=BuyToCover Limit price=0 Stop price=5981 Quantity=1 Type=Stop Filled=1 Fill price=5981 Error=NoError Native error=''

      Comment


        #4
        Ken, for the most part, the states your orders go through depend on the exchange. Stop orders, for example, typically only make it to the accepted state, but from the log you posted it looks like stop orders make an additional stop at the working state for the Eurex exchange.

        From the page that says where orders are held:
        Interactive Brokers
        Orders in a state "Accepted" or "Working" are at the exchange or on IB's servers in situations where the exchange does not have native support for an order type.
        OCO (One Cancels Other) functionality is natively supported on their servers.
        AustinNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by joselube001, 05-10-2024, 12:17 PM
        6 responses
        27 views
        0 likes
        Last Post joselube001  
        Started by bigc0220, 09-18-2018, 09:16 AM
        6 responses
        2,579 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by lorem, 04-25-2024, 09:18 AM
        18 responses
        78 views
        0 likes
        Last Post lorem
        by lorem
         
        Started by DawnTreader, 05-08-2024, 05:58 PM
        21 responses
        81 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by doihaveto13, Today, 12:46 PM
        2 responses
        4 views
        0 likes
        Last Post doihaveto13  
        Working...
        X