There are several "tick recorders" for MT4 in the CodeBase if you wish to study them. Here are a few examples from a quick search ...
Artem Goritsky, 2013.09.19 07:22
Record, storage and displays of data, fully tick chart in MetaTrader.
Andrey Khatimlianskii, 2008.01.28 11:01
The Expert Advisor collects tick history for specified symbols into csv-files.davidruzicka, 2016.08.22 16:17
Continuously records tick data in format "DateTime, Bid, Ask, Volume" even after restart.
Hello! I know that mt4 doesnt have a tick history. So I was thinking if I can make one. Like an indicator which can start recording, and displaying as a hystogram,as soon as it is loaded on the chart.
I started to right something to record the ticks for the current bar into and EA :
But not sure how to continue from here. How to keep records of this, and display as hystogram for an indicator so it can have a separate window.
Kindly advice!
Good morning .
If i'm not mistaken the Volume[x] is the tick volume in MT4
(ow i just saw the tickdwn++ , sorry)
You can capture the points deviation too and store just that , if you establish that one entry represents one tick .
You can then record per time period and the timing of the bars is handy for that as when a new bar opens you will know you need to start a new file and close the previous.
There is one problem you cannot work around though , connection loss and shutdowns
Good morning .
If i'm not mistaken the Volume[x] is the tick volume in MT4
(ow i just saw the tickdwn++ , sorry)
You can capture the points deviation too and store just that , if you establish that one entry represents one tick .
You can then record per time period and the timing of the bars is handy for that as when a new bar opens you will know you need to start a new file and close the previous.
There is one problem you cannot work around though , connection loss and shutdowns
Study the examples I mentioned. At least one of them draws the ticks, so you can study that one to get some ideas.
- 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 know that mt4 doesnt have a tick history. So I was thinking if I can make one. Like an indicator which can start recording, and displaying as a hystogram,as soon as it is loaded on the chart.
I started to right something to record the ticks for the current bar into and EA :
But not sure how to continue from here. How to keep records of this, and display as hystogram for an indicator so it can have a separate window.
Kindly advice!