getting symbol information for external symbol in backtesting

 

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

 

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!

 
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
 

Thank you for answers.

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

 
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
Reason: