Hi, I got a different live result than same code in a backtest.
I could repeat the result of the live account in a backtest with same entry-price.
in top of the code I have ;
1
2
defparamcumulateorders=false
defparampreloadbars=10000
Trailingstop was activated at 0.35% gain based on close. It hit 0.35% only once.
The difference in the backtest was caused by the number of units displayed.
But the real result was the same as with displayed 1000 bars or lower and the real result should’ve been as the backtest with 10.000 bars, exiting at about equal price.
So is there a problem in the preloadbars when trading live?
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.