I am backtesting a strategy that has been working fine in single timeframe. It uses managed orders and it resubmits the order on each OnBarUpdate () if not executed in the prior bar. There is a profit and stop target set. This is all on a 1m TF (BarsInProgress=0). By adding another longer timeframe (30m BarsInProgress=1) I have the situation where the longer timeframe OnBarUpdate () has no order (lets say it does nothing) to place so rather than doing nothing it deletes off the orders placed by the lower TF OnBarUpdate(). How is this solved? This is on Ninja 7.0.0.14.
Thanks
Rob
Trace below...
220/04/2010 10:30:00 Entered internal SetStopTarget() method: Type=Target FromEntrySignal='' Mode=Ticks Value=45.7183977323827 Currency=0 Simulated=False
20/04/2010 10:30:00 Entered internal SetStopTarget() method: Type=Stop FromEntrySignal='' Mode=Ticks Value=137.155193197148 Currency=0 Simulated=False
20/04/2010 10:30:00 Entered internal PlaceOrder() method at 20/04/2010 10:30:00: Action=SellShort OrderType=Limit Quantity=291,640 LimitPrice=2.7038'8 StopPrice=0 SignalName='Short1' FromEntrySignal=''
20/04/2010 10:30:00 Cancelled expired order: BarsInProgress=1: Order='NT-00000/Backtest' Name='Short1' State=Working Instrument='$EURUSD' Action=SellShort Limit price=2.70388 Stop price=0 Quantity=291,640 Strategy='Foo' Type=Limit Tif=Gtc Oco='' Filled=0 Fill price=0 Token='fe2aa412296c451dba71e05fd3869022' Gtd='01/12/2099 00:00:00'

Comment