how to backtest multi symbols to combine them?

 

I see some strategies (hedging, arbitrage) that close all trades from many pairs in same time.
so how to backtest with many symbols in same time to strategies with many pairs combine?

tks so much

 
Is your EA code capable to handle multiple symbols?
 
Oleksandr Medviediev #:
Is your EA code capable to handle multiple symbols?

not yet. i am looking for solution for it. do you have any ea can backtest multiple symbols?

 
MT5
void OnTick()
{
    string symbol = _Symbol;
    
    if (symbol == "EURUSD")
    {
        // Execute your strategy for EURUSD
        // ...
    }
    else if (symbol == "GBPUSD")
    {
        // Execute your strategy for GBPUSD
        // ...
    }
    // Add more cases for other currency pairs
}