MQL5
MetaQuotes Language 5 — the object-oriented programming language used to build Expert Advisors, indicators, and scripts on MetaTrader 5.
MQL5 is the modern, C++-derived language for MetaTrader 5. Compared to MQL4 it adds OOP (classes, inheritance, interfaces), templates, the multi-currency Strategy Tester, ENUM_TIMEFRAMES extensions, and far richer event handling (OnTradeTransaction, OnBookEvent). It is mandatory for prop-firm CRM, hedging, partial-close logic, and any project that needs portfolio-level risk control. MQL5 EAs compile to .ex5 and run inside the MT5 terminal; they can also be sold or distributed via the MQL5 Market.
Related terms
A trading bot that runs inside MetaTrader 4 or 5 and executes orders automatically based on coded rules.
MetaQuotes' multi-asset trading platform — supports forex, CFDs, stocks, futures, and crypto. Hosts EAs written in MQL5.
MetaQuotes Language 4 — the legacy procedural language for building Expert Advisors and indicators on MetaTrader 4.
Read more on the blog
Need this built into a real product?
Viprasol Tech ships production code for everything defined here — MT4/MT5 EAs, AI agents, B2B SaaS, AWS architecture.
Send a brief →