Possible reasons for differences in visual mode?
-
Hi All
I have completed an EA and I am busy testing it. I noticed that the results will sometimes differ depending on whether or not I run the MT4 tester in visual mode or not. Is there a reason for this? -
is your EA condition fixed on specific TF? or on current?
-
Its set on current with blocks in the EA to set the current timeframe for blocks going forward.
-
This happens because of the quality of the historical data, when you perform the backtest in non-visual mode the ticks travel faster and if there are deficiencies in the historical data is even worse, when you do it in visual mode the analysis is done more slowly.
-
I had a similar problem, to me it was because I used values of candle close for some calculations, where if you just add the indicator to the chart it will already have those close values, where if they are run live, it will calculate on every tick meaning candle close will at some point in time be every value it ever was during that tick. meaning it cna trigger a condition for 5 seconds because it reached a high value and then drop. meaning it wouldn't be true if calculated on history data, but it was true at some point during candle life.
to fix this just use previous bar for calculation. so the value cannot be changed