Help in looping symbols and timeframes in MQL5

I’ve been trying to code my strategy into an EA and i use all symbols and all timeframes when using my scalping strategy, i’ve been trying to do the same with the EA and end up with some error, i am still a little new to coding and my code may be completely wrong but someone help me out. If im using iRSI for example, i want to enter sym for symbol and and TF for period in the parameters.`

int symbol= SymbolsTotal(1);
for(int sym=0;sym<symbol;sym++)

ENUM_TIMEFRAMES period[10]={PERIOD_M1,PERIOD_M2,PERIOD_M3,PERIOD_M4,PERIOD_M5,PERIOD_M6,PERIOD_M10,PERIOD_M12,PERIOD_M15,PERIOD_M20};
for(int TF=0;TF<10;TF++)