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.

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:

New publications in CodeBase

There are more than 12,660 codes published in Codebase

Most downloaded source codes this week

  • Smart Money Concept Expert Advisor - Market Strucutre, FVG, Pullback This Expert Advisor trades fair value gaps in the direction of market structure, the way Smart Money Concepts describes it. It is the third step of a series that has been built one piece at a time: In previous shared codes, the SMC Pullback Indicator decided which highs and lows matter, the SMC Market Structure indicator turned those swings into a trend with BoS, CHoCH, IDM and liquidity sweeps, and this EA trades the result.
  • APEX VELOCITY ApexVelocity is a professional-grade Expert Advisor designed to capture explosive momentum in high-volatility instruments like XAUUSD (Gold). Moving away from rigid, hard-coded parameters, v1.0 introduces a robust, fully dynamic architecture that adapts to market conditions and broker specifications in real-time.
  • Gold MT5 Fractal Breakout EA A MetaTrader 5 (MT5) Expert Advisor based on breakouts of prior swing highs and lows. The EA places pending orders around confirmed fractal structures and manages each trade with defined stop-loss, take-profit, and optional position-management rules.

Most read articles this week

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.

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.

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.

20 new signals now available for subscription:

SONY Net Business 369
588% 364 trades
Growth:587.87%
Equity:257.58USD
Balance:257.58USD
Breakout Swing Gold HIGH RISK
44% 9 trades
Growth:43.73%
Equity:7,186.52USD
Balance:7,186.52USD
ADGOLD
21% 124 trades
Growth:20.77%
Equity:1,513.52USD
Balance:1,513.52USD
and 17 more...

Bestsellers in the Market:

The most popular forum topics:

The most downloaded free products:

There are more than 64,960 products available in Market

Bestsellers in the Market:

14 new signals now available for subscription:

AlgoTradeInvest 1
200% 1101 trades
Growth:199.59%
Equity:1,178.28USD
Balance:1,180.24USD
Amanda Regis
66% 187 trades
Growth:65.85%
Equity:803.65USD
Balance:859.76USD
ABS FX Grid
60% 74 trades
Growth:60.34%
Equity:534.62USD
Balance:534.62USD
and 11 more...

New publications in CodeBase

  • CME equity index futures holiday calendar Holidays and early halts of the CME equity index futures (S&P 500, Nasdaq-100, Dow, Russell 2000, E-mini and Micro), computed from the US holiday rules for any year, with a script that checks the calendar against your broker's own M1 history.
  • VpsToolkit - safe order send and restart-safe state for VPS EAs Include for EAs running 24/7 on an MQL5 VPS or PC: run-where switch, order send with OK/FAIL/UNKNOWN result (no duplicate orders after a timeout), restart-safe counters, positions closed while the EA was off, append-only log and optional Telegram. No trading logic inside.
  • Garch: GARCH, GJR-GARCH and EGARCH volatility models with forecasts Fits GARCH(1,1), GJR-GARCH and EGARCH with normal, Student t or GED shocks by maximum likelihood, with robust standard errors and variance forecasts.
  • Session Time Highlighter Highlights the Asia, London and New York sessions and the London/New York overlap using real local time and daylight saving rules, so the session boxes are correct on any broker.

7 new topics on forum:

and 4 more...

More than 900 new charts published:

График USDCHF, H4, 2026.10.23 05:35 UTC, MetaQuotes Ltd., MetaTrader 5, Demo
USDCHF, H4
Graphique GBPUSD, H1, 2026.10.23 04:58 UTC, MavenTrade Limited, MetaTrader 5, Real
GBPUSD, H1
Gráfico EURUSD, H1, 2026.10.23 11:52 UTC, MetaQuotes Ltd., MetaTrader 5, Demo
EURUSD, H1

Bestsellers in the Market:

The most downloaded free products:

There are more than 64,760 products available in Market

27 new signals now available for subscription:

