Recent HST format changes - page 2

 

Here's what I get... maybe too late...

2009.09.09 18:05:39 Phy__HistoryHeaderDecoder GBPJPY,M15: Close   = 261316604702569950000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
2009.09.09 18:05:39 Phy__HistoryHeaderDecoder GBPJPY,M15: Low     = 0.0346
2009.09.09 18:05:39 Phy__HistoryHeaderDecoder GBPJPY,M15: High    = -0
2009.09.09 18:05:39 Phy__HistoryHeaderDecoder GBPJPY,M15: Open    = 2114687339040928900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
2009.09.09 18:05:39 Phy__HistoryHeaderDecoder GBPJPY,M15: Time    = 1584314255
2009.09.09 18:05:38 Phy__HistoryHeaderDecoder GBPJPY,M15: Volume  = 377689481844929820000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
2009.09.09 18:05:38 Phy__HistoryHeaderDecoder GBPJPY,M15: Close   = 0
2009.09.09 18:05:38 Phy__HistoryHeaderDecoder GBPJPY,M15: Low     = -0
2009.09.09 18:05:38 Phy__HistoryHeaderDecoder GBPJPY,M15: High    = 7946679463125802800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
2009.09.09 18:05:38 Phy__HistoryHeaderDecoder GBPJPY,M15: Open    = -880720980777341210000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
2009.09.09 18:05:38 Phy__HistoryHeaderDecoder GBPJPY,M15: Time    = -677348698
2009.09.09 18:05:38 Phy__HistoryHeaderDecoder GBPJPY,M15: i_unused = 1301283349
2009.09.09 18:05:38 Phy__HistoryHeaderDecoder GBPJPY,M15: i_unused = 47221811
2009.09.09 18:05:38 Phy__HistoryHeaderDecoder GBPJPY,M15: i_unused = 0
2009.09.09 18:05:38 Phy__HistoryHeaderDecoder GBPJPY,M15: i_unused = 0
2009.09.09 18:05:38 Phy__HistoryHeaderDecoder GBPJPY,M15: i_unused = 0
2009.09.09 18:05:38 Phy__HistoryHeaderDecoder GBPJPY,M15: i_unused = 4
2009.09.09 18:05:38 Phy__HistoryHeaderDecoder GBPJPY,M15: i_unused = 0
2009.09.09 18:05:38 Phy__HistoryHeaderDecoder GBPJPY,M15: i_unused = 1
2009.09.09 18:05:38 Phy__HistoryHeaderDecoder GBPJPY,M15: i_unused = 0
2009.09.09 18:05:38 Phy__HistoryHeaderDecoder GBPJPY,M15: i_unused = 17491
2009.09.09 18:05:38 Phy__HistoryHeaderDecoder GBPJPY,M15: i_unused = 1431459141
2009.09.09 18:05:38 Phy__HistoryHeaderDecoder GBPJPY,M15: i_unused = 0
2009.09.09 18:05:38 Phy__HistoryHeaderDecoder GBPJPY,M15: i_unused = 0
2009.09.09 18:05:38 Phy__HistoryHeaderDecoder GBPJPY,M15: last_sync = 0
2009.09.09 18:05:38 Phy__HistoryHeaderDecoder GBPJPY,M15: timesign = 1970.01.01 00:00:00
2009.09.09 18:05:38 Phy__HistoryHeaderDecoder GBPJPY,M15: i_digits = 0
2009.09.09 18:05:38 Phy__HistoryHeaderDecoder GBPJPY,M15: period = 0
2009.09.09 18:05:38 Phy__HistoryHeaderDecoder GBPJPY,M15: Equity = CompChart
2009.09.09 18:05:38 Phy__HistoryHeaderDecoder GBPJPY,M15: c_copyright = Copyright © 1999-2006, MetaQuotes Software Corp.
2009.09.09 18:05:38 Phy__HistoryHeaderDecoder GBPJPY,M15: Version = 1
2009.09.09 18:05:38 Phy__HistoryHeaderDecoder GBPJPY,M15 inputs: fileName="EURUSD_1999.hst"; 
2009.09.09 18:05:30 Phy__HistoryHeaderDecoder GBPJPY,M15: loaded successfully
 

Hello everyone, is there anyway to force MT4 to convert those DAT files to HST in order to make the history useful for back testing?

 

Hi!

Is there a way to read *.DAT files not using MT? Does anyone knows its format?

Thanks in advance. 

 
kivvi:

Hi!

Is there a way to read *.DAT files not using MT? Does anyone knows its format?

Thanks in advance.

What does your question have to do with the change in format of hst files ? why dredge up a 4 year old thread ? what format are DAT files ? perhaps you should delete your post and create a new thread . . .




Thread start date - 2009.09.06
 
Simon Gniadkowski:
What does your question have to do with the change in format of hst files ? why dredge up a 4 year old thread ? what format are DAT files ? perhaps you should delete your post and create a new thread . . .




Thread start date - 2009.09.06

As for DAT files, I don't know what binary format they are in, however it appears that exporting MqlRates data from a  MetaTrader script would work.

I verified the MT4 export script mentioned in the other comment works.  Here it is again:

https://stackoverflow.com/questions/29083479/mt4-export-script

Because it was on the weekend, I had to comment out the hour restriction: // && (Hour() >= StartHour) && Hour() < EndHour)

I made sure that the Symbol was one that had a lot of history downloaded like EURUSD, and the file path valid.  My assumption:

The script exports the DAT data to CSV format.  It should not be that tough to modify it into a normal csv format (instead of 5 records per line), and include the time stamp.

Then it should be easy to sort it on the time stamp.  I will have to do all that.  If you get the 5002 error you can get it go away.

MT4 export script
MT4 export script
  • 2015.03.21
  • stackoverflow.com
The following script exports data from MetaTrader to a file. Unfortunately ( for me at least ), the order of the data in the generated file from 0 to 1000, 0 being the most recent ( present to past ). I want the file to be sorted from 1000...
Reason: