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 "Neural Additive Models for Fully Interpretable Signal Attribution in MQL5".

Neural Additive Models for Fully Interpretable Signal Attribution in MQL5

Build and deploy a Neural Additive Model natively in MQL5: one small network per feature, additive output, and no post-hoc explainability. The article provides a PyTorch trainer, two‑output ONNX export (signal and contributions), an include wrapper using OnnxCreateFromBuffer/OnnxRun, and an EA that prints real per‑feature contributions each bar. It covers identical feature math for training/export, threshold measurement, Strategy Tester results, and edge cases such as NaNs and out‑of‑distribution inputs.

Published article "Neural Networks in Trading: Temporal Motion Aggregation (Key Components)".

Neural Networks in Trading: Temporal Motion Aggregation (Key Components)

In this article, theory meets practice. We implement the key modules of the TMA framework — MPE and MPA. Here, data takes on meaning, and cross-attention becomes a tool for precise analysis of market dynamics. Minimal unnecessary operations, maximum efficiency — a step toward next-generation intelligent trading.

The most downloaded free products:

Bestsellers in the Market:

More than 1000 new charts published:

Gráfico XAUUSD, M1, 2026.10.29 00:10 UTC, Spiceprop SL Ltd., MetaTrader 5, Real
XAUUSD, M1
图表 US30.ncp, M1, 2026.10.29 16:26 UTC, Roco Broker Ltd, MetaTrader 5, Real
US30.ncp, M1
Chart XAUUSD, M1, 2026.10.29 08:05 UTC, PT. Finex Bisnis Solusi Futures, MetaTrader 5, Real
XAUUSD, M1
There are more than 65,760 products available in Market
There are more than 155,770 topics available on forum

13 new topics on forum:

and 10 more...

New publications in CodeBase

  • Currency Exposure and Leverage Monitor Splits all open positions into currencies and shows the net exposure per currency in account money, the effective leverage of the account and how much a 1% currency move would change your equity.
  • Session Range and Spread Draws Asia, London and New York session high/low boxes with each session's range in pips or price, plus a live spread and open-sessions panel.
  • Daily Loss Guard Closes all trades when your daily loss reaches your limit.
  • Supply Demand Zones Supply and demand zones for Gold (XAUUSD), EURUSD and any symbol: zones from swing highs and lows sized by ATR, fresh or tested, merged, broken ones removed, alerts and 5 buffers for EAs. Open source code.
There are more than 12,680 codes published in Codebase

27 new signals now available for subscription:

Alpha Print
127% 379 trades
Growth:127.28%
Equity:2,526.07USD
Balance:2,526.07USD
EA2
54% 1125 trades
Growth:54.37%
Equity:8,770.13USD
Balance:8,770.13USD
Eknath hepat
49% 154 trades
Growth:49.24%
Equity:1,231.06USD
Balance:1,231.06USD
and 24 more...
There are more than 3,620 articles published on site

Published article "A Grid Expert Advisor Based on a Cellular Automaton with Online Learning in MQL5 (Part I): Continuous Adaptation of the Trading Model on Each Bar".

A Grid Expert Advisor Based on a Cellular Automaton with Online Learning in MQL5 (Part I): Continuous Adaptation of the Trading Model on Each Bar

The article examines the architecture of an Expert Advisor based on a cellular automaton with 10,000 adaptive parameters and an independent binary predictor with a 10-bar prediction horizon. The article demonstrates a three-level online learning process, the evolution of strategies, and validation using a ring buffer and a confusion matrix. The input parameters are reduced to Magic Number, while trading settings are calculated from ATR and five genomes. The EURUSD H1 test yielded an approximate hit rate of 58%, compared to roughly 51% for the fixed MLP.

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

From Basic to Intermediate: Technical Indicators (II)

In this article, we'll show you how to create an MQL5 indicator that plots multiple moving averages on a single chart, reducing the amount of duplicate code. This uses iMA, indicator buffers, CopyBuffer, PlotIndexSetInteger/String, and a const array of structures that brings together periods, methods, and colors. The sizes of `indicatorbuffers` and `indicatorplots` are determined based on `Averange.Size()`. This approach simplifies maintenance and allows you to add or remove moving averages by modifying just one list.

