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.

Most read articles this week

Building a Viewport SnR Volume Profile Indicator in MQL5

Building a Viewport SnR Volume Profile Indicator in MQL5

We build a Support and Resistance Volume Profile indicator that adapts to the current viewport in MetaTrader 5. You will learn viewport detection, dynamic SnR identification, zoom‑driven bin sizing, min‑max volume scaling, and fast on‑chart rendering controlled by OnChartEvent. This approach expresses the relative strength of SnR levels with volume, keeping the chart focused on actionable reaction zones.

Feature Engineering for ML (Part 9): Structural Break Tests in Python

Feature Engineering for ML (Part 9): Structural Break Tests in Python

We present a production‑ready implementation of AFML Chapter 17 structural break tests. The module includes Chu-Stinchcombe-White (one-/two-sided), Chow-type DFC, SADF across six models (linear, quadratic, sm poly 1, sm poly 2, sm exp, sm power), plus QADF (q, v) and CADF (q), returning bar-indexed scalar features. We address the book snippets' scaling issues and argument‑order pitfall, and show how a fixed lookback (L=504) bounds SADF cost to O(L²) per bar for regime detection.

Training a nonlinear U-Transformer on the residuals of a linear autoregressive model

Training a nonlinear U-Transformer on the residuals of a linear autoregressive model

The article presents an innovative hybrid system for forecasting exchange rates that combines a linear autoregressive model with a U-Transformer architecture for residual analysis. The system automatically switches between signal sources depending on their quality and includes complete trading logic with averaging/pyramiding strategies. The key advantage of this approach is that the neural network is trained on the residuals of the linear model, which simplifies the task and reduces the risk of overfitting. The implementation is done entirely in MQL5 and is ready for use in real trading with automatic adaptation to changing market conditions.

15 new signals now available for subscription:

GoldHunter
379% 573 trades
Growth:378.83%
Equity:579.96USD
Balance:579.96USD
Nasdaq Following
109% 488 trades
Growth:109.41%
Equity:1,160.18USD
Balance:1,160.18USD
Anson Account 1
94% 88 trades
Growth:94.12%
Equity:664.60USD
Balance:664.60USD
and 12 more...

4 new topics on forum:

and 1 more...

New publications in CodeBase

The most downloaded free products:

There are more than 55,210 products available in Market

12 new signals now available for subscription:

GoldExtractor1
719% 785 trades
Growth:718.75%
Equity:870.10USD
Balance:870.10USD
Kgold
273% 908 trades
Growth:273.26%
Equity:2,469.81USD
Balance:2,469.81USD
KingGold Signal
109% 107 trades
Growth:108.57%
Equity:319.95USD
Balance:319.95USD
and 9 more...

Bestsellers in the Market:

1 new topic on forum:

The most popular forum topics:

The most downloaded free products:

More than 1100 new charts published:

图表 GBPUSD, M5, 2026.07.10 08:57 UTC, Combat Capital Markets LLC, MetaTrader 5, Demo
GBPUSD, M5
Chart EURUSD, M15, 2026.07.10 04:41 UTC, Alpari, MetaTrader 4, Real
EURUSD, M15
图表 GBPUSD, M5, 2026.07.10 09:00 UTC, Combat Capital Markets LLC, MetaTrader 5, Demo
GBPUSD, M5

Bestsellers in the Market:

There are more than 55,150 products available in Market

5 new topics on forum:

and 2 more...

20 new signals now available for subscription:

EA SMC ULTRA INSTING
733% 21895 trades
Growth:732.66%
Equity:83,266.04USD
Balance:83,266.04USD
EA GOLD99
345% 5184 trades
Growth:345.11%
Equity:6,888.69USD
Balance:6,888.69USD
QQ Live Signal EURUSD
326% 39 trades
Growth:325.73%
Equity:215.59USD
Balance:215.59USD
and 17 more...
There are more than 3,090 articles published on site

Published article "Building a Divergence System (Part II): Adaptive SuperTrend Custom Indicator".

Building a Divergence System (Part II): Adaptive SuperTrend Custom Indicator

