Scan through all symbols

 

Suppose I want to run a scan through all markets available with my broker to look for favourable trades. Say I want to look for any stocks that have reached a yearly minimum. Can I do that with MQL4?

I note that the technical indicator functions all have a symbol parameter, so clearly they don't have to be run in relation to the symbol for which they're loaded. But how can I loop through all the symbols?

 

what is so difficult to use search

https://www.mql5.com/en/code/9102

 

thanks

so what should I have searched for to find this?

 

A related question. Can I create a watchlist in the platform to list the stocks that I identify? I imagine it would appear like an extra Market Watch, maybe as an additional tab at the foot of the Market Watch window. Ideally I'd like to do this in code, but I can't even discover how to do it manually in the platform. All the platform seems to offer me to group markets is Profiles, which are collections of charts. I don't need the charts, I just want to see the current prices.

Thanks

 
qjol:

what is so difficult to use search

https://www.mql5.com/en/code/9102

you do realize that asking a question on a forum is a form of search, don't you?

you are simply asking a set of human agents to answer your query. 

 
jon1:

you do realize that asking a question on a forum is a form of search, don't you?

you are simply asking a set of human agents to answer your query. 

That is the point
 

Hi

It’s simple loop:

for(int i=0;i<SymbolsTotal(false);i++)
   {
      string _symbol = SymbolName(i,false); //search through all symbols also those beside Market Watch
      //your functions - with used _symbol instead of current Symbol()
   }

You can use SymbolsTotal (true) – if you want to check only symbols from Market Watch.

Have a nice weekend👍📊