Published article "Building a Trade Replay Tool in MQL5".

Building a Trade Replay Tool in MQL5

This article presents a Trade Replay Tool for MetaTrader 5 implemented as an MQL5 indicator. It replays historical candles within an anchor-defined range and automatically reconstructs historical trades as paper positions with entry, SL, and TP. Users control start/end anchors and playback speed via UI buttons and hotkeys, enabling focused study of price evolution and trade lifecycle in a precise, event-driven environment.

Published article "Neural Networks in Practice: Gradient Descent".

Neural Networks in Practice: Gradient Descent

In this article, I will try to explain as simply and clearly as possible one of the most controversial issues that arises when discussing neural networks: how to find the best possible point, or the minimum of the loss function. I'll show you the difference between linear regression and gradient descent. Both methods are fairly simple and serve as examples of how the path that seems obvious isn't always the best one.

Published article "From Basic to Intermediate: Technical Indicators (I)".

From Basic to Intermediate: Technical Indicators (I)

In this article, we will examine the basic principles of using the technical indicators built into MetaTrader 5 and supported by this platform. Knowing and understanding these indicators can make implementing a solution much simpler, faster, and more efficient, since you won't have to worry about the necessary calculations. The platform handles them for us automatically.

Published article "Using the MQL5 Economic Calendar for News Filter (Part 5): The Tier the Calendar Does Not Have".

Using the MQL5 Economic Calendar for News Filter (Part 5): The Tier the Calendar Does Not Have

This part extends the news filter with an ordered tier scale that adds a special tier above the broker's High, per‑event time windows, and one classifier shared by live calendar data and historical CSV. A rule table (with optional CSV overrides) promotes or demotes specific releases and can set custom windows. A diagnostic script prints your broker's calendar, event codes, and server time so your rules match what the terminal actually reports.

Published article "Building a PDF Creation Library in MQL5 (Part 3): The Byte-Exact Writer".

Building a PDF Creation Library in MQL5 (Part 3): The Byte-Exact Writer

The article presents CPdfBuffer and CPdfWriter, a minimal MQL5 pair that derives all offsets from the output buffer instead of hand-maintaining numbers. CPdfWriter records object starts, writes a fixed-width cross-reference table and trailer, and ensures structural consistency. The result passes Part 2's validator, and a ready-to-use script converts arbitrary text to a paginated PDF.

Published article "Neural Networks in Trading: Temporal Motion Aggregation (TMA)".

Neural Networks in Trading: Temporal Motion Aggregation (TMA)

The TMA framework offers a new perspective on market dynamics, enabling models to capture not only the state of the market but also the passage of time itself. Its ability to identify patterns in a continuous stream of data makes the analysis more in-depth and accurate than with traditional approaches. Recurrent adaptation turns this method into a practical tool for working with real-world quotes.

Published article "Trading Strategy Beyond Raw Volume: Using Transformed Volume Change for Trading".

Trading Strategy Beyond Raw Volume: Using Transformed Volume Change for Trading

The article develops a volume-change strategy that transforms tick or real volume with Ln(volume+1), differences it bar to bar, and applies arctan to produce a bounded, scale‑independent signal. A threshold drives entries, with selectable gates for positive, negative, or bi‑directional signals and candle‑based confirmation. An MQL5 Expert Advisor implements the logic and supports fixed TP/SL, N‑candle exits, or both, enabling straightforward testing and deployment.

Published article "Color Harmony Algorithm (CHA)".

Color Harmony Algorithm (CHA)

We take a closer look at the Color Harmony Algorithm (CHA) — a meta-heuristic optimization method based on Munsell's theory of color harmony. We explore the structure of the hue circle, harmony templates, the alternation between the concentration and dispersion phases, and the role of solution memory. From a theoretical framework to a working implementation in MQL5 and unbiased testing on a standard benchmark.

Published article "From Basic to Intermediate: Operator Overloading (VI)".

From Basic to Intermediate: Operator Overloading (VI)

Here, we implement deletion using operator overloading. Without a doubt, many people will have to spend quite a bit of time studying this article to fully grasp everything that will be covered here. I want to remind you that what we're about to see is just a small and insignificant part of what we call programming.

