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 "Testing for Residual Autocorrelation with the Ljung-Box Portmanteau Test in MQL5".

Testing for Residual Autocorrelation with the Ljung-Box Portmanteau Test in MQL5

A complete MQL5 implementation of the Ljung-Box test helps verify independence in trading data and fitted-model residuals. It computes sample autocorrelations, the Q statistic over selected horizons, degrees of freedom with user-controlled adjustments, and right-tail p-values via the regularized incomplete gamma function. Run it on returns, deal outcomes, or external residuals and review decisions directly in the Experts tab.

Published article "Neural Networks in Trading: The Adaptive Graph Diffusion Model (Conclusion)".

Neural Networks in Trading: The Adaptive Graph Diffusion Model (Conclusion)

In this article, we conclude our work on building the SAGDFN framework using MQL5, summarizing the development process and presenting the results of its practical testing. Let's combine the modules we've already implemented into a single system, highlight the strengths of this approach, point out its weaknesses, and discuss possible ways to improve it.

Published article "Building a Dynamic and Customizable Table in MQL5".

Building a Dynamic and Customizable Table in MQL5

This article presents a reusable CTable class for building chart-based tables in MQL5. It covers table architecture, creation and destruction of objects, coordinates and sizing, cell properties, horizontal/vertical headers, dynamic row/column edits, object naming, index conversion, and efficient refreshing. You will be able to assemble consistent, aligned on-chart dashboards for market data, indicators, and signals with minimal boilerplate.

Published article "Building AI-Powered Trading Systems in MQL5 (Part 11): Optimizing the UI with Frame Throttling and Partial Rendering".

Building AI-Powered Trading Systems in MQL5 (Part 11): Optimizing the UI with Frame Throttling and Partial Rendering

We optimize an MQL5 canvas interface to stay responsive under rapid input without changing its appearance. The article adds a direct-buffer canvas for block region copies, caches text widths and glyph coverage, caps repaints at 60 fps (16 ms), and limits drawing to panes and regions that actually changed. As a result, hover, scroll, and popups render smoothly without full-panel redraws.

Published article "Practical Modules from Other Languages in MQL5 (Part 07): The OS Module from Python".

Practical Modules from Other Languages in MQL5 (Part 07): The OS Module from Python

This article introduces a lightweight OS-like helper for MQL5 that streamlines file and path operations using a Python-inspired interface. We implement getcwd, listdir, scandir with DirEntry, remove, rmdir, rename, mkdir, stat, and an os.path subset (exists, isfile, isdir, join, split, pardir). You will learn how to work consistently within the terminal Files/common sandbox and simplify everyday filesystem tasks.

Published article "From Delta-Space Quotes to the FX Volatility Smile: Garman-Kohlhagen and the Convention Problem".

From Delta-Space Quotes to the FX Volatility Smile: Garman-Kohlhagen and the Convention Problem

FX options are quoted in delta space, not by strike. This article implements an FX-native smile tool for MetaTrader 5: it converts ATM, risk reversal and butterfly quotes into strike-space pillars, prices with the Garman–Kohlhagen model, handles spot/forward and premium-adjusted delta conventions per pair, and draws the smile with a reconstructed strike ladder and Greeks.

Published article "Uncertainty as a Model (Part 1): Random Variables — The Language of Uncertainty".

Uncertainty as a Model (Part 1): Random Variables — The Language of Uncertainty

The article provides a systematic overview of the theory of random variables, which serves as the basis for analyzing and modeling uncertainty in financial markets. The article covers the definitions and properties of univariate random variables, cumulative distribution functions (CDFs) and probability density functions (PDFs), as well as the differences between discrete, continuous, and mixed models. The theoretical material is based on intuitive analogies with mass and density. The appendix to this article contains practical examples of using the standard MQL5 library to calculate probabilities, quantiles, and moments of distributions. It also demonstrates the graphical capabilities of the MetaTrader 5 platform for visual data analysis by plotting PDF and CDF curves and QQ plots.

The most downloaded free products:

More than 1200 new charts published:

