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 "Feature Engineering for ML (Part 8): Entropy Features in MQL5".

Feature Engineering for ML (Part 8): Entropy Features in MQL5

An MQL5 port of four entropy estimators — Shannon, Plug-In, Lempel-Ziv, and Kontoyiannis — operating on the intrabar tick-rule sequence. CopyTicksRange() limits data to the broker's cached tick window, so features apply to recent bars only. The implementation encodes bid-direction ticks from MqlTick, replaces NumPy-dependent steps with array-based methods, and ships CEntropyFeatures.mqh and EntropyViewer.mq5 for EA and indicator use.

Published article "Engineering a Self-Healing Expert Advisor in MQL5 (Part 4): Trade-State Reconciliation and Safe Mode Recovery".

Engineering a Self-Healing Expert Advisor in MQL5 (Part 4): Trade-State Reconciliation and Safe Mode Recovery

This article adds trade-state reconciliation and Safe Mode recovery to a MetaTrader 5 Expert Advisor. The EA continuously validates recovery integrity by comparing the live broker position with the persisted SQLite state and the in-memory runtime state. Detected inconsistencies trigger an automatic transition to Safe Mode, suspending virtual protection, breakeven, and trailing management until the recovery state can be trusted again.

Published article "Persistent Key-Value Store in MQL5: Using Flat Files as a Lightweight Database for EA State".

Persistent Key-Value Store in MQL5: Using Flat Files as a Lightweight Database for EA State

A lightweight persistence design lets EAs retain counters, flags, and timestamps between terminal restarts. Using only MQL5, CPersistentStore writes a human-readable key=value file in MQL5/Files and serves reads from a CHashMap write-through cache via a typed API. The article analyzes O(1)/O(n) operations, partial‑write risks, and lack of locking, compares with GlobalVariables/SQLite, and provides a demo that reloads state deterministically.

Published article "Risk Manager for Trading Robots (Part I): Risk Control Include File for Expert Advisors".

Risk Manager for Trading Robots (Part I): Risk Control Include File for Expert Advisors

Trading is characterized by high demands on risk management discipline. The article presents an analysis of the main reasons for traders' failures and proposes a technical solution in the form of the CEnhancedRiskManager class for the MQL5 platform. It includes practical testing on an aggressive grid EA.

Published article "MQL5 Wizard Techniques you should know (Part 99): Using a KD-Tree and an Echo State Network in a Custom Money Management Class".

MQL5 Wizard Techniques you should know (Part 99): Using a KD-Tree and an Echo State Network in a Custom Money Management Class

This article lays out 'CMoneyKDTreeESN' custom money management class usable with the MQL5 Wizard, that combines the KD-Tree algorithm and the Echo State Network. We use the KD-Tree on log returns and ATR to give us a risk score, while the ESN tracks recent flow to give us a bounded lot size multiplier. Our class is usable in a variety of Wizard assembled Expert Advisors as shown here with the Envelopes and RSI signals, with a broad objective of modulating exposure in high-volatility and tail-risk environments.

Published article "Automating Classic Market Methods in MQL5 (Part 2): Wyckoff Cause and Effect—Point and Figure Price Targets".

Automating Classic Market Methods in MQL5 (Part 2): Wyckoff Cause and Effect—Point and Figure Price Targets

This article builds a self-contained MQL5 Expert Advisor that completes the Wyckoff cycle: it detects accumulation/distribution with a finite state machine, enters at the last point of support/supply, and calculates exit point-and-figure counts under Wyckoff's Cause and Effect. We detail the box size from range ATR, a 1-box reversal, target validation, and a 2R fallback. Readers get runnable code without external dependencies.

Published article "Creating an HTML Dashboard for Strategy Tester and Prop Firm Challenge Analysis in MQL5".

Creating an HTML Dashboard for Strategy Tester and Prop Firm Challenge Analysis in MQL5

This article demonstrates how to build a reusable prop‑firm evaluation module for MQL5 Expert Advisors and export results to an HTML dashboard. The module monitors balance and equity during backtests, simulates single or rolling challenges, checks profit target, daily and overall drawdown, and minimum trading days, then outputs both a terminal summary and a browser‑readable report.

The most popular forum topics:

The most downloaded free products:

There are more than 52,630 products available in Market

Bestsellers in the Market:

19 new signals now available for subscription:

JericoValburyAsiaFX
332% 62 trades
Growth:332.17%
Equity:65.08USD
Balance:226.00USD
Smart Stock Zone
163% 412 trades
Growth:163.14%
Equity:21,348.74USD
Balance:22,822.13USD
SMART AI SIGNAL PRIME
155% 830 trades
Growth:155.00%
Equity:2,695.40USD
Balance:2,695.40USD
and 16 more...

