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 "Strategy Optimization and Forward Analysis (Part 1): The Pardo Method — A Basic Model".

Strategy Optimization and Forward Analysis (Part 1): The Pardo Method — A Basic Model

The article explains how to establish a reproducible process for developing and testing trading systems in MetaTrader 5: from formalizing entry and exit rules and risk management to post-optimization validation. It is based on the "Pardo Method": splitting historical data into in-sample and out-of-sample periods, forward testing, multiple markets/timeframes, and selecting stable parameter "plateaus" instead of isolated peaks. Using the examples of PardoSystem and the PardoEA / Breakout_Bounce Expert Advisors (EAs), this article demonstrates a practical test plan for the MetaTrader 5 Strategy Tester.

More than 900 new charts published:

Chart XAUUSD, M5, 2026.10.08 19:40 UTC, T.M. Financials Ltd, MetaTrader 5, Real
XAUUSD, M5
Gráfico Boom 50 Index, H4, 2026.10.08 02:46 UTC, Deriv.com Limited, MetaTrader 5, Demo
Boom 50 Index, H4
Chart USDJPY, H1, 2026.10.08 06:07 UTC, Titan FX Limited, MetaTrader 5, Real
USDJPY, H1

The most downloaded free products:

There are more than 62,370 products available in Market

Bestsellers in the Market:

19 new signals now available for subscription:

Harmonizer High Risk
3,734% 1292 trades
Growth:3,733.62%
Equity:1,071.27USD
Balance:1,069.73USD
BMR GOLD save
49% 929 trades
Growth:49.16%
Equity:50,916.39USD
Balance:50,916.39USD
BMR Gold save exness
42% 571 trades
Growth:41.69%
Equity:10,628.58USD
Balance:10,628.58USD
and 16 more...

New publications in CodeBase

6 new topics on forum:

and 3 more...

Published article "Master the Z-Score: Building Mean-Reverting MQL5 Trading Systems".

Master the Z-Score: Building Mean-Reverting MQL5 Trading Systems

This article explains how to use the Z-Score to quantify price deviations in standard deviations and apply the concept in MQL5. We cover the calculation, interpretation across market regimes, and the implementation of a custom indicator and three trading strategies as Expert Advisors. Readers get complete code examples and a testing workflow, plus practical notes on lookback selection, fat tails, execution timing, and risk controls.

Published article "Larry Williams Market Secrets (Part 18): Automating the Greatest Swing Value Breakout Strategy in MQL5".

Larry Williams Market Secrets (Part 18): Automating the Greatest Swing Value Breakout Strategy in MQL5

This article converts the Greatest Swing Value breakout rules into a configurable MQL5 Expert Advisor. It implements measurable setup conditions, failure-swing calculations, one-bar setup validity, and M1 breakout confirmation. The EA also supports broker-compatible risk management, manual or percentage-risk sizing, position control, and trade-server validation, providing a reproducible framework for independent Strategy Tester research across different markets and historical periods.

Published article "MetaTrader 5 Machine Learning Blueprint (Part 22): Auditing the Selection Criterion — Measuring Overfit in Hyperparameter Search".

MetaTrader 5 Machine Learning Blueprint (Part 22): Auditing the Selection Criterion — Measuring Overfit in Hyperparameter Search

We show that nested cross-validation removes optimistic evaluation bias but does not stop hyperparameter search from overfitting a finite sample, and we add a diagnostic for when the criterion cannot resolve candidates from noise. We implement OffsetPurgedKFold (boundary-shifted repartitioning), a criterion variance audit (resolution ratio and selection stability), a selection optimization curve, a corrected one-standard-error rule, noise-floor early stopping, and an effective trial count for correlated trials. The result is a dispersion report per candidate and an effective count for the Deflated Sharpe Ratio.

Published article "Trade Entry Timing Accuracy Analyzer in MQL5".

Trade Entry Timing Accuracy Analyzer in MQL5

This article builds an MQL5 dashboard that evaluates entry timing for closed positions using tick‑based Maximum Adverse Excursion (MAE) and Maximum Favorable Excursion (MFE). It computes an entry efficiency ratio, renders an MAE/MFE scatter plot and an efficiency histogram, and prints a concise summary to the Experts tab. Deal grouping, tick‑level excursion logic, and a standalone verification script are included so you can diagnose entry quality across many trades.

