I use the same data in both cases! The training run seems to not be affected as the training log files are the same, only when testing the strategy there are differences.

I have tested the script from my last post and I also tried whether setting Spread = 0 inside and outside of the while loop would make any difference but it does not.