I’m new to making EAs but i am really stumped here.
I have no errors in my code, no syntax errors, nothing. EA works as it should perfectly when i attach to a demo account forward testing. But it does nothing in the strategy tester!
I have tried other EAs (not built by me) in the strategy tester with the same settings, dates, etc and all of them work fine. I dont know why mine does nothing, even alerts dont show up.
The journal shows no errors at all.
I am thinking it might have something to do with how i open trades in the EA because its based on time. for example i have something like:
hour=TimeHour(Time[0])
if(hour+GMT_offset==13)
{
do something…
}
could this cause problems in the strategy tester? i dont know… but i have tried another EA that uses a timed based entry similar to mine and that one runs perfect in the strategy tester…im lost. I was thinking maybe the strategy tester is pulling the time from the current live server instead of the ‘simulated’ time in the strategy tester. But i doubt thats the issue…