PaulParticipant
Master
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 ;
defparam cumulateorders = false
defparam preloadbars = 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?
PaulParticipant
Master
read more about it. Maybe spread was the cause.
today works again as expected.