Quote:
If using the TimeFrame you got different. Try without Timeframe and change only BarPeriod.
I tried and with BarPeriod=5 it works as expected.

It seems TimeFrame formation simply begins from the first available bar in a data file. Timeframes have to be manually coded around anyway to work properly.