I am having issue using Strategy Analyzer to backtest my strategy. First I will describe how my strategy works.
Strategy:
Calculate = Calculate.OnEachTick;
BarsArray[0] = 1 Minute (I do not have logic here)
BarsArray[1] = 1 Minute (I use indicator golemTrendLines on this timeframe)
BarsArray[2] = 1 Tick (I test distances of next 1 Minute candle open)
I add Indicator golemTrendLines to strategy. It uses BarsArray[1] (1 Minute) and is also Calculate = Calculate.OnEachTick;
1) It works fine (see image strategy-in-chart.png)
when I add strategy on chart (1 minute timeframe) and test it on market replay data
2) It works bad (see image strategy-in-analyzer.png)
when I try to test strategy on strategy analyzer on BarsArray[0] = 1 tick data then it starts acting wierd. Indicator golemTrendLines which is inside strategy on BarsArray[1] = 1 Minute is set to 1 BarsArray[0] = 1 Tick
Could you please tell how strategy analyzer works with multiframe and tickreplay?
I was assuming, when i use DataSeries 1 tick in analyzer, then Indicator golemTrendLines will use BarsArray[1] = 1 Minute instead of 1 Tick timeframe.
Comment