MT5 209231650
258% 259 trades
Growth:257.93%
Equity:1,117.27USD
Balance:1,117.27USD
The Invincible EA
231% 91 trades
Growth:231.09%
Equity:993.27USD
Balance:993.27USD
Yanto
156% 4222 trades
Growth:156.09%
Equity:74,772.31USD
Balance:74,772.31USD
and 24 more...

5 new topics on forum:

and 2 more...

New publications in CodeBase

There are more than 3,590 articles published on site

Published article "How to Implement Metaprompting for Trading Signals in an MQL5 Expert Advisor".

How to Implement Metaprompting for Trading Signals in an MQL5 Expert Advisor

Metaprompting is an approach in which the LLM itself optimizes trading instructions based on actual P&L and signal quality metrics. The article demonstrates a practical implementation in Python and MQL5: a prompt version registry, an execution agent, an evaluator for directional accuracy and profit factor, and a meta-LLM that generates improvements in a loop. The solution is integrated into the Expert Advisor without interrupting trading.

Published article "Numerical Fidelity Under Fire: Benchmarking Native MQL5, ONNX Runtime, and ALGLIB".

Numerical Fidelity Under Fire: Benchmarking Native MQL5, ONNX Runtime, and ALGLIB

This article benchmarks one MLP forward pass implemented three ways in MQL5: native code, ALGLIB, and ONNX Runtime. We quantify numerical fidelity versus a float64 ground truth and execution latency (mean/percentiles), then outline practical criteria and a ready‑to‑use harness to help you choose and integrate the right engine in an EA.

Published article "Implementing Session Volume Profile in MQL5".

Implementing Session Volume Profile in MQL5

Build a responsive session volume profile indicator in MQL5 from tick data with draggable session bounds and dual anchoring. The article details hash-based bucket aggregation for historical and live ticks, a timer-driven rendering loop with partial updates, automatic or custom bucket sizing, pixel-anchored proportional bars, POC highlighting, and multi‑instance safety—so you can implement, optimize, and run multiple profiles on one chart without UI lag.

Published article "Creating a Cairo-Inspired Graphics Library for MetaTrader 5 (Part 6): Curves and Adaptive Flattening".

Creating a Cairo-Inspired Graphics Library for MetaTrader 5 (Part 6): Curves and Adaptive Flattening

This part introduces cubic Bézier curves and a quadratic verb, flattened on append by recursive midpoint splitting (De Casteljau). A conservative flatness test sums distances of control points to the chord and stops within a pixel-based tolerance, adapting detail to curvature. The design keeps downstream code intact while giving you efficient, scale-independent curve quality.

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

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

The RAFT framework offers a fundamentally different approach to forecasting market dynamics — not as a one-time snapshot, but as an iterative refinement of the state in real time. It takes both local and global changes into account, maintaining a high degree of accuracy even with complex price structures.

Published article "Automating Chart Patterns in MQL5 (Part 3): The Head and Shoulders and Inverse Head and Shoulders".

Automating Chart Patterns in MQL5 (Part 3): The Head and Shoulders and Inverse Head and Shoulders

The article implements a deterministic MQL5 detector for head and shoulders and its inverse, validating structure from swing labels (HH, LH, HL, LL) rather than raw peak geometry. Seven ATR-aware checks enforce time order, pattern span, head clearance, shoulder symmetry, and height. A three-state lifecycle separates formation from neckline break, locks a setup, and prevents re-entry. Entries trigger only on a chart-timeframe close through the neckline.

Published article "Buzzard Optimization Algorithm (BUZOA)".

Buzzard Optimization Algorithm (BUZOA)

BUZOA is a population-based metaheuristic algorithm in which each agent randomly selects one of three hunting tactics at each iteration: a narrow search around its personal best, a classic PSO step toward the flock leader, or full teleportation to a random point in the search space. The article examines the implementation of the algorithm in MQL5, identifies a coefficient sign error in the original formulation, and presents benchmark results on a standard test bench.

More than 1100 new charts published:

