Download MetaTrader 5

why strategy tester doesnt accept my ea

To add comments, please log in or register
Deposit to your account in any convenient way. There are 4 of them here!
Maris Smits
337
Maris Smits 2010.06.18 21:55 

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
2241
Samuel Olowoyo 2010.06.18 23:15  
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 2010.06.19 07:25  
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 2010.06.19 12:25  
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 2010.06.20 23:35  
Ok. I use "SymbolInfoDouble" it works correctly for both symbols.

To add comments, please log in or register