List of all Symbols/Instruments

 
Hi Guys,
Is there a List of all Symbols/ Instruments in which i can search in for specific Set ups?
 
You can use all_market_data code to get all symbols. but you don't want to. Just put the EA on a chart to trade that pair. Put it on another to trade a different pair.
 

I don't understand your question, you want a list of all symbols offered by your broker?

 

I don't want to open hundreds of Charts. I like to start an EA in one Chart and that EA should search in all offered symbols.

For example:


1.Symbol

a) Is there a Trend?

aa)Yes go on in ths symbol

ab) No - than next symbol

2.Symbol

a) Is there a Trend?

aa)Yes go on in ths symbol

ab) No - than next symbol

3.Symbol.....


The problem is, i don't know how to get all the symbols. For all Trades, there is a trade history list. Is something like that for all symbols? A list, where i can go through every symbol

 
FamWue:

I don't want to open hundreds of Charts. I like to start an EA in one Chart and that EA should search in all offered symbols.

For example:


1.Symbol

a) Is there a Trend?

aa)Yes go on in ths symbol

ab) No - than next symbol

2.Symbol

a) Is there a Trend?

aa)Yes go on in ths symbol

ab) No - than next symbol

3.Symbol.....


The problem is, i don't know how to get all the symbols. For all Trades, there is a trade history list. Is something like that for all symbols? A list, where i can go through every symbol


Your definition of Trend ???

do you have your strategy work for one symbol ??

if not then make that first 

 

Yes i do have my strategy done ;-)

Now i want to search for this set up  in all  offered symbols. Thats why i opened this thread and hope for an answer or solution

 
FamWue:

Yes i do have my strategy done ;-)

Now i want to search for this set up  in all  offered symbols. Thats why i opened this thread and hope for an answer or solution


WHRoeder:
You can use all_market_data code to get all symbols. but you don't want to. Just put the EA on a chart to trade that pair. Put it on another to trade a different pair.


Your solution......    K.I.S.S.

 

Try these:

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

https://forum.mql4.com/51184 

 
Ian Flanagan:

Try these:

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

https://forum.mql4.com/51184 

//+------------------------------------------------------------------+
//| Script program start function                                    |
//+------------------------------------------------------------------+
void OnStart()
  {
string tempoLocal = TimeToString(TimeLocal(),TIME_DATE|TIME_SECONDS);
StringReplace(tempoLocal,":",".");
StringReplace(tempoLocal," ",".");

string nomeDoArquivo = "-Get_All_Symbols.txt";
StringConcatenate(nomeDoArquivo,tempoLocal,nomeDoArquivo);

int h=FileOpen(nomeDoArquivo,FILE_WRITE|FILE_ANSI|FILE_TXT);

for(int P = 0;P<SymbolsTotal(false);P++){ //4003 DEMOROU 7 MINUTOS // TXT GERADO PESOU 221 KB

FileWrite(h,SymbolName(P,false));

}//for
   
  }//onstart

the code above will create a txt file with all the symbols offered by the broker

 
douglas14:

the code above will create a txt file with all the symbols offered by the broker

Just what I was looking for too, thanks!!
 
douglas14 #:

the code above will create a txt file with all the symbols offered by the broker

what if you wanted to gather all symbols currently open (open trades).  List them comma separated or each line?

For chart text object  

or printing to expert log file?