MQL4 - automated forex trading   /  

Forum

Characters used in Symbol name

Back to topics list To post a new topic, please log in or register

avatar
1131
sxTed 2010.09.13 22:50 

So far I have found the following characters used to form Symbol or Instrument names:

#ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789._abcdefghijklmnopqrstuvwxyz

are there any others?

Thanking you all in advance.

Research of Statistical Recurrences of Candle Directions

Research of Statistical Recurrences of Candle Directions

Is it possible to predict the behavior of the market for a short upcoming interval of time, based on the recurring tendencies of candle directions, at specific times throughout the day? That is, If such an occurrence is found in the first place. This question has probably arisen in the mind of every trader. The purpose of this article is to attempt to predict the behavior of the market, based on the statistical recurrences of candle directions during specific intervals of time.


avatar
1675
qjol 2010.09.13 23:27 

-

may i know y u need it

Q


avatar
3265
Ais 2010.09.13 23:28 

@


avatar
1131
sxTed 2010.09.14 00:18 
I have completed Symbols() function which stores in an array all Symbols and Instruments used by the Broker's Server. I have tested it on 3 Broker's, i heard there were 200? Thank you qjol and Ais. You will be able to download it when it is published.

avatar
876
7bit 2010.09.14 01:23 

Use something like that:


/**
* Get the list of symbols available on this platform.
* The function will resize and fill the supplied array with
* the symbol names and return the number of symbols.
*/
int getSymbols(string &sym[]){
   int i;
   string symbol;
   int f = FileOpenHistory("symbols.raw", FILE_BIN | FILE_READ);
   int count = FileSize(f) / 1936;
   ArrayResize(sym, count);
   for (i=0; i<count; i++){ 
      symbol = FileReadString(f, 12);
      sym[i] = symbol;
      FileSeek(f, 1924, SEEK_CUR);
   }
   FileClose(f);
   return(count);
}

use it like this:


int sym_count;
string sym[];

int init(){
   int i;
   sym_count = getSymbols(sym);
   
   for (i=0; i<sym_count; i++){
      Print(i + " " + sym[i]);  
   }
}

avatar
1131
sxTed 2010.09.14 01:53 

7bit, i was just off to bed, u made my day, thank you so much,

i did not really want to release my function in case one broker

used some character that i had not catered for,

thank you once again


avatar
1131
sxTed 2010.09.14 02:11 
hi bernd, i did not recognise your pseudonym, how is my trading partner from IRC forex Chat? take care my friend.

avatar
1675
qjol 2010.09.14 02:16 

i cant understand what it is this all about

simple use \\meta_trader_folder/history/your_proker/symbols.raw

as u can c here

http://codebase.mql4.com/6134

& u have all the symbols from your broker


avatar
1131
sxTed 2010.09.14 02:46 
qjol, thank you very much for the codebase reference.

avatar
876
7bit 2010.09.14 03:32 
qjol:

i cant understand what it is this all about

simple use \\meta_trader_folder/history/your_proker/symbols.raw

You are a bit late. My posting already did exactly this. No need to do the whole dance with header and lib and everything for a simple 5-liner.
Back to topics list  

To add comments, please log in or register