Candle History Exporter
- 유틸리티
-
Fabrizio Battaglini
I develop MetaTrader 5 tools, custom indicators, Expert Advisors and trading automation utilities. - 버전: 1.0
Candle History Exporter is a lightweight MetaTrader 5 utility script for exporting historical candle data from the current chart symbol into clean CSV files.
It is designed for traders, developers and strategy researchers who need reliable OHLCV data for spreadsheets, Python analysis, external research workflows, backtesting preparation or custom trading tools.
Main features:
- Export OHLCV history from the current chart symbol.
- Select one or multiple MetaTrader 5 timeframes in the same run.
- Supports minute, hourly, daily, weekly and monthly timeframes.
- Configurable start date.
- Optional current server time as the default end date.
- Optional custom end date.
- CSV output with time, open, high, low, close and volume columns.
- Optional Common Files mode.
- Optional filter for mixed-history rows when detected.
- Progress text on the chart while the export is running.
- Final success/error message with the output folder path.
- No DLLs, no WebRequest calls and no external dependencies.
How to use:
- Open the symbol you want to export in MetaTrader 5.
- For deeper broker history, switch to a higher timeframe such as D1.
- Press Ctrl+Home and wait for MetaTrader to load more historical candles.
- Run Candle History Exporter.
- Select the timeframes you want to export.
- Press OK and wait for the completion message.
- Open the generated CSV files from the output folder.
Important history note:
MetaTrader can only export the history that is already available in the terminal. If the exported file contains less data than expected, load more broker history first. In many cases, opening the symbol on D1 and pressing Ctrl+Home is faster than forcing the terminal to load history from a small timeframe.
Output:
By default, files are saved in the terminal's MQL5/Files folder. If Common Files mode is enabled, files are saved in the shared MetaTrader Common Files folder.
This script does not provide trading signals and does not perform trading operations. It is a data export utility.
