Download MetaTrader 5

why strategy tester doesnt accept my ea

To add comments, please log in or register
Maris Smits
337
Maris Smits  

Please help me anybody. I created my first EA in MQ5. It seems to me my EA is working fine in real time but if I want use strategy tester i get such shit:

2010.06.18 19:12:02    Tester    Loading of C:\Program Files (x86)\MetaTrader 5\MQL5\Experts\new.ex5 failed

Files:
new.mq5 8 kb
Samuel Olowoyo
2257
Samuel Olowoyo  
joke:

Please help me anybody. I created my first EA in MQ5. It seems to me my EA is working fine in real time but if I want use strategy tester i get such shit:

2010.06.18 19:12:02    Tester    Loading of C:\Program Files (x86)\MetaTrader 5\MQL5\Experts\new.ex5 failed



Hi Joke,

Did you compile your code before loading it in the Strategy tester? If you don't compile before loading it in the Strategy tester, you will get error.

Also I observed you created your Indicator handles twice, (in the OnInit() and OnTick() functions). Any reason why you are doing it that way or is it an oversight?

I think you should only do it once in the OnInit() function! 

Take care. 

Maris Smits
337
Maris Smits  
olowsam:

Hi Joke,

Did you compile your code before loading it in the Strategy tester? If you don't compile before loading it in the Strategy tester, you will get error.

Also I observed you created your Indicator handles twice, (in the OnInit() and OnTick() functions). Any reason why you are doing it that way or is it an oversight?

I think you should only do it once in the OnInit() function! 

Take care. 

Thank you!

After Compilation everything works!

Maris Smits
337
Maris Smits  
Actually nothing is working. Because in Strategy tester does not work "SymbolInfoTick" for second symbol. First symbol is Symbol of the chart where EA is working.
Maris Smits
337
Maris Smits  
Ok. I use "SymbolInfoDouble" it works correctly for both symbols.

To add comments, please log in or register