Published article "Building AI-Powered Trading Systems in MQL5 (Part 12): Giving the Assistant Chart Vision and Tool Access".

Building AI-Powered Trading Systems in MQL5 (Part 12): Giving the Assistant Chart Vision and Tool Access

We give our AI chat assistant two new abilities in MQL5: sight and tool access. It can now capture the chart as a screenshot, attach it to a message, and view it in the panel, and it can call tools that read live positions, trade history, indicator values, chart objects, and the economic calendar. The assistant reasons from what it sees and queries rather than text alone.

Published article "Neural Networks in Trading: From Transformers to Spiking Neurons (Key Components)".

Neural Networks in Trading: From Transformers to Spiking Neurons (Key Components)

We present to the reader an implementation of the SpikingBrain framework’s approaches based on recurrent linear attention with gates, discussed in detail in this article. Forward pass, gradient propagation, and weight update algorithms ensure efficient processing of financial time series and enable the practical implementation of the framework’s key concepts.

Published article "Encoding Candlestick Pattern (Part 6): Developing the Encoded Sequence Indicator".

Encoding Candlestick Pattern (Part 6): Developing the Encoded Sequence Indicator

An on-chart MQL5 indicator generates a live stream of encoded candlestick symbols and a frequency report for the last N bars. It supports color customization and type filtering, and uses A/a, H/h, E/e, G/g, D, and N/n classifications. Traders can quickly review occurrences and common sequences directly on the chart.

Published article "Regime Discovery by Structure: Implementing Toeplitz Inverse Covariance Clustering (TICC)".

Regime Discovery by Structure: Implementing Toeplitz Inverse Covariance Clustering (TICC)

This article presents a full MQL5 pipeline for Toeplitz Inverse Covariance Clustering: stacked observations, ADMM‑based graphical lasso with block‑Toeplitz constraints, and dynamic‑programming regime assignment. It separates structure from volatility and conditions away the shared USD leg. The fitted regimes are displayed causally as a non-repainting ribbon with a dependency graph for the active state.

Published article "Uncertainty as a Model (Part 3): Mathematical Statistics — How to Extract Knowledge from Data".

Uncertainty as a Model (Part 3): Mathematical Statistics — How to Extract Knowledge from Data

This part of the series examines the mechanisms of the Law of Large Numbers (LLN) and the Central Limit Theorem (CLT) as the theoretical foundation for understanding market patterns. This section describes the tools of descriptive statistics and methods for finding point and interval estimates of distribution parameters. Particular attention is paid to the methodology for testing statistical hypotheses, which makes it possible to objectively distinguish genuine market anomalies from random noise. Each theoretical concept is accompanied by a practical example in the appendix, which helps reinforce the material using specific data.

More than 1000 new charts published:

Grafik FlipX 2, M5, 2026.10.07 18:02 UTC, Weltrade Ltd., MetaTrader 5, Real
FlipX 2, M5
차트 NZDUSD, D1, 2026.10.07 03:58 UTC, Five Percent Online Ltd, MetaTrader 5, Demo
NZDUSD, D1
チャート AUDCHF, H1, 2026.10.07 06:13 UTC, MetaQuotes Ltd., MetaTrader 5, Demo
AUDCHF, H1

The most downloaded free products:

There are more than 62,230 products available in Market