New publications in CodeBase

  • Equity Guard — Daily Loss Limit Guardian with Panic Panel Account-level daily loss guardian: when your daily loss reaches a configurable trigger, it closes all positions and pending orders and keeps the account flat until the next daily reset. Limits in percent or money, configurable reset time (server time), draggable visual panel with live gauge, and manual CLOSE ALL / LOCK buttons with click-to-confirm. Works on any broker, symbol, account size and currency — hedging and netting, no DLLs.
  • Result - type-safe error handling for MQL5 without exceptions A small, dependency-light library that brings a Rust-style Result type to MQL5. Functions return a single value-or-error object instead of relying on the global GetLastError() state, so failures are explicit and impossible to ignore. Includes ResultValue (value types) and Result (pointer-held objects), an Error struct, early-return macros (TRY, RETURN_ON_ERROR, ...) and optional Then/Match/MapError callbacks.
  • Pip Value Calculator Live pip value, risk-based lot sizing, custom volume risk analysis & open position P/L — all in one panel.
  • ATR Ranked Support and Resistance Zones An educational MT5 indicator that builds support and resistance as price zones from confirmed pivots. Nearby reactions are merged using ATR-based distance, then ranked by repeated tests, rejection strength and recency. Only the strongest zones are displayed to keep the chart readable.
There are more than 12,140 codes published in Codebase
There are more than 3,030 articles published on site

Published article "Lazy-Loading Indicator Handles in MQL5: A Resource Manager Pattern for Multi-Timeframe EAs".

Lazy-Loading Indicator Handles in MQL5: A Resource Manager Pattern for Multi-Timeframe EAs

Multi‑timeframe EAs that initialize every indicator handle in OnInit() pay a fixed startup cost even when most handles are never used. CIndicatorCache applies lazy loading with composite‑key lookup, reference‑counted Acquire/Release, and a deterministic FlushAll() for cleanup. Handles are created on first request and reused across ticks, reducing startup latency, avoiding repeated heap allocation, and preventing terminal resource leaks through centralized ownership.

Published article "MetaTrader 5 Machine Learning Blueprint (Part 18): Sequential Bootstrap, Corrected — Clone, Class Erasure, and the Comparison Toolkit".

MetaTrader 5 Machine Learning Blueprint (Part 18): Sequential Bootstrap, Corrected — Clone, Class Erasure, and the Comparison Toolkit

The article diagnoses two defects that neutralize sequential bootstrap during cross‑validation: type erasure of SequentiallyBootstrappedBaggingClassifier and a fold‑level shape mismatch from cloning full samples info sets. It retains the classifier's identity, adds find seq bagging to re‑inject fold‑sliced t1 in CalibratorCV.fit, and resets state per split. A new bootstrap_comparison module reports OOF and OOB metrics and memory, letting you verify that sequential sampling is applied correctly and quantify its impact.

Published article "Engineering a Self-Healing Expert Advisor in MQL5 (Part 3): Restart-Aware Breakeven and Trailing Systems".

Engineering a Self-Healing Expert Advisor in MQL5 (Part 3): Restart-Aware Breakeven and Trailing Systems

Building on Part 2, the implementation introduces restart-aware breakeven and trailing-stop systems for MetaTrader 5. The EA persists the state, such as breakeven activation, last trailing price, and virtual SL in SQLite, then restores them on startup. This preserves dynamic protection flow and prevents lost progress after terminal interruptions.

Published article "Building an Object-Oriented Session VWAP Engine in MQL5".

Building an Object-Oriented Session VWAP Engine in MQL5

This article shows how to implement a session vwap in MQL5 as a reusable include class with a strict daily reset at broker midnight. The engine computes VWAP and volume‑weighted deviation bands only on closed bars and anchors accumulation with MqlDateTime to avoid distortions from missing candles. A companion indicator plots the baseline and bands, while an Expert Advisor reads signals once per bar for consistent, CPU‑efficient execution and reliable testing.

Published article "Feature Engineering for ML (Part 7): Entropy Features in Python".

Feature Engineering for ML (Part 7): Entropy Features in Python

The article provides production-ready entropy estimators (Shannon, plug-in, Lempel–Ziv, Kontoyiannis) operating on tick-rule–encoded sequences. It resolves three correctness and performance issues in the original code, verifies outputs against chapter references, and extends encoding with quantile and sigma options. Users gain reproducible results and markedly improved computation speed for large bar sets.

Published article "Forecasting in Trading Using Grey Models".

Forecasting in Trading Using Grey Models

The article discusses the application of Grey models to forecasting financial time series. We will consider the operating principles of Grey models and the specifics of their application to financial series. We will also discuss the advantages and limitations of using these models in trading.

4 new topics on forum:

and 1 more...

The most downloaded free products:

More than 400 new charts published:

Chart XAUUSD, H1, 2026.06.28 01:45 UTC, Alpari, MetaTrader 4, Demo
XAUUSD, H1
图表 GOLD, M15, 2026.06.27 01:05 UTC, XM Global Limited, MetaTrader 5, Real
GOLD, M15
图表 XAUUSDcheck, M15, 2026.06.28 12:48 UTC, MetaQuotes Software Corp., MetaTrader 4, Demo
XAUUSDcheck, M15
There are more than 52,550 products available in Market

