Find us on Facebook!
Join our fan page

Use new possibilities of MetaTrader 5

History of MQL5.community development

The most popular trading robots and technical indicators, news signals, regular incoming ready-made MQL5 programs in CodeBase and the most discussed Forum topics.

Published article "Building an Object-Oriented Z-Score Statistical Arbitrage Engine in MQL5".

Building an Object-Oriented Z-Score Statistical Arbitrage Engine in MQL5

This article shows how to implement a production Z-Score engine in MQL5 using an object-oriented include file, the library computes a rolling mean and population standard deviation, exposes a shift parameter for historical queries, and avoids redundant tick work by running on bar close. An Expert Advisor executes rule-based entries at positive/negative sigma thresholds and closes on mean reversion; a custom indicator provides visual verification.

Published article "Neural Networks in Trading: Anomaly Detection in the Frequency Domain (Final Part)".

Neural Networks in Trading: Anomaly Detection in the Frequency Domain (Final Part)

We continue to work on implementing the CATCH framework, which combines the Fourier transform and frequency patching mechanisms, ensuring accurate detection of market anomalies. In this article, we complete the implementation of our own vision of the proposed approaches and test the new models on real historical data.

Published article "Market Simulation: Getting started with SQL in MQL5 (I)".

Market Simulation: Getting started with SQL in MQL5 (I)

In today's article we will begin studying the use of SQL in MQL5 code. We will also look at how to create a database. Or, more precisely, how to create a SQLite database file using the features built into MQL5. We will also see how to create a table, and then how to establish a relationship between tables by using primary and foreign keys. All of this, once again, will be done with MQL5. We will see how easy it is to create code that can later be migrated to other SQL implementations by using a class that helps hide the implementation being created. And, most importantly, we will see that at various points we may face the risk that something will go wrong when using SQL. This happens because, in MQL5 code, SQL code will always be placed inside a string.

Published article "Implementing a Breakeven Mechanism in MQL5 (Part 2): ATR- and RRR-Based Breakeven".

Implementing a Breakeven Mechanism in MQL5 (Part 2): ATR- and RRR-Based Breakeven

This article completes the implementation of ATR- and RRRR-based breakeven mechanisms in MQL5 and develops, from scratch, a class that makes it easy to switch breakeven modes without having to enter the parameters again. To evaluate the effectiveness of each breakeven type, several backtests are run, analyzing their advantages and disadvantages in the context of algorithmic trading.

New publications in CodeBase

  • Universal Breakout Study Universal Breakout Study is a research-focused Expert Advisor for MetaTrader 5 designed to analyze and optimize range breakout strategies. It provides flexible parameter testing, fast optimization, and a structured framework for validating trading ideas using historical data and forward testing.
  • Institutional Ornstein-Uhlenbeck Equilibrium Matrix An econometric price-space indicator that utilizes the Ornstein-Uhlenbeck stochastic process to mathematically estimate the asset's true driftless equilibrium and its speed of mean reversion.

The most downloaded free products:

There are more than 52,210 products available in Market

The most popular forum topics:

Bestsellers in the Market:

Most downloaded source codes this week

  • Quantum XAUUSD Silver Trader Multi-indicator EA for Gold (XAUUSD) and Silver (XAGUSD): RSI, ADX and MA signals, adaptive ATR trailing stop and built-in capital protection.
  • Prime Quantum AI — TRADE WITH AI (Anthropic Claude, OpenAI GPT, Google Gemini, DeepSeek, xAI Grok). Prime Quantum AI is an MT5 Expert Advisor combining a classical pre-filter (ADX + Alligator) with AI vision-based chart confirmation from major AI providers (Anthropic Claude, OpenAI GPT, Google Gemini, DeepSeek, xAI Grok). When the pre-filter detects a trend setup, the EA captures three adaptive- timeframe chart screenshots and sends them to the configured AI provider, which returns direction, confidence, stop-loss and take-profit. A trade is opened only when the AI confirms the pre-filter signal with sufficient confidence. Features: dual Standard Broker / Prop Firm risk modes, configurable lot sizing, optional martingale, multiple SL/TP modes, trailing stop, partial close, news/time/day/spread filters, draggable on-chart info panel, and fully exposed indicator parameters. Requires MetaTrader 5, WebRequest enabled for your provider's URL, and a valid API key. Provider auto-detected from key format.
  • MQL5 Programming for Traders – Source Codes from the Book. Part 1 The first chapter of the book introduces the MQL5 language and development environment. One of the new features introduced in the MQL5 language compared to MQL4 (MetaTrader 4 language) is support for object-oriented programming (OOP), which makes it similar to C++.