New publications in CodeBase

  • Portfolio Allocation Planner — budget-to-lots dashboard and CSV Before configuring a basket, see which target weights fit your broker's minimum lots. Portfolio Allocation Planner turns an explicit hypothetical notional budget and percentages into a chart table: minimum-lot notional, lots rounded down, calculated allocation, target shortfall and row status. Recalculate on demand, inspect row tooltips, paginate longer lists, and optionally export the displayed snapshot to CSV. No trades are sent and no account balance, equity or positions are read.
  • Broker Basket Preflight — read-only contract and minimum-volume diagnostics Read-only MT5 script for exact Market Watch symbols: contract and volume rules, quote age and spread, isolated BUY/SELL margin, one-tick price moves and spread-only results in account currency. MIT source; Experts journal output.
  • AgentGuard — Independent Risk Guard for AI Agents in MetaTrader 5 Independent Risk Guard for AI Agents in MetaTrader 5.
  • Manual Trade Pad for Strategy Tester A lightweight manual trading panel for MetaTrader 5 with market order execution, risk-based position sizing, Break-Even, partial close and position management. Works in both live trading and the Strategy Tester.
  • Symbol Spec Export - volume step, filling mode and stops level to CSV Writes the trading specification of every symbol to a CSV file: volume step, filling modes, stops level, tick value and more.
  • DailyLossGuard — Hard Daily Loss Protection DailyLossGuard — Hard Daily Loss Protection (Prop-Firm Challenge Essential)
  • Broker Clock Auditor Reads the server clock from the symbol's own H1 history. The forex and CME week closes at 17:00 New York, so the server time of every weekly close gives the server's UTC offset for that week. Over 60 weeks it flags irregular closes, dates every clock change and tests it against the US and European daylight saving calendars, cross-checks TimeTradeServer minus TimeGMT, and lists the server time of the London, New York, Tokyo and Sydney opens for the coming weeks. Writes every close to CSV. Read only: no trade function, no DLL, no network.
  • Prop Daily Loss Meter Shows how much of the daily loss limit of a prop firm account is already used, and how much is left. Read-only indicator.
  • Server Clock Check Measures how far your PC clock is from the trade server's clock, from the server time stamped on live ticks, and tells you how to fix it.
There are more than 155,340 topics available on forum
There are more than 12,520 codes published in Codebase

8 new topics on forum:

and 5 more...

Bestsellers in the Market:

26 new signals now available for subscription:

XAUUSD SCALPING
148% 54 trades
Growth:148.13%
Equity:101.54USD
Balance:101.54USD
Bcoin
99% 100 trades
Growth:99.11%
Equity:331.36USD
Balance:331.36USD
Candle Day AUDCAD
79% 805 trades
Growth:78.72%
Equity:995.30USD
Balance:1,000.00USD
and 23 more...
There are more than 3,490 articles published on site

Published article "Neural Networks in Trading: From Transformers to Spiking Neurons (SpikingBrain)".

Neural Networks in Trading: From Transformers to Spiking Neurons (SpikingBrain)

The SpikingBrain framework demonstrates a unique approach to data processing: neurons respond only to significant events, effectively filtering out noise. Its event-driven architecture reduces computational costs while preserving key information about price movements. Adaptive thresholds and the ability to use pre-trained modules ensure the model's flexibility and scalability.

The most popular forum topics:

Published article "Time Series Shapelets: Learning a Price Shape, and Testing Whether It Means Anything".

Time Series Shapelets: Learning a Price Shape, and Testing Whether It Means Anything

We implement a Time Series Shapelet library for MQL5 that finds the subsequence of price history whose z-normalized shape best separates two labels and derives the decision threshold from information gain. Because candidate searches on prices always return a winner, the fit includes a purged hold-out and a calibrated block permutation null. You get a reusable facade and rules you can plot and evaluate against an explicit noise floor.

Published article "Inside MetaEditor's AI Assistant: Writing, Repairing and Testing MQL5 with an Agent".

Inside MetaEditor's AI Assistant: Writing, Repairing and Testing MQL5 with an Agent

We use the MetaTrader 5 AI Assistant to execute the full workflow end to end: create an EA from a natural‑language prompt, compile it, break and watch it self‑correct from compiler output, backtest it, and compare a controlled re‑run. The article details the underlying MCP extensions, configuration and safety limits, and how to connect external AI clients. Readers get a repeatable process for building and testing EAs inside the platform.

Published article "Monthly Profit and Loss Calendar Heatmap Renderer in MQL5".

Monthly Profit and Loss Calendar Heatmap Renderer in MQL5

The article presents an MQL5 script that reads closed deals, groups them by date, and renders a calendar grid for daily P&L and trade count. It explains the data model, normalization to midnight, robust week/weekday mapping, diverging and single-hue color scales, and CCanvas-based drawing, plus a verification script and weekday summary. This helps you quickly locate clusters and quiet periods and cross-check findings with logged totals.