Chart USDJPY, H1, 2026.09.24 02:03 UTC, AxiCorp Financial Services Pty Ltd, MetaTrader 5, Demo
USDJPY, H1
Chart I.USDX, H4, 2026.09.24 13:12 UTC, Admirals Group AS, MetaTrader 4, Real
I.USDX, H4
Graphique EURUSD, H1, 2026.09.24 21:18 UTC, Trading Point Of Financial Instruments Ltd, MetaTrader 5, Demo
EURUSD, H1
There are more than 61,580 products available in Market

New publications in CodeBase

  • Gold Breakout EA for XAUUSD H4 +90 Percent in a 2020 to 2026 Backtest A Turtle-style breakout EA for gold. It buys when an H4 bar closes above the 20-bar high in an uptrend, with a 2 ATR stop and a 2R target. Backtested on XAUUSD from January 2020 to September 2026: +9,029.72 on 10,000 at 1% risk, profit factor 1.77, max drawdown 11.38%, 6 of 7 years profitable.
  • CME Gap Tracker for Gold and Bitcoin: Open Gaps, Fill Rate and a Fade-Trade Test Finds the weekend CME gap on gold and on 24/7 Bitcoin charts, keeps every unfilled gap on the chart until price returns to it, and shows how often gaps filled, how fast, how far price ran first, and what fading them would have made. Non-repainting, with buffers for an Expert Advisor.
  • Trade Reporter Lite - Telegram trade notifications Posts your MT5 opens and closes to a Telegram chat: side, symbol, entry, stop and target in pips, lots, and on close the result, pips, R-multiple and time held. Retry queue, restart-safe, never trades. Free Telegram and Discord trade notifier for MT5
  • ATR Trailing Stop (Pine Script Port) MQL5 port of a Pine Script ATR trailing-stop indicator: nLoss = ATR-multiple, the stop ratchets under price in an uptrend and over price in a downtrend, and flips (with a buy/sell arrow) when price closes through it. Includes a Python reference port and a parity test that checks both agree with a literal, bar-by-bar transcription of the Pine semantics (na/nz/series history).
  • EMA Cross Demo EA with ATR Stops A small demo Expert Advisor: EMA fast/slow cross entries (evaluated on closed bars only, no repainting), ATR-based stop-loss and take-profit, spread filter, and position handling that works on both hedging and netting accounts. Includes a Python reference implementation for parity testing. This is a deliverable example, not a trading recommendation - the attached equity curve is from synthetic data and shows the method, not an edge.
  • Session TWAP: time weighted average price from the cash open, with deviation bands Time weighted average price of the running session, anchored at the cash open of Frankfurt, London, New York or Tokyo with automatic daylight saving. Every second counts the same, minutes without a tick carry the last price, and two bands show the time weighted standard deviation around the line.
  • PropSpread: time-weighted spread monitor with ATR context, alert and CSV log Panel that samples the spread once per second and shows it in points and in the symbol's natural unit (pips on FX, index points on index CFDs), with rolling min/avg/median/max, a session statistic since server midnight, the spread as percent of ATR, a hold-time alert and an optional CSV log. It never sends an order.
There are more than 155,140 topics available on forum

Bestsellers in the Market:

31 new signals now available for subscription:

UZUNAMI88
248% 621 trades
Growth:247.55%
Equity:11,913.80USD
Balance:11,913.80USD
ESTRATEGIA US500
171% 1403 trades
Growth:170.56%
Equity:344.54USD
Balance:344.54USD
Icetrading
170% 256 trades
Growth:170.36%
Equity:434.33USD
Balance:402.56USD
and 28 more...

8 new topics on forum:

and 5 more...

Published article "Building a Swing-Based Volume Profile Indicator in MQL5".

Building a Swing-Based Volume Profile Indicator in MQL5

This article presents a swing-based volume profile indicator in MQL5 that analyzes platform tick volume within completed high-to-low and low-to-high legs. It confirms swing points, partitions each leg's range into ATR(200)‑adaptive price bins, distributes tick volume, and marks the Point of Control. The indicator draws a ZigZag and renders the profile on chart rectangles, helping you study volume concentration within each swing relative to price structure.

Published article "Automating Trading Strategies in MQL5 (Part 53): Double Top and Double Bottom Reversal Model".

Automating Trading Strategies in MQL5 (Part 53): Double Top and Double Bottom Reversal Model

