Download MetaTrader 5

MetaTrader4: SymbolInfoTick error when testing on multiple symbols

To add comments, please log in or register
Boris Duran
26
Boris Duran  

Hi there,

When I run my EA without lines 5-6 I have NO problems at all when testing

1) MqlTick currency1;

2) MqlTick currency2;

3)   if ( !SymbolInfoTick( "EURUSD", currency1 ) )

4)       Alert("SymbolInfoTick() failed, error: ",GetLastError());

5)   if ( !SymbolInfoTick( "GBPJPY", currency2 ) )

6)       Alert("SymbolInfoTick() failed, error: ",GetLastError());

 but when testing using ALSO lines 5-6 I get the following error:

EURUSD,M5: Alert: SymbolInfoTick() failed, error: 4059

 Is there some kind of limitation of the Tester for working with only one Symbol? Is there a way around this problem so I can test my advisor?

Thanks for any help 

Ex Ovo Omnia
3357
Ex Ovo Omnia  
The limitation was always there.
Boris Duran
26
Boris Duran  
Is there  a way around?
Blahtech Limited
6020
James Cater  
boris:
Is there  a way around?

No workaround, current symbol only.

Here is a link to some of the limitations

https://www.mql5.com/en/articles/1512

Weekly and Monthly timeframes do not exist either, although if you really need them you can build them up from the daily bars yourself.

To add comments, please log in or register