Most downloaded source codes this week

  • iS7N_TREND.mq5 Now it's two-color (or two-mode) trend indicator, the number of calculated bars can be specified.
  • 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.

Most read articles this week

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.

7 new signals now available for subscription:

Derek
218% 182 trades
Growth:217.95%
Equity:6,444.47USD
Balance:6,444.47USD
ANE Evo
38% 119 trades
Growth:37.84%
Equity:1,257.24USD
Balance:1,257.24USD
IC 737
35% 479 trades
Growth:34.79%
Equity:1,439.34USD
Balance:1,442.76USD
and 4 more...

Bestsellers in the Market:

The most downloaded free products:

6 new signals now available for subscription:

EURUSD Algo Trading
310% 2103 trades
Growth:310.20%
Equity:2,040.84USD
Balance:2,047.81USD
MiloBot PRO
186% 284 trades
Growth:185.72%
Equity:5,269.57USD
Balance:6,962.10USD
SFE Impulse MT4
30% 144 trades
Growth:30.11%
Equity:650.54USD
Balance:650.54USD
and 3 more...

5 new topics on forum:

and 2 more...
There are more than 52,490 products available in Market

Bestsellers in the Market:

The most downloaded free products:

More than 600 new charts published:

Gráfico EURUSD, H1, 2026.06.26 19:37 UTC, Agile Global Ltd., MetaTrader 5, Contest
EURUSD, H1
Chart EURJPY, M15, 2026.06.26 05:50 UTC, Ava Trade Ltd., MetaTrader 5, Demo
EURJPY, M15
チャート XAUUSD, M1, 2026.06.26 05:34 UTC, Raw Trading Ltd, MetaTrader 5, Real
XAUUSD, M1

9 new signals now available for subscription:

Goldman
226% 1132 trades
Growth:226.18%
Equity:10,992.21USD
Balance:10,992.21USD
Breakout XauUsd SarangTrader
119% 345 trades
Growth:119.10%
Equity:38,685.26USD
Balance:38,685.26USD
Forex Diamond EA
50% 2494 trades
Growth:50.26%
Equity:751.60AUD
Balance:751.30AUD
and 6 more...

5 new topics on forum:

and 2 more...
There are more than 52,440 products available in Market

Bestsellers in the Market:

Published article "Gaussian Processes in Machine Learning (Part 2): Implementing and Testing a Classification Model in MQL5".

Gaussian Processes in Machine Learning (Part 2): Implementing and Testing a Classification Model in MQL5

In this section, we will look at the implementation of the key interfaces of the library of Gaussian processes in MQL5: IKernel, ILikelihood, and IInference. We will also demonstrate its operation on synthetic data and implement indicators for classification and regression, demonstrating its operation in online mode - with retraining of the model on each new bar.

New publications in CodeBase

  • Spread Calculator Spread calculator is created to display the current spread on any currency pair on the chart.
  • OnChart Candle Countdown Clock On-Chart Candle Countdown Clock is a simple indicator created to display the countdown timing of the last candle on any time frame.
  • Premium Discount Range Mapper A lightweight educational MetaTrader 5 indicator that maps Premium, Equilibrium and Discount areas from a selected market range.

The most popular forum topics:

Published article "Linear Regression Prediction Channels in MQL5: Constructing Statistically Grounded Confidence and Prediction Bands".

Linear Regression Prediction Channels in MQL5: Constructing Statistically Grounded Confidence and Prediction Bands

The article implements rolling OLS regression channels in MQL5 and computes confidence and prediction bands with Student's t critical values instead of a fixed standard-deviation multiplier. It explains the leverage-driven widening at window edges, contrasts the result with Bollinger and Donchian channels, and reviews OLS assumptions on price data. A five-line rendering is documented to ensure reliable display in MetaTrader 5.

Published article "The MQL5 Standard Library Explorer (Part 13): Implementing the Math Solvers Library in Trading".

The MQL5 Standard Library Explorer (Part 13): Implementing the Math Solvers Library in Trading

We present a complete workflow for adaptive filtering in MQL5 using the CNlEq Levenberg–Marquardt–like solver. The EA fits a VAMAC model—two EWMAs with an ATR‑based scaling—by supplying residuals and a Jacobian through CNlEq's reverse‑communication loop, with optional numerical or analytical derivatives. Code, setup instructions, and GBPUSD H1 tests show how to replace static thresholds with on‑bar re‑estimation.

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

Meta-Labeling the Classics (Part 2): Filtering and Sizing ADX Trades

The DI crossover often triggers in ranges where +DI and -DI oscillate without persistence. We build a two-layer hybrid: Optuna's TPE optimizes a regime gate over ADXR threshold, DI lookback, and minimum DI separation to maximize signal precision on a held-out window, then a Random Forest uses eleven ADX-derived features to accept or scale entries via afml.bet_sizing. The result filters ranging-market bursts and calibrates position size on EURUSD H1.

The most downloaded free products:

Bestsellers in the Market:

There are more than 52,350 products available in Market
There are more than 153,980 topics available on forum
1...202122232425262728293031323334...692