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
No workaround, current symbol only.
Here is a link to some of the limitations
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