Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Unable to match order state to execution

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

    Unable to match order state to execution

    why did i get this error. i use only 1 order object and my exit orders always use entryOrder.FromEntrySignal to ensure that i have the right quantity.
    exitOrder = ExitLong(entryOrder.Filled,SIGNAL9EMA_EXIT , entryOrder.FromEntrySignal);


    Unable to match order state to execution: Order='859258713/DU27808' Name='PREVIOUS_BAR_ENTRY' State=Filled Instrument='$AUDUSD' Action=SellShort Limit price=0 Stop price=0 Quantity=0.04M Strategy='TradeCommanderStrategyVer2' Type=Market Tif=Gtc Oco='' Filled=40000 Fill price=0.642288 Token='092951c2d56d47c1a1cb9129d96d1665' Gtd='01/12/2099 12:00:00 AM' / Execution='$AUDUSD/0001f4e8.439a263d.01.01' Instrument='$AUDUSD' Account='DU27808' Name='PREVIOUS_BAR_ENTRY' Exchange=IBIdealPro Price=0.6422 Quantity=5 000 Market position=Short Commission=0 Order='859258713' Time='12/03/2009 4:23:12 AM' Multiplier=1E-05
    Attached Files

    #2
    junkone,

    This is a known IB related issue where redundant events are given. If you do not look for the order status events you will not run into this issue.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      can you explain this with an example. i am still scratching my head, where this alarm would have come up. i forced closign the trade because i did not know what was happening.

      Comment


        #4
        What Josh was saying is, if you don't check for the order status events in the OnOrderUpdate() you won't notice this issue.
        BertrandNinjaTrader Customer Service

        Comment


          #5
          would the entryOrder.FromEntrySignal still have the correct size if i were to use it for my exits.

          Comment


            #6
            junkOne,

            entryOrder.FromEntrySignal should even make much sense since an entry order does not have a from entry signal parameter. It only has a signalName parameter.

            As far as entryorder.Filled, that will work with no problem.
            Josh P.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by helpwanted, Today, 03:06 AM
            1 response
            16 views
            0 likes
            Last Post sarafuenonly123  
            Started by Brevo, Today, 01:45 AM
            0 responses
            11 views
            0 likes
            Last Post Brevo
            by Brevo
             
            Started by aussugardefender, Today, 01:07 AM
            0 responses
            6 views
            0 likes
            Last Post aussugardefender  
            Started by pvincent, 06-23-2022, 12:53 PM
            14 responses
            244 views
            0 likes
            Last Post Nyman
            by Nyman
             
            Started by TraderG23, 12-08-2023, 07:56 AM
            9 responses
            387 views
            1 like
            Last Post Gavini
            by Gavini
             
            Working...
            X