Published article "Neural Networks in Practice: An Example of Implementing an XOR Gate".

Neural Networks in Practice: An Example of Implementing an XOR Gate

In this article, I will try to show you, dear reader, that things are not always what they seem. We often tend to think that everything is arranged in a certain way, even though we may end up believing something that isn't necessarily true. Neural networks are undoubtedly one of the most interesting topics, whether viewed from the perspectives of mathematics, electronics, or software. Contrary to what many people believe or claim, neural networks are neither a problem nor a definitive solution. This is just one area of research where we should continue to delve deeper and explore what goes on behind the scenes.

The most downloaded free products:

More than 1000 new charts published:

Chart XAUUSD, M15, 2026.10.28 23:17 UTC, InterStellar Financial Group Limited, MetaTrader 5, Real
XAUUSD, M15
Chart GBPUSD, H1, 2026.10.28 13:32 UTC, Moneta Funded Ltd., MetaTrader 5, Real
GBPUSD, H1
График USOILm, M30, 2026.10.28 13:27 UTC, Exness Technologies Ltd, MetaTrader 5, Demo
USOILm, M30
There are more than 65,600 products available in Market

Bestsellers in the Market:

The most popular forum topics:

19 new signals now available for subscription:

Tathastu 22
177% 255 trades
Growth:176.60%
Equity:2,607.09USD
Balance:3,068.85USD
Golden Girl
46% 3178 trades
Growth:45.65%
Equity:12,121.83USD
Balance:12,121.83USD
Orthogonal Trading System
40% 35 trades
Growth:40.46%
Equity:1,404.62USD
Balance:1,404.62USD
and 16 more...

14 new topics on forum:

and 11 more...

More than 900 new charts published:

图表 GBPJPY, H1, 2026.10.27 05:01 UTC, InstaFinance Ltd, MetaTrader 4, Demo
GBPJPY, H1
图表 XAUUSD.ecn, H4, 2026.10.27 01:17 UTC, Otet Group Ltd., MetaTrader 5, Real
XAUUSD.ecn, H4
图表 EURJPY.fx, H1, 2026.10.27 05:59 UTC, InstaFinance Ltd, MetaTrader 4, Real
EURJPY.fx, H1

The most downloaded free products:

Bestsellers in the Market:

40 new signals now available for subscription:

EA GOLD38
190% 5401 trades
Growth:189.62%
Equity:18,587.77USD
Balance:18,587.77USD
OpkeeCoreGold
164% 354 trades
Growth:164.16%
Equity:500.00USD
Balance:500.00USD
INVEZTRADE CYBER
54% 453 trades
Growth:53.76%
Equity:46,126.96USD
Balance:46,126.96USD
and 37 more...
There are more than 65,440 products available in Market

9 new topics on forum:

and 6 more...

Most downloaded source codes this month

  • LotSize Calculation This is a simple script file to compute lot size either using risk percentage approach or the actual amount to risk.
  • iS7N_TREND.mq5 Now it's two-color (or two-mode) trend indicator, the number of calculated bars can be specified.
  • 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.

Most read articles this month

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.

Why Virtual Hosting On The MetaTrader 4 And MetaTrader 5 Is Better Than Usual VPS

Why Virtual Hosting On The MetaTrader 4 And MetaTrader 5 Is Better Than Usual VPS

The Virtual Hosting Cloud network was developed specially for MetaTrader 4 and MetaTrader 5 and has all the advantages of a native solution. Get the benefit of our free 24 hours offer - test out a virtual server right now.

New publications in CodeBase

There are more than 3,600 articles published on site

Published article "How to Train an MLP Using Markov Chain Features in MQL5".

How to Train an MLP Using Markov Chain Features in MQL5

The article describes the two-level MarkovMLPOscillator indicator: a three-state Markov chain uses historical data to construct a transition matrix and generate 15 probabilistic features for each bar, and an MLP is trained on these features to predict price direction at a specified forecast horizon. The article covers feature generation, the validation procedure using a holdout set, and parameter settings. The result is an interpretable oscillator with a color histogram, a smoothed signal, and a display of the current transition matrix.

Published article "Creating a Cairo-Inspired Graphics Library for MetaTrader 5 (Part 7): Arcs, Circles and Rounded Rectangles".

Creating a Cairo-Inspired Graphics Library for MetaTrader 5 (Part 7): Arcs, Circles and Rounded Rectangles

This part finishes the geometry layer: arcs use a sagitta‑based angular step tied to the pixel tolerance, so segment counts are computed, not guessed. The path gains ArcTo, AddCircle, AddEllipse and AddRoundRect with per‑corner radii, enabling common UI shapes such as tabs, pills, badges, rings, gauges and donut wedges.

Published article "Building A Candlestick Trend Constraint Model (Part 12) Measuring Lower-Timeframe Trigger Quality".

Building A Candlestick Trend Constraint Model (Part 12) Measuring Lower-Timeframe Trigger Quality

This article extends the A‑B‑C‑D constraint model with a measurement layer. We capture confirmation timing, breakout beyond Candle C, and post‑signal MFE/MAE; aggregate results by A‑B relationship; and write one CSV row per completed D window while showing concise CCanvas comments. The separation of detection, replay, visualization, measurement, and optional execution provides clean, analyzable data for further research.

Published article "Optimal Trade Exit in MQL5: Longstaff-Schwartz Least-Squares Monte Carlo for Continuation-Value Estimation".

Optimal Trade Exit in MQL5: Longstaff-Schwartz Least-Squares Monte Carlo for Continuation-Value Estimation

This article models position exits as an American option and implements the Longstaff–Schwartz least‑squares Monte Carlo in native MQL5. The engine calibrates drift and volatility from recent returns, simulates forward price paths, and uses backward induction to compare immediate exercise to continuation. It integrates into an EA with hard time and price backstops and a live indicator, and is tested on four symbol/timeframe combinations with mixed, reproducible Strategy Tester results.

Published article "Building a Prop-Firm Rule Guard in MQL5 (Part 1): The Observation Layer".

Building a Prop-Firm Rule Guard in MQL5 (Part 1): The Observation Layer

Prop-firm accounts operate under a second rulebook that MetaTrader 5 does not model. This first part builds the observation layer: a per-pass frozen account snapshot read by every rule, a verdict record that reports without acting, explicit enable flags in the profile, and a session clock aligned to the firm's reset time. The result is a reproducible pass that prevents cascading effects and prepares the ground for safe decisions in Part 2.

Published article "Neural Networks in Trading: Iterative Forecast Refinement Models (Conclusion)".

Neural Networks in Trading: Iterative Forecast Refinement Models (Conclusion)

Introducing the RAFT framework — a powerful tool for analyzing and forecasting financial time series. Its flexible and optimized architecture ensures accurate forecasts, stable performance, and faster data processing. RAFT reduces the risk of errors and makes it easier to create effective trading strategies.

Published article "Zero-Copy Tick Streaming (Part 2) : Reading MetaTrader 5 Ticks into Python and Benchmarking the Result".

Zero-Copy Tick Streaming (Part 2) : Reading MetaTrader 5 Ticks into Python and Benchmarking the Result

We build a Python reader that attaches to the MetaTrader 5 shared memory segment, reproduces the Arrow columnar layout, and constructs ArrowArray/ArrowSchema via ctypes so pyarrow imports ticks without copying. The code honors the three-way schema contract and the seqlock generation counter to read consistent batches. A standalone benchmark verifies performance against a legacy per-field struct.unpack path with real numbers.

Published article "Market Simulation: First Steps with SQL in MQL5 (III)".

Market Simulation: First Steps with SQL in MQL5 (III)

In the previous article, we looked at an example of implementing a class in MQL5 to provide basic support. Its purpose is specifically to allow SQL code to be stored in a separate script file. This way, we won't need to write the same SQL statements as string literals in the MQL5 source code. Although this solution is functional, there are some aspects of it that we can and should improve.

Published article "Market Simulation: First Steps with SQL in MQL5 (II)".

Market Simulation: First Steps with SQL in MQL5 (II)

Although many people believe that we can easily embed SQL code into other code, this is usually not the case. The reason is that the SQL code is included in the executable as a string. Embedding SQL code as a string, while not a problem for small snippets, can ultimately cause us quite a few headaches.

1...121314151617181920212223242526...715