MQR Language

Create strategies with MQR and take them to MT5.

Write entry, exit, filter and management rules in a language designed for trading workflows. Everything you need to get started is right here.

Manuals and extensions

Line-by-line debugBuild OKExports MQL5
AI Cursor · Codex
MQRDedicated strategy language
MQL5Conversion to run on MT5
DebugStep-by-step execution inspection
AIManual ready for Cursor and Codex

Features

Resources to create, test and improve strategies.

MQR brings programming closer to the trader workflow, with market commands, indicators and test parameters.

Market data Candles, volume, time, price and multi-timeframe reading.
Orders Entry, exit, stops, limits and position tracking.
Indicators Moving averages, RSI, ATR, CCI, MACD, Bollinger, Stochastic, Keltner and other studies.
Debug Inspect rules, variables and execution during development.
Parameters Optimizable inputs to test different strategy settings.
MQL5 export Take the strategy to the native MetaTrader 5 environment when needed.

From MQR to MT5

A language close to the trader workflow.

The code describes entry, exit, filters and optimizable parameters directly. When the strategy is ready, it is converted to MQL5 and runs on MetaTrader 5.

  • Familiar syntax for anyone who already codes in MQL5
  • The same strategy in the backtest and on MT5
  • Optimizable inputs from the first line
strategy.mqr strategy.mq5 CONVERT MetaTrader 5 ✓

Workflow

From idea to EA in four steps.

Write, debug, test and export without switching tools.

  1. 1

    Write

    Create entry, exit and filter rules in MQR.

  2. 2

    Debug

    Inspect variables and execution line by line.

  3. 3

    Test

    Run backtests and optimizations with the strategy inputs.

  4. 4

    Export

    Convert to MQL5 and run it on MetaTrader 5.

Code with AI

The MQR Manual for AI is the reference for Cursor, Codex and other LLMs to generate valid MQR code. Pair it with the MQR Tools extension in your editor.

Start coding in MQR

Download for free, open the manual and write your first strategy.