There is a general and a detailed answer. The general answer is that bar period and time frame is not exactly the same. There can be huge differences in the backtest and in live trading. The main differences are explained in the manual under "TimeFrame".

For the detailed answer, print logs of both strategy versions and compare the trades. Then you can see exactly where the differences come from.