MT4 history files

This is a discussion on MT4 history files within the Trading Software forums, part of the Commercial category; If I understand correctly, data for all timeframes is stored as '.hst' files in one of the MT4 directories. Does ...

Reply
 
LinkBack Thread Tools Search this Thread
Old May 24, 2016, 1:04pm   #1
Joined Jan 2006
MT4 history files

If I understand correctly, data for all timeframes is stored as '.hst' files in one of the MT4 directories.

Does anyone know how to build .hst files for MT4?

I have historical data available from elsewhere that I would like to load into my MT4 - I figure creating/editing a .hst file would be the way to go.

Thanks in advance for any pointers,
O-G
__________________
Check out my FX trading blog - updated 5-8 times a month - entertaining and educational!

And for a honest look into trading, check out my T2W member profile (published Dec2015)
options-george is offline   Reply With Quote
Old May 24, 2016, 4:05pm   #2
Joined Jan 2006
options-george started this thread There is a section for importing data in the 'History Center' section of MT4 (thanks to my Mt4-expert buddy who pointed it out to me).

Hopefully i can get the data in there in one piece.

__________________
Check out my FX trading blog - updated 5-8 times a month - entertaining and educational!

And for a honest look into trading, check out my T2W member profile (published Dec2015)
options-george is offline   Reply With Quote
Old May 24, 2016, 4:11pm   #3
Joined Mar 2016
Quote:
Originally Posted by options-george View Post
There is a section for importing data in the 'History Center' section of MT4 (thanks to my Mt4-expert buddy who pointed it out to me).

Hopefully i can get the data in there in one piece.

Good luck let us know how you got on.
Mr Sept is offline   Reply With Quote
Thanks! The following members like this post: options-george
Old May 24, 2016, 4:12pm   #4
 
piphoe's Avatar
Joined Oct 2015
any reliable vendor for range bars? range bars that actually work? i've paid off two so far..nothing to show for it but MALWARE. a real PIA..

new to MT4 and want to play around with it.

why doesn't MT4 provide for range bars?
__________________
I said, ‘Mr Stupid, why risk everything on one trade? Why not make your life a pursuit of happiness rather than pain?’
Paul Tudor Jones
piphoe is offline   Reply With Quote
Old May 30, 2016, 11:09am   #5
Joined Jan 2006
options-george started this thread
Quote:
Originally Posted by Mr Sept View Post
Good luck let us know how you got on.
Nothing to update thus far - I downloaded MT4 for one of my other brokerage accounts - and they happened to have the 1H data that I was looking for - quick win that was!

Although I am sure I am going to have to jump through that loop of adding history to MT4 at some point in the near future!

To Piphoe: I have not used range bars to date, so don't have any useful information on that - sorry!
__________________
Check out my FX trading blog - updated 5-8 times a month - entertaining and educational!

And for a honest look into trading, check out my T2W member profile (published Dec2015)
options-george is offline   Reply With Quote
Old Jun 3, 2016, 3:59pm   #6
 
f2calv's Avatar
Joined May 2014
Can you attach an example mt4 .hst file to this thread and also an example file of the source data you want to convert into hst format and I'll take a look...
f2calv is offline   Reply With Quote
Thanks! The following members like this post: options-george
Old Jun 6, 2016, 10:11am   #7
Joined Jan 2006
options-george started this thread
Quote:
Originally Posted by f2calv View Post
Can you attach an example mt4 .hst file to this thread and also an example file of the source data you want to convert into hst format and I'll take a look...
I uploaded a source file (sourced from FXCM) and an extract of the data file in MT4.

The MT4 file looks completely meaningless to me.
Attached Files
File Type: txt GBPUSD_m5_Bid (Source).txt (631.6 KB, 142 views)
File Type: txt GBPUSD5 hst.txt (539.2 KB, 161 views)
__________________
Check out my FX trading blog - updated 5-8 times a month - entertaining and educational!

And for a honest look into trading, check out my T2W member profile (published Dec2015)
options-george is offline   Reply With Quote
Old Jun 6, 2016, 10:33am   #8
 
