Convert hst file to csv file - Script for MetaTrader 4 - MT4/MT5 Resources
The hst2csv script is used to convert *.hst files into *.csv files, which can be imported into the MetaTrader 4 client without errors.
How the script works
What is the purpose of this script: At the request of the customer, I once compiled the history based on the fragments provided by the customer, and found that when importing data from the hst file, the terminal did not read all the files at all. But the data inside is valuable. This script converts all these non-importable files to csv and compares the file sizes correctly.
Those of you who use commas as decimal points may turn quotes into dates when opening a csv in Excel...inevitably. I can't think of any other way than writing a separate function to convert the number to a string with "," as the decimal separator. My system has "." so I leave it as is.
Attachment download
📎 hst2csv.mq4 (5.66 KB)
Source: MQL5 #7092
Convert hst file to csv file - Script for MetaTrader 4 - MT4/MT5 resource usage and filtering suggestions
This content can be used as a data entry for foreign exchange EA, indicators, trading systems or quantitative strategies. When reading, it is recommended to make a judgment based on the platform version, trading type, time period, risk control method and historical discussion background. Do not use it directly based on the title or a single point of view.
If the content involves MT4/MT5, ForexFactory, MQL source code, TradingView indicators or strategy discussions, you can give priority to the parameter logic, backtest environment, market stage, execution cost and failure conditions, and then decide whether to continue downloading, reviewing or secondary development.
Risk warning
For any EA, indicator or automatic trading strategy, it is recommended to first conduct historical backtesting, simulation account verification and small capital testing. Grid, Martin, high frequency, recovery and examination strategies especially require setting the account risk upper limit, single variety risk upper limit and manual deactivation conditions.
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •