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 "From Basic to Intermediate: Object Events (IV)".

From Basic to Intermediate: Object Events (IV)

In this article, we will complete what was started in the previous one: a fully interactive way to resize objects directly on the chart. Although many people imagine that creating something like this would require much deeper knowledge of MQL5, you will see that, using simple concepts and basic knowledge, we can implement a way to work with objects directly on the chart. This leads to a very interesting and quite compelling result.

The most downloaded free products:

There are more than 54,210 products available in Market

Bestsellers in the Market:

More than 300 new charts published:

График GBPUSD, M5, 2026.07.10 09:00 UTC, Combat Capital Markets LLC, MetaTrader 5, Demo
GBPUSD, M5
График EURUSD, M15, 2026.07.10 04:41 UTC, Alpari, MetaTrader 4, Real
EURUSD, M15
График GBPUSD, D1, 2026.07.11 02:41 UTC, AT Global Markets Intl Ltd, MetaTrader 4, Demo
GBPUSD, D1

Most downloaded source codes this week

  • LotSize Calculation This is a simple script file to compute lot size either using risk percentage approach or the actual amount to risk.
  • Functions to simplify work with orders All we want is to think about algorithms and methods, not about syntax and values how to place orders. Here you have simple functions to manage positions in MQL5.
  • iS7N_TREND.mq5 Now it's two-color (or two-mode) trend indicator, the number of calculated bars can be specified.

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.

11 new signals now available for subscription:

GoldHunter
610% 631 trades
Growth:610.34%
Equity:899.34USD
Balance:899.34USD
Pulse XAUUSD
387% 476 trades
Growth:386.52%
Equity:163.82USD
Balance:163.82USD
Anson Account 1
147% 156 trades
Growth:147.28%
Equity:846.58USD
Balance:846.58USD
and 8 more...

4 new topics on forum:

and 1 more...

New publications in CodeBase

The most downloaded free products:

There are more than 54,120 products available in Market

11 new signals now available for subscription:

GoldExtractor1
881% 840 trades
Growth:880.74%
Equity:1,000.00USD
Balance:1,000.00USD
Kgold
333% 1112 trades
Growth:332.89%
Equity:2,866.15USD
Balance:2,866.15USD
KingGold Signal
288% 160 trades
Growth:288.09%
Equity:337.33USD
Balance:337.33USD
and 8 more...

Bestsellers in the Market:

1 new topic on forum:

The most popular forum topics:

The most downloaded free products:

Bestsellers in the Market:

There are more than 54,050 products available in Market

5 new topics on forum:

and 2 more...

18 new signals now available for subscription:

Aetherion Zenith AI EA
487% 32 trades
Growth:486.79%
Equity:23,471.55USD
Balance:23,471.55USD
GoldMiner
474% 296 trades
Growth:473.63%
Equity:662.69USD
Balance:662.69USD
QQ Live Signal EURUSD
350% 60 trades
Growth:350.22%
Equity:227.99USD
Balance:227.99USD
and 15 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:

There are more than 53,970 products available in Market

More than 300 new charts published:

График XAUUSDrfd, H4, 2026.07.09 09:46 UTC, ООО ''Альфа-Форекс'', MetaTrader 5, Real
XAUUSDrfd, H4
График XAGUSD@, M15, 2026.07.09 09:41 UTC, WM Markets Ltd, MetaTrader 5, Demo
XAGUSD@, M15
График XAUUSD, M1, 2026.07.08 20:30 UTC, FundedNext Ltd, MetaTrader 5, Demo
XAUUSD, M1

Bestsellers in the Market:

19 new signals now available for subscription:

Currency EA
117% 1037 trades
Growth:116.74%
Equity:2,544.16USD
Balance:2,600.83USD
BG 14 NoSwap
103% 726 trades
Growth:103.43%
Equity:1,151.79USD
Balance:1,435.72USD
Super Growth
63% 99 trades
Growth:62.73%
Equity:6,625.70USD
Balance:8,134.40USD
and 16 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.

The most popular forum topics:

The most downloaded free products:

There are more than 53,890 products available in Market

Bestsellers in the Market:

24 new signals now available for subscription:

AgiFX 6
2,344% 1068 trades
Growth:2,343.90%
Equity:12,905.82USD
Balance:12,905.82USD
DaniTraderPRo
1,334% 7079 trades
Growth:1,334.20%
Equity:9,110.75EUR
Balance:9,110.36EUR
AgiFX 2
681% 2782 trades
Growth:681.21%
Equity:12,594.95USD
Balance:12,594.95USD
and 21 more...
There are more than 154,110 topics available on forum

5 new topics on forum:

and 2 more...
1...121314151617181920212223242526...685