Just adding another timeframe to my strategy removes all my existing trades, without even doing anything with the added timeframe data.
I started with a simple strategy that buys on stochastics lows en sells on stochastics highs on a 1 minute chart. Very simple and works fine. I use a stop entry, then enter with 3 trades, use profittargets for the first two trades and a trailing stop for the last trade.
I clearly see all trades visualised in my 1 minute chart and these are confirmed by printing the the total trades value in the output window.
Now here is the strange thing: I would like to add a 5 minute timeframe to this strategy and only enter a trade when the stochastics in both timeframes point in the same direction. But just adding this 5 minute timeframe in the Initialize method, (so without doing anything with the data in this new barsarray), removes ALL of my existing trades! This is also confirmed in my output window saying my strategy has generated 0 trades, where previously there where more than a hundred.
Removing the line "Add(PeriodType.Minute, 5);" is enough to get the strategy working properly again.
What am I doing wrong? Would just adding a second timeframe mean that the conditions for a trade on the first timeframe (in array 0) change somehow?
I work in simulation mode, with a simulated data feed and with calculateonbarclose=true. I have this problem both in backtesting and in live simulation testing.
Thanks in advance for helping me out on this.

Comment