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 sidlercom80, 10-28-2023, 08:49 AM
      166 responses
      2,233 views
      0 likes
      Last Post sidlercom80  
      Started by thread, Yesterday, 11:58 PM
      0 responses
      1 view
      0 likes
      Last Post thread
      by thread
       
      Started by jclose, Yesterday, 09:37 PM
      0 responses
      6 views
      0 likes
      Last Post jclose
      by jclose
       
      Started by WeyldFalcon, 08-07-2020, 06:13 AM
      10 responses
      1,414 views
      0 likes
      Last Post Traderontheroad  
      Started by firefoxforum12, Yesterday, 08:53 PM
      0 responses
      11 views
      0 likes
      Last Post firefoxforum12  
      Working...
      X