The support suggested to always set the EXTRADATA flag and Slippage = 0. When I do this I get the same result for both scripts. But now the strategy is not really profitable any more.