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 "Position Management: Scaling Into Winners With A Falling-Risk Pyramid".

Position Management: Scaling Into Winners With A Falling-Risk Pyramid

We introduce CPyramidBridge, a thin MQL5 layer that maps bet-sizing results to CPyramidEngine. The bridge applies probability to initial lot sizing, enforces a capacity-aware entry gate, promotes add-ons from dynamic divergence, adapts the trailing stop to reserve estimates, and syncs signals on close, allowing an Expert Advisor to convert model confidence and concurrency into a structured, decreasing-risk pyramid.

Published article "MQL5 Wizard Techniques you should know (Part 92): Using B-Tree Indexing and a Bayesian NN in a Custom Signal Class".

MQL5 Wizard Techniques you should know (Part 92): Using B-Tree Indexing and a Bayesian NN in a Custom Signal Class

In this article we present yet another custom MQL5 Signal Class that we are labelling ‘CSignalBTreeBayesian’. We are marrying the algorithm of a balanced tree with a neural network that is built on Bayesian principles to formulate yet another custom signal testable independently or with other signals thanks to the MQL5 Wizard.

Published article "MQL5 Bootstrap (I): Reusable Functions for Working with Positions and Orders".

MQL5 Bootstrap (I): Reusable Functions for Working with Positions and Orders

This article presents a compact MQL5 utility layer for routine trade operations. It includes position existence checkers, position counters, bulk close helpers, and functions to retrieve the most recent or oldest position by symbol, magic, or type. A simple SMA crossover Expert Advisor demonstrates integration. The result is cleaner EAs, fewer inconsistencies across projects, and faster maintenance.

Published article "Modular Indicator Architecture in MQL5 (Part 1): Stop Copy-Pasting and Start Writing Scalable, Reusable Code".

Modular Indicator Architecture in MQL5 (Part 1): Stop Copy-Pasting and Start Writing Scalable, Reusable Code

This article develops an object-oriented framework for MQL5 indicators by evolving a primitive example into reusable modules. It formalizes partial buffer recalculation in OnCalculate, moves logic into header-based classes (CAppliedPrice, CSma), and introduces CSubIndiBase, CIndicatorBase, and a registry to centralize requirements. You get portable components, isolated inputs, and clean buffers with minimal boilerplate, making new indicators faster to assemble and easier to maintain.

The most downloaded free products:

There are more than 50,160 products available in Market

Bestsellers in the Market:

3 new topics on forum:

2 new signals now available for subscription:

Main Account
502% 5421 trades
Growth:502.04%
Equity:35,834.73EUR
Balance:38,963.86EUR
GoldEdge Prop Firm 100K Signal1
3% 1329 trades
Growth:3.42%
Equity:102,962.00USD
Balance:103,418.91USD

Published article "Encoding Candlestick Patterns (Part 2): Modeling Price Action as an Ordered Sequence".

Encoding Candlestick Patterns (Part 2): Modeling Price Action as an Ordered Sequence

Developing permutation-based tools in MQL5 provides a systematic way to analyze candlestick pattern combinations for trading strategies. This article introduces a permutation calculator and generator designed to compute and enumerate all possible ordered candlestick sequences from bullish and bearish sets, with or without repetition. By generating exhaustive pattern combinations, traders can perform data-driven analysis to identify high-probability market patterns and improve decision-making in automated trading systems.

Published article "Beyond GARCH (Part IV): Partition Analysis in MQL5".

Beyond GARCH (Part IV): Partition Analysis in MQL5

In this article, we shift from Python research to native MQL5 engineering. We build the first module of the MMAR library: a shared constants header, an SVD-based OLS regression class, a Generalized Hurst Exponent estimator, and the partition analysis engine that computes the partition function, extracts tau(q), estimates H via zero-crossing interpolation, and scores multifractality through three diagnostic tests. Tested on 500,000 bars of EURUSD M10, the engine correctly classifies the data as multifractal in under four seconds. Part 4 of an eight-part series. Part 5 fits the tau(q) curve to four candidate distributions via the Legendre transform.

Published article "Building Volatility Models in MQL5 (Part III): Implementing the SLSQP Algorithm for Model Estimation".

Building Volatility Models in MQL5 (Part III): Implementing the SLSQP Algorithm for Model Estimation