f2calv's Avatar
Joined May 2014
OK so it's a binary file, a quick Google shows there are some docs on mt4 hst file structure online, 2 questions;

1) What is the build number of MT4 you're using? i.e.

MT4 Build 509
MT4 Build 574
etc

2) What is the last column heading of your CSV data;

2016.01.03,19:30,1.4733,1.47368,1.4733,1.47368,1

date,time,open,high,low,close,??
f2calv is offline   Reply With Quote
Old Jun 6, 2016, 10:46am   #9
Joined Jan 2006
options-george started this thread
Quote:
Originally Posted by f2calv View Post
OK so it's a binary file, a quick Google shows there are some docs on mt4 hst file structure online, 2 questions;

1) What is the build number of MT4 you're using? i.e.

MT4 Build 509
MT4 Build 574
etc

2) What is the last column heading of your CSV data;

2016.01.03,19:30,1.4733,1.47368,1.4733,1.47368,1

date,time,open,high,low,close,??
1) Version 4.00 Build 950
2) the last column shows the total ticks in the period

Just to double-check - should it be reasonable to expect that the ability to take my source file and upload it into MT4 already exists within the front-end "History Center" section of MT4? I would hate to be asking you to reinvent the wheel!!
__________________
Check out my FX trading blog - updated 5-8 times a month - entertaining and educational!

And for a honest look into trading, check out my T2W member profile (published Dec2015)
options-george is offline   Reply With Quote
Old Jun 6, 2016, 11:10am   #10
 
f2calv's Avatar
Joined May 2014
Quote:
Originally Posted by options-george View Post
1) Version 4.00 Build 950
2) the last column shows the total ticks in the period

Just to double-check - should it be reasonable to expect that the ability to take my source file and upload it into MT4 already exists within the front-end "History Center" section of MT4? I would hate to be asking you to reinvent the wheel!!
I don't have and never used MT4 so I have no idea tbh... when you're sure you can't get the data into MT4 any other way then get back to me and I'll take a look
f2calv is offline   Reply With Quote
Thanks! The following members like this post: options-george
Old Jun 6, 2016, 3:05pm   #11
 
Hoggums's Avatar
Joined Jan 2006
This is what you need.....

https://tickstory.com/product/tickstory-lite/

It will read a variety of free data sources and build data files for you. You then have to start MT4 in a special way to get it to use the data - but all of that should be explained on the website.

You can use it to get 99% accurate back tests (well 99% accurate according to Strategy tester - I would refute that as there's a lot of information such as spread changes and overnight financing charges that are not included in the tests) on 1 min data over a period of years.
__________________
Hoggums

-----------------------------------------------------------------------------
Outside of a dog, a book is a man's best friend,
inside of a dog, it's too dark to read. -- G Marx.
Hoggums is offline   Reply With Quote
Thanks! The following members like this post: options-george
Old Jun 11, 2016, 10:37am   #12
Joined Jan 2006
options-george started this thread bump.

I was able to load the historical information into MT4 using Tools/History Center. I uploaded the price data in the form of 5M bars - I assumed this would be sufficient given that my execution timeframe is 1H.

I then ran the Period Converter script in Navigator.

Then I went to open offline chart - I can see the new chart that has been created with the period converter, and I can open the offline chart but i cannot go and see all the price data that I uploaded. Even though I uploaded data from Dec2012 onwards, the 1H chart only goes back as far as early 2014.

So, am still a bit stuck on this...
__________________
Check out my FX trading blog - updated 5-8 times a month - entertaining and educational!

And for a honest look into trading, check out my T2W member profile (published Dec2015)
options-george is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
For future MT4 brokers only - Original MT4 license to sell pgolden For Sale & Wanted 0 Dec 21, 2015 3:02am
Ghosttrader files Ghosttrader Trading Journals 4 Jun 26, 2009 10:55am
Deal4free Files delboy trotter Techies Corner 10 Nov 2, 2003 12:40pm
UK Files for AIQ Sharky Technical Analysis 1 May 11, 2001 8:48am

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)