MetaTrader4: SymbolInfoTick error when testing on multiple symbols

Back to topics list To post a new topic, please log in or register
avatar
2
boris 2015.12.09 18:19
 

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 

avatar
1109
Ovo 2015.12.09 19:55 #
 
The limitation was always there.
avatar
2
boris 2015.12.09 22:05 #
 
Is there  a way around?
avatar
66
jamescater 2015.12.11 10:37 #
 
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.


Back to topics list  

To add comments, please log in or register