Programming to select (filter) the top 10 securities from all stocks available in a market, using EA. Is it possible?

 

There is a simple web based filter that enables users to filter unwanted symbols and list only the symbols that meet a user defined favorite condition.  For example, to list only those securities with a positive price change during past 5 consecutive days, among all active symbols in the stock market. 

I wonder if mql5 can be programmed so that it screens (filter) all the securities of a given list (those on Market Watch window, or all) and shows only the symbols that meet a given criterion? 

If yes, a line or two of sample code, please? 

 
Hariri.behrooz:

There is a simple web based filter that enables users to filter unwanted symbols and list only the symbols that meet a user defined favorite condition.  For example, to list only those securities with a positive price change during past 5 consecutive days, among all active symbols in the stock market. 

I wonder if mql5 can be programmed so that it screens (filter) all the securities of a given list (those on Market Watch window, or all) and shows only the symbols that meet a given criterion?

Yes it's possible.

If yes, a line or two of sample code, please? 

Show your attempts and you will receive help.

You have to use SymbolSelect() function.

 
Alain Verleyen:
Yes it's possible.

Show your attempts and you will receive help.

You have to use SymbolSelect() function.

Thanks for your kind help. Am trying    Print "Hello World"     !!    :) 
Reason: