How to put indicator mql5 code into a loop to check buy signal for all market watch symbols?
Your question is too vague. Explain it in detail and show your own attempt at coding it.
Also, search the CodeBase for example code. Use keywords like "dashboard" or "scanner".
I recommend: Do not trade multiple currencies in one EA.
-
You can't use any {MT4: predefined variables, MT5: predefined variables,}
-
A multi-asset EA runs in one thread so that one asset blocks all the others while each EA for a single asset runs in its own thread,
-
Must poll (not OnTick, unless you use specific indicators)
The Implementation of a Multi-currency Mode in MetaTrader 5 - MQL5 Articles (2011) -
and usually other problems, e.g. A problem with iBarShift - MQL4 programming forum - Page 2 (2016)
-
You must handle History {MT4:4066/4073 errors: Download history in MQL4 EA - MQL4 programming forum, MT5: Timeseries and Indicators Access / Data Access - Reference on algorithmic/automated trading language for MetaTrader 5.}
-
Code it to trade the chart pair only. Look at the others if you must. Don't assume that Time[i] == iTime(otherPair, TF, i) always use iBarShift.