Tester Problem?

 

I' developing an indicator and I'm testing it using the tester in visual mode.


I'm getting different results if the ..\tester\history files are present.


example: the 1st time that I run the tester (no files in the tester\history folder) the results are correct.


The second run and all the following tests gave wrong results, well not wrong. My indicator plots signals to Buy/Sell and the signals appear with a huge delay, sometime 10 bars after the correct bar. The position of the signal is ok, but only appears 10 bars after the correct timing.



If I just delete the files in the tester\history every thing works fine.



I really need some help.


My indicator does a lot (really a lot) of calculations using high[x]/low[x], is this a clue to resolve this problem?


Regards



Paulo


PS-If some moderator reads this post, I'm totally available to rewrite this code using the beta version using metatrader5 :)