| / | Forum |
|
sxTed
2010.09.13 22:50
So far I have found the following characters used to form Symbol or Instrument names: #ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789._abcdefghijklmnopqrstuvwxyz
|
|
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. |
|
qjol
2010.09.13 23:27
- may i know y u need it Q |
|
Ais
2010.09.13 23:28
@ |
|
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.
|
|
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]); } } |
|
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 |
|
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.
|
|
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 & u have all the symbols from your broker |
|
sxTed
2010.09.14 02:46
qjol, thank you very much for the codebase reference.
|
|
7bit
2010.09.14 03:32
qjol:
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.
i cant understand what it is this all about simple use \\meta_trader_folder/history/your_proker/symbols.raw |