MetaTrader 4 Program
3.6 | 81 Votes
What is an EX4 file?
An EX4 file is a program that can be run by MetaQuotes MetaTrader 4, a financial trading platform. Traders run EX4 files to automate trades, calculate technical indicators, and perform other processes. EX4 files are compiled from .MQ4 files, which contain source code written in MetaQuotes Language 4 (MQL4).
Traders use MetaQuotes MetaTrader to trade assets within the Forex, Futures, and CFD markets. Advanced MetaTrader users can use the program's MetaEditor to create custom programs that automate trading and/or perform analytical processes. (Programs that both automate trading and perform analytical processes are often referred to as Expert Advisors.)
In MetaTrader 4, source code files created via MetaEditor are saved as MQ4 files, and compiled programs created via MetaEditor are saved as EX4 files. To run the program an MQ4 file contains, you must first use MetaEditor to compile it to an EX4 file.
NOTE: In MetaTrader 5, .EX5 files replaced EX4 files.
How to open an EX4 file
You can open an EX4 file, and run the program it contains, with MetaTrader 4. To do so:
- Place the EX4 file in MetaTrader 4's Indicators folder.
- Click the Editor tool in MetaTrader 4's toolbar.
- In the left Navigator panel, select the Indicators folder.
- Open your EX4 file.