Most read articles this week

How to purchase a trading robot from the MetaTrader Market and to install it?

How to purchase a trading robot from the MetaTrader Market and to install it?

A product from the MetaTrader Market can be purchased on the MQL5.com website or straight from the MetaTrader 4 and MetaTrader 5 trading platforms. Choose a desired product that suits your trading style, pay for it using your preferred payment method, and activate the product.

How to Test a Trading Robot Before Buying

How to Test a Trading Robot Before Buying

Buying a trading robot on MQL5 Market has a distinct benefit over all other similar options - an automated system offered can be thoroughly tested directly in the MetaTrader 5 terminal. Before buying, an Expert Advisor can and should be carefully run in all unfavorable modes in the built-in Strategy Tester to get a complete grasp of the system.

12 new signals now available for subscription:

PeuEagleFox
299% 253 trades
Growth:299.39%
Equity:7,777.99BRL
Balance:7,857.19BRL
GOLD HUAT EA
209% 640 trades
Growth:208.83%
Equity:23,221.47USD
Balance:23,221.47USD
Hedge 1000
186% 274 trades
Growth:185.65%
Equity:14,715.00USD
Balance:15,314.34USD
and 9 more...

1 new topic on forum:

More than 1000 new charts published:

Graphique EURUSD., H4, 2026.06.05 20:45 UTC, Orbex Global Ltd, MetaTrader 4, Real
EURUSD., H4
차트 GBPUSD, H1, 2026.06.05 22:20 UTC, Titan FX Limited, MetaTrader 4, Real
GBPUSD, H1
图表 USDJPYb, M2, 2026.06.05 20:03 UTC, HF Markets (SV) Ltd., MetaTrader 4, Demo
USDJPYb, M2

The most downloaded free products:

There are more than 52,110 products available in Market

Bestsellers in the Market:

12 new signals now available for subscription:

XAUUSD 03
462% 727 trades
Growth:461.89%
Equity:897.08USD
Balance:897.08USD
Precision BTC AI 2
294% 279 trades
Growth:293.72%
Equity:118.76USD
Balance:118.76USD
Gold Challenge
145% 98 trades
Growth:144.88%
Equity:434.81USD
Balance:434.81USD
and 9 more...

4 new topics on forum:

and 1 more...

The most downloaded free products:

17 new signals now available for subscription:

Zona
249% 298 trades
Growth:249.30%
Equity:901.13USD
Balance:901.13USD
GOLD SUPERB
186% 840 trades
Growth:186.33%
Equity:1,431.64USD
Balance:1,431.64USD
WizzardX
155% 475 trades
Growth:154.88%
Equity:2,612.45EUR
Balance:2,612.45EUR
and 14 more...
There are more than 52,030 products available in Market

Bestsellers in the Market:

There are more than 2,940 articles published on site

Published article "Interactive Supply and Demand Zone Manager in MQL5 (Part I): From Manual to Automated Lifecycle".

Interactive Supply and Demand Zone Manager in MQL5 (Part I): From Manual to Automated Lifecycle

Replace static drawings with automated, stateful zones controlled by a CZone wrapper. The system synchronizes user rectangles, sizes zones by ATR, validates breakouts using consecutive closes, applies ghost/deactivation rules, merges nearby structures by a 1.5×ATR threshold, and projects edges forward. Traders gain durable levels that update themselves and reduce repetitive chart management.

Published article "Market Microstructure in MQL5 (Part 4): Volatility That Remembers".

Market Microstructure in MQL5 (Part 4): Volatility That Remembers

This article adds eight volatility functions to MicroStructure_Foundation.mqh, including realized volatility, duration-adjusted volatility, fractional volatility, a FIGARCH-inspired proxy, a volatility clustering index, a GJR-GARCH asymmetry measure (using the Dube library), bipower-variation jump detection, and a wrapper function. The MFDFA implementation is revised to return the conventional Legendre-transform Δα with an R² confidence field, replacing the τ-spread proxy used in the original submission. Thresholds are derived from 514 NY sessions of NQ E-mini Nasdaq 100 futures (May 2024–May 2026); no new include file is created.

