Problem running "Strategy Tester"

 

Hello to everyone,

I've developed an EA that looks like working nicely in real time...

The problem is when I try to make a backtest, using the Strategy Tester...

Everything starts correctly, but all of the sudden, when one or two days went by on the tester, the EA starts to take wired deals, and/or passing of another ones randomly, and it makes strange things...

If I turned it down, and restart it again on the exact time/day where the strange behavior started previously, it begins to trade correctly again, until..... some days/ bars later, it goes crazy again....

I've used all the possible combinations on the tester,every tick, open prices, etc, etc, and always is the same....

I've also checked the code over and over, and I cannot see anything there.... but considering I am quite newbie programming, maybe I am missing something..

Any idea of what it can be happening?

Thank you very much in advance,

;)

 
You have a global or static variable that eventually gets hosed. Restarting the test resets the variable. Post the code.
Reason: