EAs cannot backtest when using the functions SymbolInfoInteger() or SymbolInfoString()?

I am using version 5.00 build 6230. I am writing an EA. If I use functions like SymbolInfoInteger() or SymbolInfoString(), it becomes impossible to perform a backtest.
for (int i = 0; i < SymbolsTotal(false); i++)
{
   string Symb = SymbolName(i, false);
   printf(SymbolInfoInteger(Symb, SYMBOL_CUSTOM));
   printf(SymbolInfoString(Symb, SYMBOL_CURRENCY_MARGIN)+ " " + SymbolInfoString(Symb, SYMBOL_CURRENCY_PROFIT));
}

After clicking 'Start' in the Backtest, it immediately displays 'common synchronization completed' without performing any other functions.



When the use of these functions is removed, the backtest process executes normally. How can I perform backtesting when I need to use the SymbolInfoInteger() or SymbolInfoString() functions?

Nguyen Van Luong:
I am using version 5.00 build 6230. I am writing an EA. If I use functions like SymbolInfoInteger() or SymbolInfoString(), it becomes impossible to perform a backtest.

After clicking 'Start' in the Backtest, it immediately displays 'common synchronization completed' without performing any other functions.



When the use of these functions is removed, the backtest process executes normally. How can I perform backtesting when I need to use the SymbolInfoInteger() or SymbolInfoString() functions?

What are you really trying to achieve ? Your code doesn't make sense in the Tester.