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 suroot, 04-10-2017, 02:18 AM
      4 responses
      3,019 views
      0 likes
      Last Post truepenny  
      Started by Stanfillirenfro, Today, 07:23 AM
      1 response
      4 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by cmtjoancolmenero, Yesterday, 03:58 PM
      2 responses
      22 views
      0 likes
      Last Post cmtjoancolmenero  
      Started by olisav57, Yesterday, 07:39 PM
      1 response
      9 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by cocoescala, 10-12-2018, 11:02 PM
      7 responses
      944 views
      0 likes
      Last Post Jquiroz1975  
      Working...
      X