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

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 frankthearm, Today, 09:08 AM
      5 responses
      14 views
      0 likes
      Last Post NinjaTrader_Clayton  
      Started by jeronymite, 04-12-2024, 04:26 PM
      3 responses
      43 views
      0 likes
      Last Post jeronymite  
      Started by yertle, Today, 08:38 AM
      5 responses
      15 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Started by adeelshahzad, Today, 03:54 AM
      3 responses
      19 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Started by bill2023, Yesterday, 08:51 AM
      6 responses
      27 views
      0 likes
      Last Post NinjaTrader_Erick  
      Working...
      X