The article upgrades SuperTrend by integrating a divergence engine (MPO4 or RSI) the dynamically reduces the ATR multiplier during weakening momentum. It covers the shrinking formula, non-repainting state propagation with dedicated buffers, and a step-by-step MQL5 implementation on the price chart. You will learn how to interpret arrows and line flips, adjust inputs, and apply the indicator for disciplined trailing and earlier confirmations.

Published article "Implementing a Circular Buffer Class in MQL5: Fixed-Memory Rolling Windows for Real-Time Indicator Calculations".

Implementing a Circular Buffer Class in MQL5: Fixed-Memory Rolling Windows for Real-Time Indicator Calculations

A templated CCircularBuffer class for MQL5 replaces the O(n) ArrayCopy array-shift pattern with O(1) insertion using a fixed-capacity ring buffer. The implementation is shown end to end and integrated into a rolling standard deviation indicator. Benchmarks across multiple window sizes compare both approaches and quantify the impact on real-time indicator calculations.

Published article "Automating Trading Strategies in MQL5 (Part 50): Turtle Soup Liquidity Sweeps".

Automating Trading Strategies in MQL5 (Part 50): Turtle Soup Liquidity Sweeps

We build an automated MQL5 program that trades Turtle Soup by fading false breakouts of the N-bar high and low. The article implements liquidity-sweep detection, confirmation closes back inside the level, sweep-depth and extreme-age filters, and an optional reversal-candle body check. It adds configurable dynamic or static stops, two take-profit modes, points-based trailing, and clear chart visuals, providing a ready baseline for backtesting and further customization.

Published article "Reimagining Classic Strategies (Part 22): Ensemble Mean Reverting Strategy".

Reimagining Classic Strategies (Part 22): Ensemble Mean Reverting Strategy

This article will illustrate to the reader how to implement a mean-reverting strategy for the EURUSD pair. The strategy follows contrarian trading rules. Our strategy implements a weekly moving average channel, with one moving average on the high-price feed and the latter on the low-price feed. We enter short positions when the price falls beneath the low moving average and long positions when the price rises above the high moving average. Additionally, we will export daily market data to build a simple ONNX model of the market to provide an additional filter for our entries. This provides the reader with a reproducible template for strategy development and backtesting.

Published article "Extreme Value Theory in MQL5: Building a Tail-Risk Crash Gauge Beyond Monte Carlo VaR".

Extreme Value Theory in MQL5: Building a Tail-Risk Crash Gauge Beyond Monte Carlo VaR

Standard MQL5 risk tools read risk from recent history and miss how heavy the downside tail can be. We implement Extreme Value Theory in MetaTrader 5: a Peaks‑Over‑Threshold fit of the Generalized Pareto Distribution via ALGLIB, a live indicator that reports EVT VaR/ES and tail shape, and an EA that sizes positions from the tail estimate. A controlled backtest illustrates reduced drawdown for unchanged entries.

Published article "Custom Indicator Workshop (Part 3): Building the UT Bot Alerts Indicator in MQL5".

Custom Indicator Workshop (Part 3): Building the UT Bot Alerts Indicator in MQL5

This article demonstrates how to build the UT Bot Alerts indicator in MQL5 using a clear, step-by-step approach. The tutorial explains how to implement an ATR-based trailing stop system, compute a custom EMA for signal detection, and generate buy and sell signals without repainting. The final indicator provides well-structured buffers that enable easy integration with Expert Advisors, automated trading systems, and other algorithmic tools within the MetaTrader 5 platform.

New publications in CodeBase

  • EA KCI N-Matrix engine The Apex of Algorithmic Grid & Kinetic Momentum. Welcome to the KCI Native Matrix Engine—a merciless, mathematically driven algorithmic behemoth built natively for MetaTrader 5. Engineered for High-Frequency Trading (HFT) environments, this EA strips away bloated standard libraries and operates directly at the server routing level.
  • KCI Directional Matrix The KCI-Directional Matrix (KCI-DX) is an advanced, physics-inspired analytical tool that extracts market kinematics by measuring price path length and volatility energy. Unlike conventional momentum tools, KCI-DX employs a dynamic Z-Score normalization combined with a Sigmoid activation function. This ensures the output is flawlessly bounded between 0 and 100, providing hyper-responsive trend strength identification and directional bias without distortion from historical extremes.
  • KCI Volatility Distance The KCI Volatility Distance is an advanced, adaptive algorithm meticulously engineered to map market momentum and trend direction with pure precision. Utilizing a proprietary matrix-based calculation, this tool dynamically filters out market noise and provides a strictly quantitative perspective on directional strength. Built with a highly optimized Object-Oriented Programming (OOP) core, it is designed for both visual trading clarity and seamless integration into Expert Advisors or Machine Learning modules, ensuring ultra-light CPU performance across multiple assets.

The most downloaded free products:

More than 1000 new charts published:

图表 XAUUSDrfd, H4, 2026.07.09 09:46 UTC, ООО ''Альфа-Форекс'', MetaTrader 5, Real
XAUUSDrfd, H4
图表 USDJPY, H4, 2026.07.09 10:02 UTC, Evalanch Ltd., MetaTrader 5, Demo
USDJPY, H4
图表 XAGUSD@, M15, 2026.07.09 09:41 UTC, WM Markets Ltd, MetaTrader 5, Demo
XAGUSD@, M15
There are more than 55,060 products available in Market

Bestsellers in the Market:

32 new signals now available for subscription:

Ustetchii01
146% 120 trades
Growth:146.48%
Equity:507.74USD
Balance:507.74USD
Quantum Goddess TMGM
109% 398 trades
Growth:109.29%
Equity:624.33USD
Balance:641.01USD
Currency EA
91% 756 trades
Growth:91.24%
Equity:2,294.92USD
Balance:2,294.92USD
and 29 more...

New publications in CodeBase

  • Market Miner A multi strategy EA gold mine :)
  • MA + Envelope Breakouts Breakouts based on envelope channel or band, multi EA logic in One EA
  • T5Copier - MT 5 client to client Local trade copier A local client to client trade copier with custom dashboard in C# and transport pipe in golang , complete src is provided in archive ( socket based ver ) ultra low latency
  • Envelope SAR This indicator is a trend-momentum oscillator that tracks where price sits relative to its structural volatility channel using a normalized relationship between the Parabolic SAR and Envelopes.
  • Profit Loss calendar P/L Calendar — Monthly Profit & Loss at a Glance. P/L Calendar shows you, day by day, exactly how your account performed this month — so you can spot your best and worst days, track your win rate, and see your trading rhythm without digging through the terminal's history tab.
There are more than 12,160 codes published in Codebase

8 new topics on forum:

and 5 more...

Published article "Market Simulation (Part 23): Position View (I)".

Market Simulation (Part 23): Position View (I)

The content we will cover from this point on is much more complex in terms of theory and concepts. I will try to make the material as simple as possible. The programming part itself is quite simple and straightforward. But if you do not understand the theory behind it, you will be left with no practical basis at all for refining or adapting the replay/simulation system to tasks different from the ones I am going to show. I do not want you merely to compile and use the code I present. I want you to learn, understand and, if possible, be able to create something even better.

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

From Basic to Intermediate: Objects (IV)

This is perhaps the most entertaining article so far. The reason is that here we will modify an object already available in MetaTrader 5 in order to create another one that is not originally present on the platform. Of course, what we are going to look at here may seem a little crazy, but it works and serves a very interesting purpose.

Published article "How to Connect AI Agents to MQL5 Algo Forge via MCP".

How to Connect AI Agents to MQL5 Algo Forge via MCP

This article extends Part 1 by giving an AI access to the development lifecycle on MQL5 Algo Forge. We implement an MCP server over the Forgejo REST API so an agent can create repositories, commit Expert Advisors, branch from main, open pull requests, file issues, and tag releases. You will get a ready-to-run Python server, clear tools, and a safer, reversible workflow.

Published article "MQL5 Bootstrap (II): Essential Validators for Robust Trading Systems".

MQL5 Bootstrap (II): Essential Validators for Robust Trading Systems

The article builds a reusable validation layer for Expert Advisors in MQL5. It implements lot-size rules and normalization, SL/TP and freeze-level guards, price digit normalization, margin sufficiency checks, unchanged-level filtering on modifications, account order-limit control, new-bar detection, symbol tradability checks, economic-calendar news windows, and session detectors. The result is cleaner code and fewer terminal errors in live trading.