We build an MQL5 program that detects and trades Double Top and Double Bottom patterns from confirmed swing pivots with rule-based logic. The detector matches peaks within a tolerance, derives the neckline, and applies leg-balance and spacing filters to reject weak shapes. It supports entry on a neckline break or an optional pullback, with a stop beyond the extreme and targets by measured move or reward-to-risk.

Published article "Did Your Scale Outs Actually Help? A Scale Out Value Analyzer in MQL5".

Did Your Scale Outs Actually Help? A Scale Out Value Analyzer in MQL5

The article presents an MQL5 tool that tests whether scaling out improved results rather than only appearing disciplined. It reconstructs positions from closing-deal history and reprices the full volume at the first, last, and best exit rates actually achieved, producing a Value-Add Ratio, a Scale-Out Win Rate, and an Efficiency measure. A single-trade dependence check and a configurable A+ to F grade turn these into clear, decision-ready feedback.

Published article "MetaTrader 5 Machine Learning Blueprint (Part 21): Feature Importance Analysis".

MetaTrader 5 Machine Learning Blueprint (Part 21): Feature Importance Analysis

Feature importance often understates correlated predictors by spreading one signal across many engineered copies, while unrelated noise can appear higher. We measure this effect against a known ground truth and compare four remedies: permutation importance with purged cross-validation, single-feature models, and clustered impurity versus clustered accuracy. The results include per-method rankings and a per-cluster dilution ratio that help identify true signals and avoid deleting valuable features.

Published article "The Dragonfly Algorithm (DA)".

The Dragonfly Algorithm (DA)

In this article, we will examine the Dragonfly Algorithm (DA), inspired by the collective behavior of dragonflies in nature — their ability to coordinate flight in a swarm, avoid collisions, follow prey, and evade predators. Let's look at how five simple behavioral rules and an adaptive mechanism for transitioning from exploration to exploitation are implemented in MQL5, and test the algorithm on our test bench.

Published article "Neural Networks in Trading: The Adaptive Graph Diffusion Model (Attention Module)".

Neural Networks in Trading: The Adaptive Graph Diffusion Model (Attention Module)

In this article, we will take a detailed look at the practical implementation of the key components of the SAGDFN framework. We will show how sparse attention and the selection of significant neighbors are organized for time series forecasting. The approaches presented strike a balance between forecast accuracy and computational efficiency.

Published article "How to Connect an LLM to an MQL5 Expert Advisor via a Python Server".

How to Connect an LLM to an MQL5 Expert Advisor via a Python Server

The article examines three key obstacles to integrating LLMs with MetaTrader 5: the lack of direct access, strict rate limits, and API key security given the architectural limitations of MQL5. A configuration is proposed that uses a local Python server as a bridge between the Expert Advisor and OpenRouter. The article covers WebSocket and fallback to TCP, storing the key on the server, batch processing of multiple symbols, and constructing a technical prompt. Readers get a ready-made architecture that reduces latency and costs.

Published article "Building a PDF Creation Library in MQL5 (Part1): Writing a PDF by Hand".

Building a PDF Creation Library in MQL5 (Part1): Writing a PDF by Hand

This article shows how a PDF works as plain text by hand‑written two files: a 592‑byte page and an 885‑byte trade ticket. It explains the file structure (header, body, xref, trailer), the required page objects and resources, and the operators that draw text, then provides an MQL5 script to generate them. First part of a pure‑MQL5 PDF library series.

Published article "Replay and Market Simulation: The Grand Finale".

Replay and Market Simulation: The Grand Finale

I know that many of you may have thought I would publish a few more articles to explain other aspects of this system. The missing elements are easy to implement. Even so, developing them will let you see how prepared you really are.

Published article "From Basic to Intermediate: Operator Overloading (V)".

From Basic to Intermediate: Operator Overloading (V)

In this article, we will look at how to modify the code to implement a solution entirely unlike what many consider possible in MQL5. Important note: To fully understand this material, you must have a solid grasp of the concepts covered in the previous articles.

The most downloaded free products:

More than 1200 new charts published:

차트 XAUUSD, H1, 2026.09.23 03:06 UTC, Fusion Markets Pty Ltd, MetaTrader 5, Real
XAUUSD, H1
Chart XAUUSD, M5, 2026.09.23 01:20 UTC, InterStellar Financial Group Limited, MetaTrader 5, Demo
XAUUSD, M5
Graphique GER40, M1, 2026.09.23 09:53 UTC, Pepperstone Group Limited, MetaTrader 4, Real
GER40, M1
There are more than 61,440 products available in Market

