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 "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.

Published article "Bull Optimization Algorithm (BOA)".

Bull Optimization Algorithm (BOA)

We present an evolutionary algorithm without a selection operator: the best individual becomes the sole mating partner for the entire population, and classical mutation is replaced by multiplicative mutation with a self-adjusting step size. In this article, we examine three key ideas, implement the algorithm in MQL5 using the C_AO framework, and test it on the standard benchmark suite and in an anti-cheat test — where BOA comes very close to the cutoff for the top 45 but does not make the ranking.

More than 1000 new charts published:

图表 Step Index, M15, 2026.10.26 12:24 UTC, Deriv (SVG) LLC, MetaTrader 5, Real
Step Index, M15
图表 XAUUSD.p, H1, 2026.10.26 13:54 UTC, Pepperstone EU Limited, MetaTrader 5, Real
XAUUSD.p, H1
Chart EURUSD, H1, 2026.10.26 05:32 UTC, BenchMark Finance AD, MetaTrader 4, Real
EURUSD, H1

The most downloaded free products:

There are more than 65,270 products available in Market

35 new signals now available for subscription:

Gold Scalp C
258% 269 trades
Growth:258.03%
Equity:3,322.78USD
Balance:3,322.78USD
Goldx1000
187% 1162 trades
Growth:186.68%
Equity:5,724.52USD
Balance:5,724.52USD
AST Live
161% 4345 trades
Growth:160.56%
Equity:3,169.74EUR
Balance:4,030.63EUR
and 32 more...

Bestsellers in the Market:

New publications in CodeBase

There are more than 155,700 topics available on forum

4 new topics on forum:

and 1 more...

Published article "Beyond Squared Returns: Path-Dependent Volatility".

Beyond Squared Returns: Path-Dependent Volatility

This article implements a path-dependent volatility model in MQL5 that keeps the sign of returns. The engine uses two-timescale EWMA kernels (four accumulators) to form activity and trend features, with closed-form coefficients and a lightweight kernel search. We provide a calibration workflow and an indicator that plots the decomposition, then test out of sample against EWMA and GARCH on multiple symbols. Results show clear gains on equity indicators and minimal gains on FX.

Published article "Behavioural Cloning in a Live Trading System: What Live Experience Can and Cannot Teach".

Behavioural Cloning in a Live Trading System: What Live Experience Can and Cannot Teach

This article measures a live-to-train behavioral-cloning loop for an RL trading system across 83 models. Outcome-weighted imitation shifted the policy toward Hold (48% → 82%), with 12 final models not trading at all. Live records were instead used to fit spread and slippage to broker fills, revealing execution costs ~85× higher than in simulation. We describe the loop, the failure mechanism, the calibration, and a protocol to apply.

Published article "Fundamentals of Bayesian Inference in Discrete and Continuous Settings: From Theory to Practical Model Implementation".

Fundamentals of Bayesian Inference in Discrete and Continuous Settings: From Theory to Practical Model Implementation

The article discusses the fundamentals of Bayesian statistics in both discrete and continuous settings. We will progress from classical Bayes’ theorem and simple examples involving coin flips to conjugate distributions and dynamic Bayesian updating, which enables real-time analysis of market quotes. Using the beta-binomial model as an example, a simple change-point detection indicator has been implemented to help identify shifts in market regimes.

Published article "Measuring the Probability of Backtest Overfitting of Your MetaTrader 5 Optimization (Part 1): The CSCV Engine in MQL5".

Measuring the Probability of Backtest Overfitting of Your MetaTrader 5 Optimization (Part 1): The CSCV Engine in MQL5

This article implements the Probability of Backtest Overfitting in MQL5 with Combinatorially Symmetric Cross-Validation. It shows how to build the bar-by-bar returns matrix of a parameter grid, aggregate it by blocks and rank the in-sample winner out-of-sample across every split of the history. You get a single probability that this winner ends up in the lower half of the grid out-of-sample, along with the MQL5 code to compute it on your own optimizations.

Published article "Broker Time vs Real Market Time — Building a DST-Aware Session Clock in MQL5".

Broker Time vs Real Market Time — Building a DST-Aware Session Clock in MQL5

Session filters can run an hour off when a broker and a market change their clocks on different dates. This article presents an MQL5 include file, SessionClock.mqh, that converts London, New York, and Tokyo sessions to broker hours for a stated daylight saving time (DST) schedule (EU, US, or fixed) and winter offset. A second script estimates the schedule from server history. It uses calendar arithmetic, so it also works in the Strategy Tester.

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

Neural Networks in Trading: Iterative Forecast Refinement Models (Key Components)

In this article, we explore the inner workings of the RAFT framework — one of the most precise and elegant approaches to analyzing dynamic processes. Step by step, we adapt its idea of iterative refinement to financial time series, laying a solid foundation for a future model. Readers can look forward to an engaging exploration of the architecture, where every component has its own purpose and function.

Published article "From Signal to Trade via a Chain of Agents: LangChain Architecture on Top of MQL5".

From Signal to Trade via a Chain of Agents: LangChain Architecture on Top of MQL5

The article describes an architecture in which the MQL5 Expert Advisor (EA) handles only data collection and execution, while the logic is moved to a Python server with three LangChain agents: a signal agent, a news agent, and a risk manager. Agents process the WebSocket request sequentially; if any agent rejects it, "hold" is returned. Decisions and actual PnL are stored in SQLite, forming memory and statistics. The reader will receive an interaction diagram, a command protocol, and a feedback approach.

More than 1000 new charts published:

图表 NZDUSD, H1, 2026.10.24 06:03 UTC, TW Corp LLC, MetaTrader 5, Demo
NZDUSD, H1
Chart US30, M1, 2026.10.24 05:00 UTC, FundedNext Ltd, MetaTrader 5, Real
US30, M1
График FX Vol 40, H1, 2026.10.24 03:12 UTC, Weltrade Ltd., MetaTrader 5, Demo
FX Vol 40, H1
There are more than 65,100 products available in Market

6 new topics on forum:

and 3 more...

The most downloaded free products:

1...121314151617181920212223242526...715