Published article "MQL5 Trading Tools (Part 39): Adding a Pinned-Tools Ribbon for Quick Access to Favorite Tools".

MQL5 Trading Tools (Part 39): Adding a Pinned-Tools Ribbon for Quick Access to Favorite Tools

We add a pinned-tools ribbon: a floating bar that exposes frequently used tools for one-click access without reopening the sidebar. The article implements the ordered pin set and its API, an anti-aliased pushpin control in the flyout, and the ribbon with offscreen clipping, user-resizable width, and horizontal scrolling. The result is faster activation of favorite tools from a draggable, resizable ribbon on the chart.

Published article "Implementing Walk-Forward Efficiency Ratio Scoring in MQL5 to Detect Over-Optimized Strategies".

Implementing Walk-Forward Efficiency Ratio Scoring in MQL5 to Detect Over-Optimized Strategies

Parameter optimization inside MetaTrader 5's Strategy Tester routinely produces strategies that perform well in-sample and collapse on forward data. This article builds a native MQL5 Walk-Forward Efficiency scoring engine that quantifies how much of a strategy's in-sample Sharpe ratio transfers to each out-of-sample window. The distribution is rendered as a CCanvas histogram and validated against real EURUSD Daily backtest data.

More than 1000 new charts published:

Chart XAUUSD, M1, 2026.07.08 20:30 UTC, FundedNext Ltd, MetaTrader 5, Demo
XAUUSD, M1
Chart XAUUSD, M1, 2026.07.08 21:02 UTC, AxiCorp Financial Services Pty Ltd, MetaTrader 5, Demo
XAUUSD, M1
Chart XAUUSD, M1, 2026.07.08 20:29 UTC, MetaQuotes Ltd., MetaTrader 5, Demo
XAUUSD, M1

The most popular forum topics:

The most downloaded free products:

There are more than 54,970 products available in Market

Bestsellers in the Market:

27 new signals now available for subscription:

AgiFX 6
2,257% 1048 trades
Growth:2,256.80%
Equity:12,445.89USD
Balance:12,445.89USD
DaniTraderPRo
1,181% 6857 trades
Growth:1,181.27%
Equity:8,059.16EUR
Balance:8,112.26EUR
AgiFX 2
653% 2762 trades
Growth:652.68%
Equity:12,135.02USD
Balance:12,135.02USD
and 24 more...
There are more than 154,110 topics available on forum

5 new topics on forum:

and 2 more...

New publications in CodeBase

  • Chart Navigator MT5 Light Chart Navigator MT5 Light — a mini-chart for quickly navigating the price chart and instantly jumping to your markers on it
  • Stochastic Protector This Expert Advisor monitors the Stochastic oscillator to automatically close positions based on user-selected conditions: crossovers above overbought or below oversold, entry into overbought/oversold zones, or exit from those zones. Positions are filtered for closure by profit state (loss, profit, or both). An optional Test Mode enables basic entry signals when the %D line crosses configurable offset levels around the midline (50).
There are more than 3,080 articles published on site

Published article "Building a Broker-Agnostic Symbol Resolution Layer in MQL5".

Building a Broker-Agnostic Symbol Resolution Layer in MQL5

We implement a symbol resolution framework that abstracts broker naming differences in MetaTrader 5. Using a persistent mapping store, layered resolution with validation, a hash-indexed registry, and a cache, it returns selectable symbols with live market data and logs unresolved cases. Practically, you can deploy the same EA across brokers and keep symbol access consistent at low runtime cost.

Published article "Persistent Homology in MQL5: The Reduction Algorithm and the Persistence Diagram".

Persistent Homology in MQL5: The Reduction Algorithm and the Persistence Diagram

We complete persistent homology for MQL5 by reducing the Vietoris–Rips boundary matrix to a persistence diagram. The article implements Z/2 column reduction (CTDAReduction), a diagram container with analytics (CTDADiagram), and a facade that runs the six-stage pipeline in one call (CTDA). Outputs are cross-checked against Ripser to numerical agreement, enabling reliable diagram-based metrics.

1...121314151617181920212223242526...691