Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

What is a terminal exit order

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

    What is a terminal exit order

    I have a strategy that enters an exit order that is then cancelled with the following message from the output log:

    03/10/2007 7:52:58 AM Cancelled expired order: BarsInProgress=0: Order='5b8289aab4914560b1dbfb44b903786e/Replay101' Name='LXR' State=Working Instrument='ER2 12-07' Action=Sell Limit price=831.5 Stop price=0 Quantity=1 Strategy='Flex5Long' Type=Limit Tif=Day Oco='' Filled=0 Fill price=0 Token='5b8289aab4914560b1dbfb44b903786e' Gtd='01/12/2099 12:00:00 AM'

    03/10/2007 7:52:58 AM Entered internal PlaceOrder() method: Action=Sell OrderType=Limit Quantity=0 LimitPrice=831.5 StopPrice=0 SignalName='LXR' FromEntrySignal=''

    03/10/2007 7:52:58 AM Ignored PlaceOrder() method: Action=Sell OrderType=Limit Quantity=0 LimitPrice=831.5 StopPrice=0 SignalName=LXR' FromEntrySignal='' Reason='There already is a matching, terminal exit order in place'

    The thing that puzzles me is that in the log there is not a working order in place. I have attached both the trace orders output and the order log for reference.

    Thanks greatly for any insight!

    Learning1
    Attached Files

    #2
    Learning1,

    Please review the actual NT trace logs. It will provide insight into the actual state of the canceled order. I suspect it wasn't truly canceled yet hence the ignored messages on subsequent close orders. Basically what you want to do is monitor for changes in order state.

    In this case notice how the output said the state of your first order is
    Code:
    State=Working
    The original order was still open when you placed the new exit order.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Thanks Josh.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      52 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      142 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      160 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      96 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      276 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Working...
      X