An SLSQP optimizer is implemented in MQL5 to resolve parameter discrepancies between a volatility library and Python's ARCH module. The article details constraint handling, gradient options, configuration, and convergence controls and shows how to integrate the solver into existing code. Practical examples and comparisons demonstrate matched log‑likelihoods and parameters on shared datasets.

New publications in CodeBase

  • Institutional Markov Chain Transition Matrix A quantitative stochastic probability engine that utilizes Markov Chain transition matrices to mathematically forecast the percentage chance of bullish or bearish continuation on the next algorithmic execution cycle.
  • Inside Bar Automatically detect Inside Bar patterns, draw projection rectangles, and receive real‑time alerts – all in one powerful indicator. Swing And Full Margin trader
  • fair value gap/imbalance Dynamic Fair Value Gap (FVG) is an MQL5 indicator for MetaTrader 4 that automatically detects market price imbalances. This indicator is perfectly suited for traders utilizing the Smart Money Concepts (SMC) strategy.

The most downloaded free products:

There are more than 50,090 products available in Market

More than 400 new charts published:

Grafik XAUUSD, M5, 2026.05.28 10:22 UTC, FundingPips Corp (2), MetaTrader 5, Demo
XAUUSD, M5
Gráfico XAUUSDc, M10, 2026.05.29 02:15 UTC, HF Markets (SV) Ltd., MetaTrader 5, Real
XAUUSDc, M10
图表 EURUSD.fx, H1, 2026.05.29 16:44 UTC, InstaFinance Ltd, MetaTrader 4, Demo
EURUSD.fx, H1

Bestsellers in the Market:

8 new signals now available for subscription:

Safe Scalp Gold TM
176% 143 trades
Growth:175.82%
Equity:2,372.14USD
Balance:2,372.14USD
Scoopy EA
111% 237 trades
Growth:110.65%
Equity:23,406.41USD
Balance:23,406.41USD
Salary Gold
25% 234 trades
Growth:24.74%
Equity:1,354.92USD
Balance:1,354.92USD
and 5 more...

10 new topics on forum:

and 7 more...
There are more than 2,910 articles published on site

Published article "MQL5 Trading Tools (Part 33): Building a Rich Content Markup Documentation System for MQL5 Programs".

MQL5 Trading Tools (Part 33): Building a Rich Content Markup Documentation System for MQL5 Programs

We extend the Part 9 setup wizard to build a canvas-based, in-chart documentation system for MetaTrader 5. The panel is tabbed and scrollable, supports inline styling, images, and interactive controls, and renders with supersampled anti-aliasing. The result is a reusable engine that any MQL5 program can embed to deliver self-contained documentation directly on the chart.

Published article "Beyond the Clock (Part 2): Building Runs Bars in MQL5".

Beyond the Clock (Part 2): Building Runs Bars in MQL5

We implement tick-, volume-, and dollar-runs bars in Python and MQL5 and align them with the existing bar‑building framework. The article details the dual‑accumulator update, offline calibration with per‑side seeds, state persistence for EAs, and parity verification to match Python and MQL5 outputs. Runs bars expose one‑sided bursts that net imbalance can hide, improving coverage during quiet sessions and for mean‑reversion models.

Published article "Application of the Grey Model in Technical Analysis of Financial Time Series".

Application of the Grey Model in Technical Analysis of Financial Time Series

This article explores the grey model, a promising tool that can expand trader's capabilities. We will look at some options for applying this model to technical analysis and building trading strategies.

Published article "Keeping Memory Across Restarts: EA State Persistence Using Binary Files in MQL5".

Keeping Memory Across Restarts: EA State Persistence Using Binary Files in MQL5

This article provides a structured MQL5 framework for serializing an Expert Advisor's internal state into local binary files. It prevents data resets during platform restarts by safely storing volatile tracking metrics, such as trade counts and multipliers, directly to disk. This architecture offers a more robust state continuity alternative to terminal Global Variables.

Published article "Detecting and Classifying Fractal Patterns Using Machine Learning".

Detecting and Classifying Fractal Patterns Using Machine Learning

In this article, we will touch upon the intriguing topic of fractal analysis and market forecasting using machine learning. These are just the first steps towards exploring the diverse fractal structures that form on financial price charts. We will use the correlation to find patterns and the CatBoost algorithm to classify these patterns.

Published article "Engineering a Self-Healing Expert Advisor in MQL5 (Part 1): Persistent Trade State Architecture".