Published article "Swarm Optimizer with Hierarchical Sub-Flocks — Flock by Leader".

Swarm Optimizer with Hierarchical Sub-Flocks — Flock by Leader

We are developing and implementing the Flock by Leader algorithm in MQL5: sub-flocks are formed based on the ARF metric, and the leader is determined by the highest personal best rather than by the centroid's position. We present the update formulas for the swarm roles and the separation mechanism. The C_AO_FBL class is compatible with the test bench and has been tested on the Hilly, Forest, and Megacity functions with dimensionalities from 10 to 1000 coordinates, which simplifies reproduction and comparison.

Published article "Developing Smart Chart Objects in MQL5 (Part 2): Automating Trendline Discovery and Lifecycle Management".

Developing Smart Chart Objects in MQL5 (Part 2): Automating Trendline Discovery and Lifecycle Management

Learn how Smart Trendline Manager separates creation from lifecycle control while handling both manual and auto-generated trendlines. It demonstrates discovery, registration, proximity and touch handling, bounce/break confirmation, post-break resurrection, expiration, and state-driven visualization. This gives you a consistent, configurable way to manage multiple lines through one orchestrated update process.

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

Meta-Labeling the Classics (Part 4): Filtering and Sizing MACD Trades

MACD signal-line crossovers often reflect range noise rather than true momentum shifts, producing whipsaws. We apply a two-layer meta-labeling pipeline with an Optuna-optimized regime gate to filter entries on EURUSD H1, turning a gross-losing rule into a positive but not statistically significant track. A secondary Random Forest adds no lift due to too few gated samples, clarifying when filtering helps and when the ML layer is data-starved.

Published article "Consecutive Loss Streak Analyzer and Risk-of-Ruin Calculator in MQL5".

Consecutive Loss Streak Analyzer and Risk-of-Ruin Calculator in MQL5

This article presents an MQL5 script that extracts closed trade history, computes empirical win rate and payoff, and evaluates consecutive-loss probabilities using the geometric tail, plus risk of ruin from edge and position size. It plots a CCanvas ruin curve with a live marker at the chosen risk and prints a probability summary, including the account's worst historical streak in theoretical context.

The most downloaded free products:

There are more than 62,080 products available in Market

More than 1000 new charts published:

チャート XAUUSDu, H1, 2026.10.06 02:54 UTC, PT Dupoin Futures Indonesia, MetaTrader 5, Demo
XAUUSDu, H1
Chart USDJPY, H1, 2026.10.06 03:10 UTC, MetaQuotes Ltd., MetaTrader 5, Demo
USDJPY, H1
Chart XAUUSD.x, M1, 2026.10.06 06:27 UTC, Sarmaye Gozare Bartar Ltd., MetaTrader 5, Demo
XAUUSD.x, M1

Most downloaded source codes this month

  • 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.
  • LotSize Calculation This is a simple script file to compute lot size either using risk percentage approach or the actual amount to risk.

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.

New publications in CodeBase

  • Multi-Indicator Divergence Detector Regular and hidden divergences between price and ten oscillators calculated inside the indicator: MACD, MACD histogram, RSI, Stochastic, CCI, Momentum, OBV, VWMACD, Chaikin Money Flow and MFI. Lines on price, a box naming every oscillator that agrees, and alerts.
  • Session Levels - Asian range, PDH/PDL, VWAP, swings and round numbers Session Levels draws the reference levels intraday traders watch most: Asian range, London and New York sessions, previous day and week high/low, daily VWAP, swing points and round numbers. Hover any level to read what it is and why it matters. Optional alerts when price breaks the Asian range or the previous day high/low.
  • CajasTF – Integrated Multi-Timeframe Side Panel for MT5 Real-time multi-timeframe side panel mini-chart with smart color matching, independent price scale, and candle countdown timer.
  • ATS Trade Management Library - break-even, trailing stop and partial closes for any EA Look after open positions in an Expert Advisor: break-even, trailing stop, two partial closes, and a stop and target for positions that have none. It never opens a trade.
  • Session Reality Auditor Checks the broker's session table against the M1 history. For every minute of the week it counts on how many of the last N days the symbol really has a bar, and sets that next to SymbolInfoSessionQuote and SymbolInfoSessionTrade: declared minutes that are usually empty (rollover holes), bars in minutes the table calls closed, trade and quote tables that disagree, and one-off outages such as an early holiday close. Prints the real sessions per weekday, writes every finding to CSV and prints its own arithmetic. Read only: no trade function, no DLL, no network.
  • Advanced Prop-firm Trade Panel based on S-R A manual trading panel with a built-in prop-firm risk guard and a hidden Support/Resistance finder for MetaTrader 5.

