History Bridge
- Utilità
-
Tamara Garcia Infantes
Welcome to QuantEdgeSys, an algorithmic trading studio focused on MetaTrader 4 and MetaTrader 5.
I develop Expert Advisors, indicators and trading utilities, both custom projects for clients and my own systems.
What I offer:
Custom Expert Advisors built exactly from your rules - Versione: 1.10
History Bridge — the full MetaTrader 5 history, ready for MetaTrader 4 backtests
MetaTrader 4 only downloads the history your broker keeps on its MT4 server, and for many symbols that is just a few months. Without complete M1 data, the MT4 Strategy Tester cannot run long backtests: it reports "n/a" modelling quality and thousands of mismatched chart errors. History Bridge takes the history that MetaTrader 5 already has and writes it in the formats MetaTrader 4 reads.
What it creates
• MT4 history files (.hst), one per timeframe, named the way MT4 expects (EURUSD1.hst, EURUSD60.hst…). Copy them to the MT4 history folder and they are ready to use, without importing anything.
• CSV files in the MT4 History Center format (yyyy.mm.dd,hh:mi,open,high,low,close,volume).
• Nine timeframes: M1, M5, M15, M30, H1, H4, D1, W1 and MN1, each one optional. They all come from the same MetaTrader 5 data, so they match each other.
What you can do
• Export the chart symbol or a list of symbols in one run.
• Give a symbol a different name for MT4 when your MT4 account uses another name (GDAXI=DE40).
• Choose a date range or export all the history available.
• Use the CSV files in spreadsheets or your own tools: separator, date format and header line are configurable.
Checks before you backtest
• Warns when the "Max bars in chart" setting of MetaTrader 5 is limited, the most common reason for cut M1 histories.
• Shows the bars, first date and last date of each timeframe, and marks in amber any timeframe that starts later than the history available on the server.
• Writes a line in the Experts tab for every file created.
Progress card
• Shows the symbol, timeframe and month being exported, with a progress bar.
• Stop button: files left incomplete are deleted.
• At the end, a summary by timeframe or by symbol. Close removes the card and leaves nothing on the chart.
• Light and dark theme (automatic, following the chart background) and English or Spanish interface.
Inputs
• Language and panel theme.
• Symbols: empty for the chart symbol, or a list such as EURUSD, XAUUSD, GDAXI=DE40.
• Export from / Export to: 1970.01.01 means the oldest history available / up to now.
• M1 to MN1: timeframes to export.
• Files to create: .hst and CSV, .hst only or CSV only.
• Subfolder inside MQL5\Files, CSV separator, CSV date format and CSV header line.
Where the files go
MetaTrader 5 programs can only write inside MQL5\Files, so the files are saved in MQL5\Files\HistoryBridge (File → Open Data Folder). To use them, close MetaTrader 4, copy the .hst files to its history\<server name> folder and open it again. Run the backtest with MetaTrader 4 offline so the server does not replace the history you copied. The user guide in the Comments explains every step.
Requirements
• MetaTrader 4 build 600 or later for the .hst files.
• In MetaTrader 5, set Tools → Options → Charts → Max bars in chart to Unlimited and restart the terminal before exporting long M1 histories.
History Bridge is a script: it runs once, reads price history and writes files. It does not open, close or modify trades and works with any symbol your MetaTrader 5 broker provides.
Results on historical data do not guarantee future results. Trading involves risk.
MetaTrader 4 only downloads the history your broker keeps on its MT4 server, and for many symbols that is just a few months. Without complete M1 data, the MT4 Strategy Tester cannot run long backtests: it reports "n/a" modelling quality and thousands of mismatched chart errors. History Bridge takes the history that MetaTrader 5 already has and writes it in the formats MetaTrader 4 reads.
What it creates
• MT4 history files (.hst), one per timeframe, named the way MT4 expects (EURUSD1.hst, EURUSD60.hst…). Copy them to the MT4 history folder and they are ready to use, without importing anything.
• CSV files in the MT4 History Center format (yyyy.mm.dd,hh:mi,open,high,low,close,volume).
• Nine timeframes: M1, M5, M15, M30, H1, H4, D1, W1 and MN1, each one optional. They all come from the same MetaTrader 5 data, so they match each other.
What you can do
• Export the chart symbol or a list of symbols in one run.
• Give a symbol a different name for MT4 when your MT4 account uses another name (GDAXI=DE40).
• Choose a date range or export all the history available.
• Use the CSV files in spreadsheets or your own tools: separator, date format and header line are configurable.
Checks before you backtest
• Warns when the "Max bars in chart" setting of MetaTrader 5 is limited, the most common reason for cut M1 histories.
• Shows the bars, first date and last date of each timeframe, and marks in amber any timeframe that starts later than the history available on the server.
• Writes a line in the Experts tab for every file created.
Progress card
• Shows the symbol, timeframe and month being exported, with a progress bar.
• Stop button: files left incomplete are deleted.
• At the end, a summary by timeframe or by symbol. Close removes the card and leaves nothing on the chart.
• Light and dark theme (automatic, following the chart background) and English or Spanish interface.
Inputs
• Language and panel theme.
• Symbols: empty for the chart symbol, or a list such as EURUSD, XAUUSD, GDAXI=DE40.
• Export from / Export to: 1970.01.01 means the oldest history available / up to now.
• M1 to MN1: timeframes to export.
• Files to create: .hst and CSV, .hst only or CSV only.
• Subfolder inside MQL5\Files, CSV separator, CSV date format and CSV header line.
Where the files go
MetaTrader 5 programs can only write inside MQL5\Files, so the files are saved in MQL5\Files\HistoryBridge (File → Open Data Folder). To use them, close MetaTrader 4, copy the .hst files to its history\<server name> folder and open it again. Run the backtest with MetaTrader 4 offline so the server does not replace the history you copied. The user guide in the Comments explains every step.
Requirements
• MetaTrader 4 build 600 or later for the .hst files.
• In MetaTrader 5, set Tools → Options → Charts → Max bars in chart to Unlimited and restart the terminal before exporting long M1 histories.
History Bridge is a script: it runs once, reads price history and writes files. It does not open, close or modify trades and works with any symbol your MetaTrader 5 broker provides.
Results on historical data do not guarantee future results. Trading involves risk.
