Hi,
I am new to MQL4 but have been coding and playing with EA's for the last six weeks. I am trying to view a chart of the TICKS in the eur/usd as they appear and play with that data.
I am new enough to not know if there is an easy way to do that. I am stubborn enough to try and do it myself. I understand I can play with the raw data without a chart but would like to see if I can visualize it outside of a spreadsheet.
So far I have successfully collected hours of tick data and written it to a csv. I have also examined PeriodConverter and written a .hst in the history directory. My approach is to re-write the file every time a new tick appears and have an offline chart show that data, refreshing with each tick (or so--I realize that that may be overburdensome and slow--probably better to append).
When I open the file in an offline chart I see one of two results: If the currency pair name is the same as a live chart I get the live chart data and not the data out of the .hst file. If I change the name of the currency pair to something unrecognizable it shows "Waiting for Update". I've tried this with the ea off so it is not trying to write file while it is in use.
First I want to say thank you--I've read alot of your replies in other threads that have helped me on other things.
I just added an "x" to the filename and an "x" to the name of the currency pair and with a period of 2--No problem finding the file to open offline but see waiting for update (just verified now).
Solved. I had changed the version number from what the period converter had not knowing that the actual number mattered. I saw in an updated period converter the same version so I realized it might be important. When I changed the Version to 400 it showed in the offline chart fine.


- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi,
I am new to MQL4 but have been coding and playing with EA's for the last six weeks. I am trying to view a chart of the TICKS in the eur/usd as they appear and play with that data.
I am new enough to not know if there is an easy way to do that. I am stubborn enough to try and do it myself. I understand I can play with the raw data without a chart but would like to see if I can visualize it outside of a spreadsheet.
So far I have successfully collected hours of tick data and written it to a csv. I have also examined PeriodConverter and written a .hst in the history directory. My approach is to re-write the file every time a new tick appears and have an offline chart show that data, refreshing with each tick (or so--I realize that that may be overburdensome and slow--probably better to append).
When I open the file in an offline chart I see one of two results: If the currency pair name is the same as a live chart I get the live chart data and not the data out of the .hst file. If I change the name of the currency pair to something unrecognizable it shows "Waiting for Update". I've tried this with the ea off so it is not trying to write file while it is in use.
I'm not asking for someone to debug my code--But I could use a few suggestiong for what to look for. For example, I've read that the currency pair name should be dissimilar from a live pair or MT4 will use the live data. If I change the name to something unrecognizable will it reject the file due to an unkown currency pair? Do I need to add it somehow to symbols.sel? Is there some other sample code I can look at that does this or something similar?
I am pretty sure my file format is fine but I'll verify it with a binary reader.
Many Thanks