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.

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

20 new signals now available for subscription:

King For Gold
521% 14778 trades
Growth:520.76%
Equity:67,134.36USD
Balance:67,136.35USD
MT4 8800792
299% 326 trades
Growth:299.05%
Equity:1,197.16USD
Balance:1,197.16USD
XV Prime Signal 2
54% 59 trades
Growth:53.54%
Equity:3,896.51USD
Balance:3,769.90USD
and 17 more...

4 new topics on forum:

and 1 more...

Published article "Building A Candlestick Trend Constraint Model (Part 11): Revealing Lower-Timeframe Triggers Within Higher-Timeframe Candle Relationships".

Building A Candlestick Trend Constraint Model (Part 11): Revealing Lower-Timeframe Triggers Within Higher-Timeframe Candle Relationships

This article develops an A-B-C-D candlestick constraint model for MetaTrader 5. Candles A and B establish a completed D1 relationship, Candle C supplies a historical M1 setup, and closed M1 candles inside the developing Candle D either confirm or invalidate the sequence. We implement the design as a visual Expert Advisor with optional trading disabled by default, sequence-specific chart objects, restart-safe history reconstruction, spread and position gates, normalized trade parameters, and a reproducible testing plan.

Published article "Bimodal Market Profile with Delta and Memory in MQL5".

Bimodal Market Profile with Delta and Memory in MQL5

The classic Market Profile from forty years ago is still replicated in dozens of indicators that differ only in the color of their bars. In this article, I examine three conceptual blind spots in the original theory — the monolithic Value Area in bimodal distributions, TPO’s blindness to the aggressor, and the lack of memory between sessions — and build an indicator that addresses each of them: bimodality detection with a dead zone, order flow via CopyTicksRange with absorption detection, and composite market memory using Naked POC and HVN/LVN. The complete source code is included.

Published article "Building a Prop Firm Compliance Monitor in MQL5 (Part 3): Daily Drawdown, Overall Drawdown, and Profit Targets".

Building a Prop Firm Compliance Monitor in MQL5 (Part 3): Daily Drawdown, Overall Drawdown, and Profit Targets

This part turns stored account references into a financial monitoring engine for MetaTrader 5. It calculates daily drawdown from the confirmed session balance, overall drawdown from the initial challenge balance with a static equity floor, and profit‑target progress from realized balance. The EA derives usage, remaining allowance, and status for each rule, then aggregates them into a single guard state where risk conditions override target completion.

Published article "Offline Reinforcement Learning in MQL5: Conservative Q-Learning from Historical Trade Logs Without Live Exploration".

Offline Reinforcement Learning in MQL5: Conservative Q-Learning from Historical Trade Logs Without Live Exploration

Build and deploy a conservative, offline‑trained policy entirely in MQL5. Logged trades become a fixed dataset for a two‑layer Q‑network trained with Conservative Q‑Learning, which pushes down Q‑values for poorly supported actions to limit extrapolation error. The EA loads the frozen weights and applies an out‑of‑distribution guard using saved feature statistics. This yields reproducible training and execution without live exploration.

Published article "Automating Classic Market Methods in MQL5 (Part 9): Linda Bradford Raschke's 3/10 Oscillator System".

Automating Classic Market Methods in MQL5 (Part 9): Linda Bradford Raschke's 3/10 Oscillator System

The article implements two swing setups in MQL5: Anti, which enters on the first 3/10 oscillator pullback after a signal line zero confirmation with price confirmation, and Holy Grail, which enters on the first pullback to the 20 EMA in a strong rising ADX trend. A single EA runs two independent state machines with precise entry and exit rules, ATR-based stops, and state recovery. You get runnable code and traceable logging.

Published article "The Hilbert Spectrum in MQL5 — Live Time-Frequency-Energy Visualization of Market Cycles".

The Hilbert Spectrum in MQL5 — Live Time-Frequency-Energy Visualization of Market Cycles

The article guides you through building a real‑time Hilbert Spectrum indicator in MQL5: EMD produces IMFs, a discrete FIR Hilbert transform yields analytical signals, and a CCanvas renderer draws a time–frequency–energy heatmap. Implementation details include extrema detection, SD stopping, phase unwrapping, Nyquist clipping, and bin accumulation. Use the panel to identify active cycle bands and regime shifts while keeping trade rules separate.

Published article "Online Portfolio Selection: A Provable Regret Bound, and the Cost That Eats It".

Online Portfolio Selection: A Provable Regret Bound, and the Cost That Eats It

The article implements Online Portfolio Selection in MQL5: exact simplex projection, four allocators (EG, Universal Portfolio, PAMR, OLMAR), and a BCRP solver on a concave objective. We verify weight paths against the published Python reference and self-check the optimizer. A drift-aware transaction cost model measures turnover and net wealth on a multi-asset basket. Readers get a tested library and evidence on when regret-bounded methods lose to costs.

Published article "The Fractional Fourier Domain — A Chirp-Rate Adaptive Cycle Indicator for MetaTrader 5".

The Fractional Fourier Domain — A Chirp-Rate Adaptive Cycle Indicator for MetaTrader 5

This article presents a native MQL5 Fractional Fourier indicator for measuring whether the dominant cycle is speeding up or slowing down. It searches for the rotation that maximizes spectral concentration in a detrended analytic window, using a unitary eigenvector FrFT and a golden‑section entropy search, and reconstructs a band‑limited cycle line. Results on known chirps and on real closes across symbols/timeframes show where the method is reliable, its bias, and its limited forward information in practice.

Published article "Neural Networks in Trading: Adaptive Perception of Market Dynamics (Conclusion)".

Neural Networks in Trading: Adaptive Perception of Market Dynamics (Conclusion)

The article continues the work on implementing the STE-FlowNet framework, which combines multi-stream processing with recurrent structures for accurate analysis of complex data. The tests conducted confirmed its stability and flexibility in various scenarios. This architecture speeds up computations and enables deeper modeling of dependencies in time series. This approach opens up new possibilities for practical application in trading and analytics.

The most downloaded free products:

More than 1000 new charts published:

Chart GBPUSD, H1, 2026.10.21 04:51 UTC, MetaQuotes Ltd., MetaTrader 5, Demo
GBPUSD, H1
График USDJPY, H1, 2026.10.21 04:43 UTC, MetaQuotes Ltd., MetaTrader 5, Demo
USDJPY, H1
График GBPJPY, M5, 2026.10.21 04:13 UTC, Tradexfin Limited, MetaTrader 4, Demo
GBPJPY, M5

Bestsellers in the Market:

There are more than 64,420 products available in Market

29 new signals now available for subscription:

Breakout Gold
170% 871 trades
Growth:169.84%
Equity:28,167.45USD
Balance:28,167.45USD
KB OIL SYSTEM
129% 961 trades
Growth:129.14%
Equity:4,471.59USD
Balance:5,197.17USD
GOLD_HEDGING
67% 31449 trades
Growth:67.20%
Equity:135,913.31USD
Balance:135,913.31USD
and 26 more...
1...789101112131415161718192021...709