I'm backtesting an strategy that uses 3 bar series, daily (to get the daily trend), 30min (to search for triggers) and 1min (to give granularity) in the same instrument.
Stop entry orders are submitted when I have a trigger in the 30min chart (Barsinprogress==1) and are managed (stops, break even, close) in the 1min chart (Barsinprogress==2). There are some stop orders launched form the 30min bar too. It closes positions at end of session.
When looking at the results, something strange appears. This is a fragment of the output window:
10/06/2013 0:00:00 Entered internal PlaceOrder() method at 10/06/2013 0:00:00: BarsInProgress=1 Action=Buy OrderType=Stop Quantity=0,1M LimitPrice=0 StopPrice=1,3201'7 SignalName='EntradaLargos' FromEntrySignal='' 10/06/2013 0:00:00 Entered internal PlaceOrder() method at 10/06/2013 0:00:00: BarsInProgress=1 Action=Sell OrderType=Stop Quantity=0,1M LimitPrice=0 StopPrice=1,3180'2 SignalName='StopLargos' FromEntrySignal='EntradaLargos' 10/06/2013 0:00:00 Entered internal PlaceOrder() method at 10/06/2013 0:00:00: BarsInProgress=1 Action=Sell OrderType=Limit Quantity=0,1M LimitPrice=2,3201'7 StopPrice=0 SignalName='ObjetivoLargos' FromEntrySignal='EntradaLargos' 10/06/2013 9:00:00 Cancelled pending exit order, since associated position is closed: Order='NT-00013/Backtest' Name='ObjetivoLargos' State=Working Instrument='$EURUSD' Action=Sell Limit price=2,32017 Stop price=0 Quantity=0,1M Strategy='SCSExtremos3sfh' Type=Limit Tif=Gtc Oco='' Filled=0 Fill price=0 Token='e59e1e73b9f24b27ba284af6821901e8' Gtd='01/12/2099 0:00:00' 24/06/2013 15:00:00 Entered internal PlaceOrder() method at 24/06/2013 15:00:00: BarsInProgress=1 Action=Buy OrderType=Stop Quantity=0,1M LimitPrice=0 StopPrice=1,3104'8 SignalName='EntradaLargos' FromEntrySignal='' 24/06/2013 15:30:00 Entered internal PlaceOrder() method at 24/06/2013 15:30:00: BarsInProgress=1 Action=Sell OrderType=Stop Quantity=0,1M LimitPrice=0 StopPrice=1,3052'9 SignalName='StopLargos' FromEntrySignal='EntradaLargos' 24/06/2013 15:30:00 Entered internal PlaceOrder() method at 24/06/2013 15:30:00: BarsInProgress=1 Action=Sell OrderType=Limit Quantity=0,1M LimitPrice=2,3104'8 StopPrice=0 SignalName='ObjetivoLargos' FromEntrySignal='EntradaLargos' 24/06/2013 21:00:00 Entered internal PlaceOrder() method at 24/06/2013 21:00:00: BarsInProgress=1 Action=Sell OrderType=Stop Quantity=0,1M LimitPrice=0 StopPrice=1,3118'8 SignalName='StopLargos' FromEntrySignal='EntradaLargos' 24/06/2013 21:00:00 Amended open order: Action=Sell OrderType=Stop Quantity=100000 LimitPrice=0 StopPrice=1,3118'8 SignalName=StopLargos' FromEntrySignal='EntradaLargos' 21/06/2013 23:00:00 Entered internal PlaceOrder() method at 21/06/2013 23:00:00: BarsInProgress=0 Action=Sell OrderType=Market Quantity=0,1M LimitPrice=0 StopPrice=0 SignalName='CierreLargos' FromEntrySignal='EntradaLargos' 24/06/2013 21:00:00 Cancelled pending exit order, since associated position is closed: Order='NT-00016/Backtest' Name='ObjetivoLargos' State=Working Instrument='$EURUSD' Action=Sell Limit price=2,31048 Stop price=0 Quantity=0,1M Strategy='SCSExtremos3sfh' Type=Limit Tif=Gtc Oco='' Filled=0 Fill price=0 Token='b6b40e29c7d6426aaf05278f670a64c7' Gtd='01/12/2099 0:00:00' 24/06/2013 21:00:00 Cancelled pending exit order, since associated position is closed: Order='NT-00015/Backtest' Name='StopLargos' State=Working Instrument='$EURUSD' Action=Sell Limit price=0 Stop price=1,31188 Quantity=0,1M Strategy='SCSExtremos3sfh' Type=Stop Tif=Gtc Oco='' Filled=0 Fill price=0 Token='6abe377a27b24681a3e2c841721ddd29' Gtd='01/12/2099 0:00:00' 27/06/2013 21:30:00 Entered internal PlaceOrder() method at 27/06/2013 21:30:00: BarsInProgress=1 Action=SellShort OrderType=Stop Quantity=0,1M LimitPrice=0 StopPrice=1,3033'8 SignalName='EntradaCortos' FromEntrySignal='' 28/06/2013 6:30:00 Entered internal PlaceOrder() method at 28/06/2013 6:30:00: BarsInProgress=1 Action=SellShort OrderType=Stop Quantity=0,1M LimitPrice=0 StopPrice=1,3060'4 SignalName='EntradaCortos' FromEntrySignal='' 28/06/2013 7:00:00 Entered internal PlaceOrder() method at 28/06/2013 7:00:00: BarsInProgress=1 Action=BuyToCover OrderType=Stop Quantity=0,1M LimitPrice=0 StopPrice=1,3078'9 SignalName='StopCortos' FromEntrySignal='EntradaCortos' 28/06/2013 7:00:00 Entered internal PlaceOrder() method at 28/06/2013 7:00:00: BarsInProgress=1 Action=BuyToCover OrderType=Limit Quantity=0,1M LimitPrice=0,3060'4 StopPrice=0 SignalName='ObjetivoCortos' FromEntrySignal='EntradaCortos' 28/06/2013 14:00:00 Cancelled pending exit order, since associated position is closed: Order='NT-00022/Backtest' Name='ObjetivoCortos' State=Working Instrument='$EURUSD' Action=BuyToCover Limit price=0,30604 Stop price=0 Quantity=0,1M Strategy='SCSExtremos3sfh' Type=Limit Tif=Gtc Oco='' Filled=0 Fill price=0 Token='69c91689359a4b539e0d9ee0a4055424' Gtd='01/12/2099 0:00:00'
- orders are timestamped following the 30 min chart. The same version of the strategy without the daily trend filter have a resolution of 1 min.
- all orders are with Barsinprogress =1.
- I exit all positions when Time[0] reaches the 21:00, calling exit from the 1 min bar (Barsinprogress=2), so don't know why it closes at 23:00
Let's focus in the 24/06/2014:
- Appears an order marked with 21/06/2014 date. A bit strange.
- What's the meaning of Amended open order?
- It closes at 1,3084 (see screenshot), the first stop order, but that price is never touched since entry (see atached 1 min chart).
I'm very confused.
Thanks in advance,
Sergio


Comment