You can create your own indicator which is based on data from a file. See as example ColorCandlesDaily
Rosh, this is not it. ColorCandlesDaily doesn't access data form a file. It refers to the current symbol and redraws it in an indicator window, using a distinct candle color for each day.
I want to get history data into an indicator buffer. My current try, not finished yet: I am using the well known period_converter_opt.mp4 on a 1-min USDRMB chart and on a 1-min USDMXN chart, both GCI-Demo-MT4. These export the quotes to csv-files.
Hence MT5 cannot access that file, since MT4 can only write in its own files directory and MT5 can only read from its own files directory. So I wrote an AutoHotKey script that copies the MT4 csv files to the MT5 files directory, every time the filesize changes.
Now in MT5 I am currently into programming the OnInit section. It is supposed to open and read both csv file to a buffer array. Later I will extend my OnCalculate routine, so that it updates the array, every time the csv disk file changed, because it was copied again.
Oh, I am a newbee and things are hard work. I hope some professional reads this and just drops the two or three lines of code I need to accompolish what I want :-)
- www.mql5.com
- www.mql5.com
- read history file
- parse it
- fill indicator buffers
yes, but where to find the history files's data sturcture ?
data sturcture of those .hcc file in Mql5 are not known ?
yes, but where to find the history files's data sturcture ?
data sturcture of those .hcc file in Mql5 are not known ?
Topic starter asked about hst:
I want to access USD/RMB and USD/MXN history data (.hst-files) from my MT4, and work with these data in an array of a MT5 indicator buffer. How can I accompolish that, please?
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello,
I want to access USD/RMB and USD/MXN history data (.hst-files) from my MT4, and work with these data in an array of a MT5 indicator buffer. How can I accompolish that, please?
Jacky