Bestsellers in the Market:

3 new topics on forum:

28 new signals now available for subscription:

EA Happy Gold BB High Risk
31,473% 167 trades
Growth:31,473.13%
Equity:315,731.32USD
Balance:315,731.32USD
EA Happy Galaxy FM
154% 4042 trades
Growth:153.78%
Equity:4,694.85USD
Balance:5,075.61USD
LeVisCapital
124% 1463 trades
Growth:124.19%
Equity:7,958.05USD
Balance:8,011.76USD
and 25 more...

New publications in CodeBase

  • Asian Range Sweep Indicator with a Built-In Win Rate Scorecard Marks the Asian session range, signals when London or New York sweeps one side of it and reverses, and keeps a scorecard of how every past signal ended in R, spread included. Non-repainting, with buffers ready for an Expert Advisor.
  • SMC Gold: Liquidity Sweep and Order Block EA for XAUUSD M15 An intraday Smart Money Concepts EA for gold. It waits for price to sweep a recent swing high or low, confirms the reversal with a close through the sweep candle's body, and trades only with the H1 trend. Backtested on XAUUSD M15 over 2025 and 2026 at 1% risk per trade.
  • Gold Position Size Calculator (XAUUSD) Free risk-based position size calculator built specifically for Gold (XAUUSD). Enter your account balance, risk percentage, entry price and stop-loss price - the indicator calculates the exact lot size, risk amount, stop distance, risk/reward ratio and potential profit, and draws entry, stop and take-profit lines on the chart. Contract size is read automatically from the symbol specification, so it works on any gold symbol without manual setup.
  • Unified Hull MA (4 Lines, Color-Coded, Ring Buffer) Hull Moving Average indicator displaying four periods on a single chart, colour-coded by direction (green for rising, red for falling, grey for flat). Implemented with a ring buffer and incremental running-sum math, so memory and CPU use remain constant regardless of chart history length. Buffer layout is documented and stable, making the indicator suitable for use with iCustom() from EAs. Supports 2, 3, or 4 Hull lines depending on configuration.
  • Prop Firm Daily Drawdown Visualizer (Free) Protect Your Funded Account with Institutional-Grade Risk Monitoring. The #1 reason traders fail prop firm challenges is not a bad strategy; it is breaching daily drawdown limits. The AlphaQuant Prop Firm Daily Drawdown Dashboard is a free, high-visibility Expert Advisor
  • News Filter for the Strategy Tester (DST-corrected calendar export) A real economic-calendar news filter that also works in backtests. Export the events once with a script, then block new entries around news both live and in the Strategy Tester. Fixes the one-hour DST shift of historical calendar times.
There are more than 12,440 codes published in Codebase
There are more than 3,420 articles published on site

Published article "MQL5 Expert Advisor Builder (Part 1): A Simple Static Template".

MQL5 Expert Advisor Builder (Part 1): A Simple Static Template

The article examines an example of a multipurpose trading robot template that is suitable both for creating your own strategies and as a codebase for freelance work. A key feature of the solution is bar-based trading; the code already includes built-in modes for averaging, martingale, and holding positions for extended periods. This material will be most useful to beginners who want to develop their own simple strategies or learn about common trading techniques.

Published article "Market Simulation: Unity Is Strength (III)".

Market Simulation: Unity Is Strength (III)

In this article, I will present our system for simulating market operations. Although everything is practically finished, there are still a few things to implement and a few changes to make. However, I have to admit that, after everything we've already developed, I'm tired of still being stuck on implementing this system.

Published article "Developing a Multi-Currency Expert Advisor (Part 32): Secrets of the Optimization Project Creation Step (II)".

Developing a Multi-Currency Expert Advisor (Part 32): Secrets of the Optimization Project Creation Step (II)

The article discusses the parameters of the second stage of the automatic optimization pipeline for a multi-currency Expert Advisor. We analyze the criteria for filtering first-stage passes and the rules for forming groups of trading strategies. The article demonstrates how settings affect optimization results, discusses aspects of process reliability, and examines the balance between selection strictness and having enough candidates for the algorithm.

Published article "Python-MetaTrader 5 Strategy Tester (Part 06): MQL5-Style Backtesting for Python Expert Advisors".

