Tick File Conversion Utility
Info
The Tick File Conversion Utility is a Script for MetaTrader 4 that a utility for converting tick files generated by the ticks collector into various data formats. The Ticks Collector creates special files (type.
Usage
This tool is typically used for enhancing chart analysis and decision making.
Platform
This Script works exclusively on MetaTrader 4 (both build 600+ and newer versions).
Setup
Place the downloaded file in MQL4/Scripts folder via File ? Open Data Folder in MetaTrader 4.
How to Install and Use Tick File Conversion Utility
1. Installation: Move your script file into the MQL/Scripts directory and restart the platform.
2. Execution: Drag the script onto a chart; it will perform a one-time action, such as closing all open orders or clearing chart objects.
3. Editing: Use MetaEditor (F4) to modify code, click "Compile," and verify no errors appear in the terminal before running.
4. Removing: Scripts stop automatically, but you can remove them manually by right-clicking the chart and choosing "Remove Script."
Frequently Asked Questions
Q: How are scripts different from EAs? A: Scripts execute a single action and then stop; EAs monitor the market and trade continuously.
Q: Can I assign a hotkey to a script? A: Yes, right-click the script in the Navigator, select "Set Hotkey," and define your preferred keyboard shortcut.
Q: Why did my script stop? A: Scripts are designed to stop immediately after finishing their programmed command; this is normal behavior.
What this tool does
A utility for converting tick files generated by the Ticks Collector into various data formats.
Typical Use Case
This Script excels in automated trading and technical analysis on MetaTrader 4.
Compatible Platform & Setup
This Script works on MetaTrader 4. Place the file in the MQL4/Scripts folder and restart the terminal.
Description & Settings
Related: ticks on chart indicator - another powerful script for MetaTrader 4 traders.
A utility for converting tick files generated by the Ticks Collector into various data formats.The Ticks Collector creates special files (type .tks) primarily for generating non-standard charts within MetaTrader 4, including offline charts.
Also recommended: convert real tick data to strategy tester fxt files - similar script with strong performance on MetaTrader 4.
This tool addresses the need for utilizing real tick history for various analytical purposes.
The ConvertTicksFile script offers three processing methods:
1. CSV File Export:
- Rewrites tick data into a standard CSV file, readable by Notepad or Excel.
- The CSV format includes: Date/Time of tick, Bid Price, Ask Price.
2. Candlestick CSV Export for MetaTrader 4:
- Converts tick data into candlesticks of a specified chart period.
- Exports data in a CSV format compatible with MetaTrader 4's quote import (Tools - History Center).
3. Direct Candlestick Import to MetaTrader 4 History:
- Converts tick data into candlesticks of a specified chart period.
- Writes quotes directly into the MetaTrader 4 terminal's history files (.hst).
- **Caution:** This method modifies the terminal's current quote history and requires user discretion.
- Useful for filling gaps in historical quote data. For example, a gap in the history can be resolved after script execution with the appropriate tick history file.
This tool is designed for use with MetaTrader 4 and is relevant for 2026 and beyond.
You may also like: excandles-v2: candlestick pattern indicator - excellent alternative for script users on MetaTrader 4.
Source Code
#property copyright "robotfx"
#property link "https://robotfx.org"
#property description "this code is educational. feel free to use, modify and upgrade as you wish. visit robotfx.org for professional trading tools"
#property strict
#property show_inputs
enum enum_convert_way
{
convert_way_csv_ticks, // to csv - file of ticks / csv -
convert_way_csv_candles, // to csv - file of candles / csv -
convert_way_hst_candles // to history file /
.......
⚠ Limitations & Risk Warning
- This tool is provided for educational and testing purposes only.
- Past performance does not guarantee future results.
- Trading involves substantial risk of loss. Use on a demo account first.
- Results may vary depending on market conditions, broker, and settings.
- We recommend thorough backtesting and forward testing before using with real funds.