Engineering a Self-Healing Expert Advisor in MQL5 (Part 1): Persistent Trade State Architecture

This article demonstrates how to build the persistence foundation of a self-healing Expert Advisor in MQL5 using SQLite. Readers will learn how to create a permanent trade-state storage layer capable of surviving terminal restarts, shutdowns, and unexpected interruptions. The article covers SQLite integration in MetaTrader 5, database lifecycle management, persistent trade-state structures, and runtime state recovery using practical MQL5 implementations.

Published article "Joint Recurrence Quantification Analysis (JRQA) in MQL5: Detecting Simultaneous Recurrence in Two Series".

Joint Recurrence Quantification Analysis (JRQA) in MQL5: Detecting Simultaneous Recurrence in Two Series

We extend the RQA library for MetaTrader 5 with JRQA, which detects when two series simultaneously revisit their own past states. The article covers the joint recurrence matrix, twelve JRQA metrics (including TREND and COMPLEXITY), dual-epsilon configuration, and a rolling-window engine with OpenCL acceleration and automatic CPU fallback. A practical indicator plots JRR, JDET, JLAM, JENTR, and JTREND for any symbol pair with timestamp alignment and normalization.

Published article "Meta-Labeling the Classics (Part 1): Filtering and Sizing RSI Trades".

Meta-Labeling the Classics (Part 1): Filtering and Sizing RSI Trades

RSI accumulates losses in trending conditions by firing at every threshold crossing regardless of market regime. A Random Forest secondary classifier trained on 12 contextual features — RSI momentum slope, EMA50 trend velocity, ATR-normalised trend stretch, and nine others — filters raw signals and scales position size by classifier confidence on EURUSD H1. Results compare plain RSI, meta-filtered RSI, and bet-sized RSI across a 16-month out-of-sample period with per-trade metrics and drawdown diagnostics.

The most downloaded free products:

There are more than 50,020 products available in Market

Bestsellers in the Market:

New publications in CodeBase

  • fair value gap/imbalance Dynamic Fair Value Gap (FVG) is an MQL5 indicator for MetaTrader 5 that automatically detects market price imbalances. This indicator is perfectly suited for traders utilizing the Smart Money Concepts (SMC) strategy.
  • Institutional Market Reversal - The SMC way IMR is a multi-layered quantitative reversal finder designed for discretionary price-action traders who refuse to trade blind. It helps traders understand what's the current market regime. Whether its an accumulation, distribution or continuation.
  • multiple order stop limit this script to make multiple pending order limit or stop order like buystop buylimit or sellstop selllimit

4 new topics on forum:

and 1 more...

4 new signals now available for subscription:

Gold Beaver
365% 96 trades
Growth:365.22%
Equity:618.05USD
Balance:618.05USD
Gold Spike MT5
79% 136 trades
Growth:78.51%
Equity:2,324.37USD
Balance:2,324.37USD
Antares
66% 91 trades
Growth:66.32%
Equity:3,326.32USD
Balance:3,326.32USD
and 1 more...

Published article "Covariance Matrix Adaptation Evolution Strategy (CMA-ES)".

Covariance Matrix Adaptation Evolution Strategy (CMA-ES)

The article explores one of the most interesting non-gradient optimization algorithms, which learns to understand the geometry of the objective function. We will focus on the classical implementation of CMA-ES with a slight modification - replacing the normal distribution with the power one. We will thoroughly examine the math behind the algorithm, as well as practical implementation, and check where CMA-ES is unbeatable and where it should be avoided.

Published article "Building a Dynamic STF Liquidity Sweep Indicator in MQL5".

Building a Dynamic STF Liquidity Sweep Indicator in MQL5

The article delivers a dynamic MetaTrader 5 indicator that detects liquidity sweeps via swing‑point logic, wick‑ratio thresholds, and engulfing confirmation. It recognizes single‑wick and dual‑candle patterns without a fixed window, updates buy‑/sell‑side targets as price evolves, and invalidates broken levels to maintain a reliable liquidity map.

Published article "Integrating AI into 3 Smart Money Concepts (SMC): OB, BOS, and FVG".

Integrating AI into 3 Smart Money Concepts (SMC): OB, BOS, and FVG

