For clarity for myself, at least, and anyone else that has an interest . . .
.hst file format valid as of MT4 Build 509
The database header first . . . total 148 bytes
then the bars array (single-byte justification) . . . total 44 bytes
.hst file format valid as of MT4 574 and later
The database header is the same . . . total 148 bytes
then the bars array (single-byte justification) . . . total 60 bytes
Thank you RaptorUK!
This information is most useful. I make extensive use of writing HST files in order to store all sorts of statistical data and these changes are going to affect many of my EA's
Do you perhaps know what the "database version" is for the new format?
Did MetaQuotes (or other entity) release a detailed description of the new format or did you reverse engineer the information?
In the case that the information was provide by MetaQuotes or other entity, do you perhaps have a link to it?
Again, many thanks!
New version is 401
MetaQuotes did not give me the specification despite me asking via the Service Desk, I found the old version in the Terminal Help file and the new version was determined from the new Period converter.
The PeriodConverter.mq4 in the new MT4 build demonstrates the format, just like the old period_converter.mq4 demonstrated the old format. Each record in the HST is now a MqlRates structure. The header is unchanged except for the version number.
In regards to the "Spread", is it the average spread for the bar, or is it the spread at the Close of the bar?
I search the MQL5 documentation but it is not explicit about that fact.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.