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.

        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 argusthome, 03-08-2026, 10:06 AM
            0 responses
            110 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            59 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            37 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            41 views
            0 likes
            Last Post TheRealMorford  
            Started by Mindset, 02-28-2026, 06:16 AM
            0 responses
            78 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Working...
            X