This guide integrates a trained XGBoost model (ONNX) into an SMC EA to evaluate trade setups before execution. The Python pipeline labels historical XAUUSD events and produces a 12-feature representation aligned with the EA. The result is a reproducible method to train, export, and embed the model so the EA can filter OB, FVG, and BOS signals programmatically.

Published article "News Filtering with MetaTrader 5 Economic Calendar and CSV Fallback".

News Filtering with MetaTrader 5 Economic Calendar and CSV Fallback

This article presents a self-contained news filter module for MetaTrader 5 built on the platform's economic calendar API. It implements symbol-to-currency mapping, pre- and post-event trading pauses, and optional position size reduction on high-impact days, with a CSV-based fallback for the Strategy Tester. A demo EA and live chart dashboard show integration and verification in both live and backtest environments.

More than 500 new charts published:

График XAUUSD, M5, 2026.05.26 05:27 UTC, RoboForex Ltd, MetaTrader 5, Demo
XAUUSD, M5
Grafico EURUSD, M1, 2026.05.26 02:06 UTC, RoboForex Ltd, MetaTrader 5, Demo
EURUSD, M1
图表 XAUUSD, M5, 2026.05.27 22:42 UTC, FBS Markets Inc., MetaTrader 5, Demo
XAUUSD, M5

The most downloaded free products:

There are more than 49,940 products available in Market

Bestsellers in the Market:

There are more than 153,700 topics available on forum

6 new topics on forum:

and 3 more...

11 new signals now available for subscription:

Multi EA Trading
3,397% 570 trades
Growth:3,397.15%
Equity:845.66USD
Balance:947.56USD
Dynamic liquidity intelligence IC50
627% 153 trades
Growth:627.43%
Equity:315.32USD
Balance:315.32USD
SuperGold v6 XM 6000
148% 1496 trades
Growth:148.38%
Equity:6,500.15USD
Balance:6,500.15USD
and 8 more...

Published article "Building the Market Structure Sentinel Indicator in MQL5".

Building the Market Structure Sentinel Indicator in MQL5

This article builds a Market Structure Sentinel indicator in MQL5 that detects and visualizes Smart Money Concepts (SMC) events, including Break of Structure (BOS) and Change of Character (CHOCH), in real time. It explains swing detection, structural validation, and trend classification, and adds a compact dashboard to track bullish, bearish, or ranging states for faster on‑chart interpretation.

Published article "How to Detect and Normalize Chart Objects in MQL5 (Part 1): Building a Chart Object Detection Engine".

How to Detect and Normalize Chart Objects in MQL5 (Part 1): Building a Chart Object Detection Engine

This article addresses the interpretative gap between visual chart objects and algorithmic execution. You will build a systematic detector that iterates over all chart objects, identifies analytical types, and normalises their geometric data (time and price coordinates) into a structured SChartObjectInfo array. The implementation uses raw MQL5 functions, a filter‑extract‑store pipeline, and a timer‑driven test EA, resulting in a reusable framework for rule‑based trading inputs.

Published article "Building a Megaphone Pattern Indicator in MQL5".

Building a Megaphone Pattern Indicator in MQL5

Build a megaphone pattern indicator in MQL5 that detects expanding structures on the chart. The article walks through swing identification and refinement, trend line validation, breakout confirmation, and SL/TP projection, with chart objects for lines, labels, and signals. As a result, you get a rule-based implementation that automates pattern detection and produces actionable levels directly in MetaTrader 5.

Published article "Market Microstructure in MQL5 (Part 3): Estimating ARFIMA d with GPH".

Market Microstructure in MQL5 (Part 3): Estimating ARFIMA d with GPH

A GPH‑based estimator for d, the key ARFIMA parameter, is added to MicroStructure_Foundation.mqh. GPHEstimator() computes d via log‑periodogram regression, while PopulateARFIMAAnalysis() stores d with an R² confidence score and validates the theoretical relationship H = d + 0.5. An empirical study on 72 US100 M1 sessions confirms pooled d = −0.006, consistent with the random walk boundary established in Part 2.

Published article "An Introduction to the Study of Fractal Market Structures Using Machine Learning".

An Introduction to the Study of Fractal Market Structures Using Machine Learning

The article attempts to examine financial time series from the perspective of self-similar fractal structures. Since we have too many analogies that confirm the possibility of considering market quotes as self-similar fractals, this allows us to think about the forecasting horizons of such structures.

1...282930313233343536373839404142...693