Bestsellers in the Market:

8 new topics on forum:

and 5 more...

20 new signals now available for subscription:

Smart Multipair Algo
74% 796 trades
Growth:74.42%
Equity:1,358.20EUR
Balance:1,380.43EUR
Gold 5 plus
54% 512 trades
Growth:54.09%
Equity:15,189.79EUR
Balance:15,189.79EUR
ExtractoDAO SA
33% 38 trades
Growth:32.92%
Equity:70,212.78BRL
Balance:95,601.12BRL
and 17 more...

Published article "The Deflated Sharpe Ratio in MQL5: Telling a Real Edge from a Lucky Backtest".

The Deflated Sharpe Ratio in MQL5: Telling a Real Edge from a Lucky Backtest

A Sharpe ratio read off the best of many optimization runs is not the number it looks like. This article ships a reusable native CDeflatedSharpe class that turns a raw Sharpe into an honest confidence statement. The Probabilistic Sharpe Ratio corrects it for sample length and for skew and kurtosis; the Deflated Sharpe Ratio adds the correction almost nobody applies, for the number of variants you tried before keeping the best. Everything is from scratch, the sample moments, the normal CDF and its inverse included, so there is no Python, no DLL and no library. On a real sweep of 56 moving-average variants on XAUUSD the winner looked significant at 98.5 percent by PSR, then fell to 90.6 percent once the 56 trials were admitted, below the usual bar. That gap is the selection bias, made measurable.

Published article "Swing Extremes and Pullbacks (Part 5): Filtering Weak Swings Using Candle Imbalance".

Swing Extremes and Pullbacks (Part 5): Filtering Weak Swings Using Candle Imbalance

This article implements an MQL5 Expert Advisor that scores each impulse leg behind a swing extreme with a 0–100 Candle Imbalance Score. The score combines four bounded components—body dominance, directional consistency, leg efficiency, and Fair Value Gap coverage—to filter weak swings before any pullback setup is armed. You will see enforced swing alternation, a state machine for first-clean-retest-only entries, and a three-mode trailing stop, enabling consistent setup selection and exit management.

Published article "Neural Networks in Trading: Robust Trading Signals in Any Market Regime (Conclusion)".

Neural Networks in Trading: Robust Trading Signals in Any Market Regime (Conclusion)

The article provides a detailed examination of the integration of the ST-Expert framework's approaches into the Extralonger architecture, which enables the simultaneous analysis of temporal and spatial representations of data. The results of testing on real historical data are presented, demonstrating the model's effectiveness and its robustness to market anomalies. The article describes the framework's modular structure, which ensures reproducibility, flexibility for research, and the ability to optimize components in stages.

Published article "How MQL5 Lite MCP AI Assistant Changed My Debugging Approach on Generated MQL5 Codes".

How MQL5 Lite MCP AI Assistant Changed My Debugging Approach on Generated MQL5 Codes

This article presents a practical debugging workflow with MetaEditor's integrated AI Assistant and a comparison to the previous external approach. We fix a controlled set of syntax and API errors in a D1 PriceMarker EA, inspect modifications, and recompile. The result is validated in the Strategy Tester, with clear boundaries between compilation success and required runtime checks.

Published article "Developing a Quantitative Session Analysis Tool (Part 1): Building a Data-Driven View of Market Sessions".

Developing a Quantitative Session Analysis Tool (Part 1): Building a Data-Driven View of Market Sessions

The article presents a session analysis workflow in MQL5 that standardizes sessions as structured data with timing, OHLC, range, net move, and the sequence of extremes. It measures how range builds at 25%, 50%, 75%, and 100% of session duration. The chart shows session markers, a compact comparison panel, and an interactive inspector to review individual occurrences.

1...121314151617181920212223242526...709