Download MetaTrader 5

getting symbol information for external symbol in backtesting

To add comments, please log in or register
chinaski
977
chinaski  

Hi,

SymbolInfoDouble, GetSymbolInfoTick, all those functions are answered with error 4106

in testing mode. Symbol unkown or not selected. SelectSymbol fails because of backtest mode.


In my expert i use multiple symbols and need bid and ask of extern symbols also in backtest.

How to achieve this ?


Thank you

Carl Schreiber
Moderator
7965
Carl Schreiber  

The terminal must be connected with the server (acct. login) and the symboly must appear in the Market Watch.

With the function SymbolSelect() you can (de) select the symbols.

But in mt4 you test only with ONE symbol per run!

whroeder1
17111
whroeder1  
Carl Schreiber: But in mt4 you test only with ONE symbol per run!
This is why I recommend
Do not trade multiple currencies in one EA
chinaski
977
chinaski  

Thank you for answers.

Due to this limits, it seems to implement a portfolio strategy is pretty difficult. Would you agree ?

Alain Verleyen
Moderator
29866
Alain Verleyen  
chinaski:

Thank you for answers.

Due to this limits, it seems to implement a portfolio strategy is pretty difficult. Would you agree ?

That's why God created MT5 :-D
To add comments, please log in or register