PDA

View Full Version : What is a terminal exit order


Learning1
10-03-2007, 05:41 PM
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

NinjaTrader_Josh
10-03-2007, 09:47 PM
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 isState=WorkingThe original order was still open when you placed the new exit order.

Learning1
10-04-2007, 03:03 PM
Thanks Josh.