График USOIL, H1, 2026.10.22 14:33 UTC, FundingPips Corp, MetaTrader 5, Demo
USOIL, H1
График BBDC4, D1, 2026.10.22 14:36 UTC, Rico (XP Investimentos CCTVM), MetaTrader 5, Real
BBDC4, D1
График GBPCHF, H4, 2026.10.22 14:35 UTC, Raw Trading Ltd, MetaTrader 4, Demo
GBPCHF, H4

The most downloaded free products:

There are more than 64,590 products available in Market

Bestsellers in the Market:

New publications in CodeBase

  • BacktestOverfitting: probability of backtest overfitting (PBO) of an optimization Probability of Backtest Overfitting (PBO) of an MT5 optimization by combinatorially symmetric cross-validation. Every pass sends its daily results as a frame, and the PBO is computed when the optimization ends.
  • DrawdownBootstrap: Monte Carlo of the maximal drawdown Block bootstrap of daily results: how deep the drawdown of an account or strategy can get over the next months, with percentiles and a seeded generator for repeatable runs.
  • PortfolioWeights: risk parity, HRP, minimum variance and maximum diversification Portfolio weights from the returns of symbols or Expert Advisors: inverse volatility, risk parity, hierarchical risk parity, minimum variance, maximum diversification, Ledoit-Wolf covariance.
  • TesterReport: read a saved Strategy Tester report into deals and trades Reads a Strategy Tester report saved as HTML into its deals, closed trades, net profit and balance drawdowns, for comparing, combining or exporting backtests.
  • Live Test Bench: automated checks of an EA on a demo account Automated checks of an Expert Advisor on a live demo chart (restart, second copy, server history, chart button) with a PASS/FAIL report.
  • AccountGuard - lock your EA to licensed accounts (single include) Single-header account lock for MT5 EAs: licensed account numbers, optional demo allowance, expiry date, tester bypass. Licence compiled in with #define. No DLL.
  • PropGuard Lite - daily and max loss guard for prop firm accounts Risk tool for prop firm accounts: closes all positions and blocks new trades when the daily loss or max loss limit is reached. Never opens trades on a live chart.
  • Line Master – Fast and Slow Trend Lines with Trend Change Signals Line Master is a trend-following indicator for MetaTrader 5 that displays fast and slow dynamic price lines to help traders identify market direction and potential trend changes. Blue represents a bullish trend, while red represents a bearish trend. Visual markers highlight changes in the indicator's trend state. The indicator includes adjustable Fast Length and Slow Length parameters, allowing traders to customize its sensitivity. It can be used on forex, gold (XAUUSD), indices, and other MT5-supported markets. For better results, combine its signals with price action, support and resistance levels, and proper risk management. Signals are not guaranteed and should be confirmed before entering a trade.
  • Spread Monitor Spread Monitor is an MQL5 Expert Advisor that draws a colour-coded panel on the chart. The panel shows the current spread of the attached symbol in points, along with the average, minimum, and maximum over a rolling history. It also counts how many stored samples exceeded a warning level, and turns the status row red when the current spread is above that level. The utility does not place orders. Inputs control the warning level, the history size, the refresh interval, and the panel position. Panel objects are removed when the EA is detached.
  • FxCraft Example EA – Range Breakout with pending orders Educational Expert Advisor: daily range breakout with BuyStop/SellStop pending orders, risk-reward take profit and trading days. Clean, commented MQL5 code with margin and stop level checks. Demo and Strategy Tester only.
  • FxCraft Example EA – Bollinger Bands mean reversion Educational Expert Advisor: Bollinger Bands return to the mean with an optional RSI filter and trading hours. Clean, commented MQL5 code with margin, volume and stop level checks. Demo and Strategy Tester only.
  • FxCraft Example EA – MA Cross Educational Expert Advisor: moving average crossover with clean, commented MQL5 code – margin, volume, stop level and spread checks, order retries. Demo accounts and Strategy Tester only.
  • AttachExpert: attach an EA with inputs to a chart from code AttachExpert.mqh attaches an Expert Advisor to a chart from MQL5 code, with the inputs you choose and with "Allow Algo Trading" on or off.
There are more than 155,630 topics available on forum
There are more than 12,630 codes published in Codebase
12345678910111213...701