Published article "From Basic to Intermediate: Objects (II)".

From Basic to Intermediate: Objects (II)

In today's article, we will look at how to control some object properties in a simple way using code. We will also see how a custom application can place more than one object on the same chart. In addition, we will begin to understand the importance of assigning a short name to any indicator we plan to implement.

Published article "Market Simulation (Part 24): Getting Started with SQL (VII)".

Market Simulation (Part 24): Getting Started with SQL (VII)

In the previous article, we completed the necessary introduction to SQL. And, in my opinion, we properly clarified what we wanted to show and explain about SQL. This was done so that anyone who comes to look at the market replay/simulation system being built can at least get an idea of what may be happening there. The point is that there is no sense in programming things that SQL handles perfectly.

Published article "Analyzing Price Time Gaps in MQL5 (Part II): Creating a Heat Map of Liquidity Distribution Over Time".

Analyzing Price Time Gaps in MQL5 (Part II): Creating a Heat Map of Liquidity Distribution Over Time

A detailed guide on how to create a heat map indicator for MetaTrader 5 that visualizes the price distribution over time. The article reveals the mathematical basis of time density analysis, where each price level is colored from red (minimum stay time) to blue (maximum stay time).

Published article "From Basic to Intermediate: Function Pointers".

From Basic to Intermediate: Function Pointers

You have probably already heard about pointers when it comes to programming. But did you know that we can use this kind of data here in MQL5? Of course, this must be done in a way that keeps us in control and avoids strange program behavior during execution. Still, because this is a feature with a very specific purpose and aimed at particular kinds of tasks, it is rare to hear anyone discuss what a pointer is and how to use it in MQL5.

Published article "Market Simulation (Part 23): Getting Started with SQL (VI)".

Market Simulation (Part 23): Getting Started with SQL (VI)

In this article, we will see how to visualize a database and, from that, understand how it is structured. This is done by analyzing the database’s internal structure. Although this may seem unnecessary at first, it is fully justified if we really want to become database administrators. After all, some people make a living maintaining and designing databases.

1 new topic on forum:

New publications in CodeBase

  • MSNR v5.31Plus AEU EA MSNR v5.31Plus AEU EA is an Expert Advisor for MetaTrader 5 based on Malaysian SNR body levels, Smart Money reaction logic, liquidity sweep, MISS, engulfing confirmation, trendline confluence, QML, CRT and DOL target projection. The EA is designed for XAUUSD and works best on the M5 timeframe. It scans higher timeframes such as W1, D1, H4 and H1 to build important support and resistance zones, then waits for price action confirmation on the execution timeframe. Main features: - Malaysian SNR body-level detection. - Higher-timeframe support and resistance scan. - Liquidity sweep, MISS and engulfing confirmation. - Trendline, QML, breakout-retest and CRT logic. - Confluence cluster system. - Session filter for Asia, Europe and US trading hours. - Risk management by account percentage. - Partial close at selected R multiple. - Break-even and safety guard options. Recommended settings: Symbol: XAUUSD Timeframe: M5.
  • 001 - Turnaround Tuesday Expert Advisor for testing the Turnaround Tuesday hypothesis. If Monday closes bullish, a Sell position is opened on Tuesday. If Monday closes bearish, a Buy position is opened. The EA supports an ATR-based filter, ATR-based Stop Loss and Take Profit levels, as well as position sizing using either a fixed lot size or percentage risk.
  • Long-Only Trend Breakout with Dynamic Risk Management Breakout is a clean, automated MetaTrader 5 expert advisor designed to capture algorithmic breakout momentum in structural bull markets.

The most downloaded free products:

There are more than 51,960 products available in Market

More than 900 new charts published:

图表 GER40.cash, M5, 2026.06.04 07:29 UTC, FTMO Global Markets Ltd, MetaTrader 5, Real
GER40.cash, M5
Gráfico USDCHF, M15, 2026.06.04 00:17 UTC, AT Global Markets Intl Ltd, MetaTrader 4, Demo
USDCHF, M15
图表 EURUSD, H1, 2026.06.04 21:12 UTC, XM Global Limited, MetaTrader 5, Demo
EURUSD, H1

Bestsellers in the Market:

The most popular forum topics:

14 new signals now available for subscription:

