How to scan multiple forex pais

 
Is it possible to program automated scans of multiple forex pairs via MQL4? The idea would be to generate alerts if specific price patterns where found - not to do any automated trading.
 
Dont know exactly what you mean.
Maybe like this:


put all pairs into array

while (!found) {
for (i=1; i<totarray; i++){
// maybe you use MarketInfo() to get the specified pattern
// if found then alert()
}
}



Is it possible to program automated scans of multiple forex pairs via MQL4? The idea would be to generate alerts if specific price patterns where found - not to do any automated trading.
 
Thanks for the response - I guess my question is how do you access price info for multiple different pairs from the code - i thought you could only attach code to one chart/price series?

Dont know exactly what you mean.
Maybe like this:


put all pairs into array

while (!found) {
for (i=1; i<totarray; i++){
// maybe you use MarketInfo() to get the specified pattern
// if found then alert()
}
}



Is it possible to program automated scans of multiple forex pairs via MQL4? The idea would be to generate alerts if specific price patterns where found - not to do any automated trading.

 
Look at documetation...

all of the commands that start with "i" take a Symbol() as a parameter. That is the main way to get info about any pair and timeframe. Commands like iHigh, iLow, iMA, iRSI.

Replace Symbol() with the name of another pair