Python-MetaTrader 5 Strategy Tester (Part 06): MQL5-Style Backtesting for Python Expert Advisors

Code and build Python-based trading robots just like MQL5 Expert Advisors (EAs). In this article, we develop a Python-based replica of the MetaTrader 5 Python package, providing methods that closely resemble those of MetaTrader 5 during simulation. This allows us to backtest Python EAs in a simplified environment, using an approach similar to developing and testing Expert Advisors in MQL5.

Published article "Building an Adaptive Fibonacci Volatility Band Indicator in MQL5".

Building an Adaptive Fibonacci Volatility Band Indicator in MQL5

We build an adaptive Fibonacci volatility band indicator in MQL5 that centers on a smoothed price (SMMA) and scales band width with a smoothed ATR. The article covers inputs, buffer mapping, ATR handling, and SMMA formulas, then projects configurable Fibonacci ratios with filled zones. Readers get a ready workflow for visualizing volatility expansion/contraction and outlining dynamic support and resistance.

Published article "Building AI-Powered Trading Systems in MQL5 (Part 10): A Resolution-Independent Vector Icon System".

Building AI-Powered Trading Systems in MQL5 (Part 10): A Resolution-Independent Vector Icon System

We replace the embedded bitmap icons in our MQL5 canvas interface with a resolution-independent vector icon system. A small set of anti-aliased primitives (strokes, discs, rings, rounded rectangles, and polygons) draws every logo and sidebar glyph procedurally, then plugs into the header, sidebar, and theme toggle. You get smaller builds, theme-aware recoloring, and icons that stay sharp at any size.

Published article "From Basic to Intermediate: Operator Overloading (IV)".

From Basic to Intermediate: Operator Overloading (IV)

In this article, we will take a first step toward showing how to implement operator overloading for the index operator and the assignment operator, while striving to offer a practical and interesting approach for everyone. What we will see here is only part of what I still intend to show, and it is directly related to the overloading of these operators.

Published article "Market Replay: Unity Is Strength (II)".

Market Replay: Unity Is Strength (II)

Until now, the application being developed as part of this series of articles has focused exclusively on simulating the graphical part. However, to obtain a more complete system in which we can test the Expert Advisor within the replay/simulation service, we also need to simulate the trading server. You'll notice that this simulation will include only the most essential elements. Nevertheless, you, dear reader, will be able to fill in the missing parts. Since these additional components don't affect what I want to show, we already have more than enough to implement what we have in mind.

Published article "Neural Networks in Trading: The Adaptive Graph Diffusion Model (SAGDFN)".

Neural Networks in Trading: The Adaptive Graph Diffusion Model (SAGDFN)

In this article, we explore the architecture of SAGDFN — a modern framework capable of transforming the approach to processing spatiotemporal data. It preserves key information even in complex graphs while reducing computational costs.

The most downloaded free products:

More than 1300 new charts published:

График TRUMPUSD, M15, 2026.09.22 03:03 UTC, IC Markets Ltd, MetaTrader 5, Real
TRUMPUSD, M15
Gráfico XAUUSD, M5, 2026.09.22 03:08 UTC, ePlanet Brokers Ltd, MetaTrader 5, Demo
XAUUSD, M5
Gráfico AUDUSD, H1, 2026.09.22 02:37 UTC, Tradexfin Limited, MetaTrader 4, Real
AUDUSD, H1
There are more than 61,300 products available in Market

The most popular forum topics:

Most downloaded source codes this month

  • 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.
  • iS7N_TREND.mq5 Now it's two-color (or two-mode) trend indicator, the number of calculated bars can be specified.
  • ASQ Command Desk ASQ CommandDesk is a professional order management panel for manual traders on MetaTrader 5. You make the trading decisions — CommandDesk handles execution, risk control, and exit management automatically.

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.

35 new signals now available for subscription:

MUHAMMED ALTEN
314% 142 trades
Growth:313.86%
Equity:2,197.79USD
Balance:2,197.79USD
US30 Precision NY
309% 142 trades
Growth:309.13%
Equity:753.98USD
Balance:753.98USD
Bullion Beast
230% 186 trades
Growth:229.77%
Equity:1,319.09USD
Balance:1,319.09USD
and 32 more...
1234567891011121314...693