Swing XAU
354% 42 trades
Growth:354.24%
Equity:454.83USD
Balance:454.83USD
Spot vs Future Arbitrage
58% 1458 trades
Growth:57.58%
Equity:1,014.44USD
Balance:1,014.44USD
DuckBotMT5
55% 10108 trades
Growth:55.18%
Equity:40,290.60USD
Balance:40,294.36USD
and 11 more...

Published article "Low-Frequency Quantitative Strategies in MetaTrader 5 (Part 3): A Regime-Adaptive Mean-Reversion Swing Trading System".

Low-Frequency Quantitative Strategies in MetaTrader 5 (Part 3): A Regime-Adaptive Mean-Reversion Swing Trading System

The article describes and codes MR Swing in MQL5, a mean‑reversion swing approach that combines a 200‑day hysteresis channel with Value Charts, DVO, and SVAPO. We document entry/exit rules for bull and bear regimes and show five‑year backtests on six high‑liquidity Nasdaq stocks. The complete EA code and backtest configurations are provided for reproducibility.

8 new topics on forum:

and 5 more...

Published article "MQL5 Trading Tools (Part 34): Replacing Native Chart Objects with an Interactive Canvas Drawing Layer".

MQL5 Trading Tools (Part 34): Replacing Native Chart Objects with an Interactive Canvas Drawing Layer

We replace native MetaTrader chart objects with a canvas-based drawing engine that renders tools pixel-by-pixel on a full-chart bitmap layer. The article implements persistent object storage with per-tool style memory, precise hit testing, selection, whole-object dragging, and handle manipulation. It also adds new line tools, a reorganized category system with a one-click delete action, and a rubber-band preview for multi-click placement.

Published article "MetaTrader 5 Machine Learning Blueprint (Part 17): CPCV Backtesting — From Python Model to Tick-Level Evidence".

MetaTrader 5 Machine Learning Blueprint (Part 17): CPCV Backtesting — From Python Model to Tick-Level Evidence

We bridge Python-native artifacts to MQL5 for tick-accurate CPCV backtesting. The export script converts the ONNX model, calibrator, feature spec, and path masks to flat files, while the expert advisor rebuilds features, performs ONNX inference with calibration, and trades on real ticks. The Strategy Tester runs each combinatorial path, and Python aggregates per-path equities into a path Sharpe distribution to assess robustness after spread, slippage, and commission.

Published article "Automating Classic Market Methods in MQL5 (Part 1): Wyckoff Accumulation and Distribution".

Automating Classic Market Methods in MQL5 (Part 1): Wyckoff Accumulation and Distribution

The article describes an MQL5 EA that automates Wyckoff accumulation and distribution via a finite state machine. It confirms spring to SOS and upthrust to SOW before placing LPS or LPSY entries, using relative tick volume as the confirmation metric. Readers get the state model, detection criteria, code organization, and MetaTrader 5 testing procedure.

Published article "Seasonality Indicator by Hours, Days of the Week, and Days of the Month".

Seasonality Indicator by Hours, Days of the Week, and Days of the Month

The article explains how to develop a tool for analyzing recurring price patterns in financial markets — by day of the month (1-31), day of the week (Monday-Sunday), or hour of the day (0-23). The indicator analyzes historical data, calculates the average return for each period, and displays the results as a histogram with a forecast. It includes customizable parameters: seasonality type, number of bars analyzed, display as percentages or absolute values, chart colors.

Published article "Backtracking Search Algorithm (BSA)".

Backtracking Search Algorithm (BSA)

What if an optimization algorithm could remember its past journeys and use that memory to find better solutions? BSA does just that – balancing exploration with revisiting the tried and true. In this article, we reveal the secrets of the algorithm. A simple idea, minimum parameters and a stable result.

There are more than 51,880 products available in Market

Bestsellers in the Market:

The most downloaded free products:

More than 800 new charts published:

Graphique XAUUSD, M15, 2026.06.03 01:18 UTC, Alpari, MetaTrader 4, Demo
XAUUSD, M15
Graphique PainX 600, M5, 2026.06.03 01:43 UTC, Weltrade Ltd., MetaTrader 5, Demo
PainX 600, M5
图表 XAUUSD, M15, 2026.06.03 02:04 UTC, WM Markets Ltd, MetaTrader 5, Real
XAUUSD, M15
1...121314151617181920212223242526...683