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 "Crystal Structure Algorithm (CryStAl)".

Crystal Structure Algorithm (CryStAl)

This article presents two versions of the Crystal Structure Algorithm: the original and the modified version. The Crystal Structure Algorithm (CryStAl), published in 2021 and inspired by the physics of crystal structures, was positioned as a parameter-free metaheuristic for global optimization. However, testing revealed a critical problem with the algorithm. A modified version, CryStAlm, is also presented; it addresses the original's key shortcomings.

There are more than 154,510 topics available on forum

8 new topics on forum:

and 5 more...
There are more than 56,950 products available in Market

The most downloaded free products:

Bestsellers in the Market:

20 new signals now available for subscription:

Zlodej Zlata 1
167% 920 trades
Growth:166.92%
Equity:1,101.18USD
Balance:1,101.18USD
The Golden Rocket
147% 73 trades
Growth:146.55%
Equity:1,310.19USD
Balance:1,310.19USD
UBS Christmas
131% 449 trades
Growth:130.56%
Equity:8,648.62USD
Balance:8,648.42USD
and 17 more...

Most downloaded source codes this week

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

Most read articles this week

MetaTrader 4 on Linux

MetaTrader 4 on Linux

In this article, we demonstrate an easy way to install MetaTrader 4 on popular Linux versions — Ubuntu and Debian. These systems are widely used on server hardware as well as on traders’ personal computers.

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.

New publications in CodeBase

  • Scale Out Value Analyzer A native MQL5 tool that reconstructs closed positions from deal-level history, flags the ones closed through more than one exit, and reprices each one at its own first, last, and best exit rates to measure whether scaling out actually added value. Reports a Value-Add Ratio, a Scale Out Win Rate, an Efficiency figure, and a single-trade dependence check, combined into an A+ to F score with recommendations. Runs out of the box against a built-in demonstration data set; a companion script exports the real input file from your own account history. Pure MQL5, no external libraries.
  • Smart Trade Manager for MT5 Automatic structure-based SL, breakeven, ATR trailing, and dollar-based profit protection for manual MT5 trades and pending orders on Gold and selected FX pairs.
  • Swing High Low - Non-Repainting Pivots with Push/Email Alerts Marks non-repainting swing highs and lows using configurable LeftBars / RightBars pivots. Sends push and email alerts on each new confirmed swing.
  • Risk Based Position Size Calculator Draggable Entry, Stop-Loss and Take-Profit lines with a live on-chart panel that calculates the exact lot size for a chosen account risk. No manual math, no guessing — drag the lines, read the size.
  • Trend Execution Planner - Regime and Risk Panel Free open-source MT5 read-only chart utility that scores current trend conditions and builds broker-normalized long and short risk plans. It uses moving-average direction and slope, ADX, Efficiency Ratio, ATR, spread, account currency and symbol specifications. It never opens, modifies or closes trades.

The most downloaded free products:

14 new signals now available for subscription:

CcrsxTraders
408% 279 trades
Growth:408.22%
Equity:1,320.57USD
Balance:1,320.57USD
Meridian Extreme Risk Mode
216% 373 trades
Growth:215.96%
Equity:480.52USD
Balance:512.70USD
Guardian FX Pro
206% 300 trades
Growth:205.69%
Equity:414.89USD
Balance:414.76USD
and 11 more...
There are more than 56,860 products available in Market

Bestsellers in the Market:

New publications in CodeBase

  • Risk Position Size Calculator Set your risk %, drag the stop, and get the exact lot size priced in your account currency — margin and target included. Calculates only, never trades.
  • MT5 Order Preflight - Read-Only Validation Checks a hypothetical MT5 market or pending order against current symbol, volume, tick-size, stop-distance and filling rules without sending a trade.
  • MT5 Broker Environment Report Prints a privacy-conscious snapshot of the current MT5 broker, account, symbol and terminal environment to the Experts log for diagnostics and support.
  • Trend Regime Inspector for MetaTrader 5 Open-source indicator combining moving-average direction, ADX and Kaufman's Efficiency Ratio into a transparent trend-condition score. Informational only; no trade execution.
  • Stochastic Reversal Signal A non-repainting Stochastic-based indicator that generates buy and sell signals based on extreme zone crossovers, featuring an alternating signal filter and bar-close alerts.

1 new topic on forum:

The most popular forum topics:

The most downloaded free products:

More than 500 new charts published:

Gráfico PainX 400, M2, 2026.08.07 16:03 UTC, Weltrade Ltd., MetaTrader 5, Real
PainX 400, M2
Chart USDCHF, H1, 2026.08.06 20:30 UTC, Ava Trade Ltd., MetaTrader 5, Demo
USDCHF, H1
Gráfico XAUUSD, M1, 2026.08.06 19:38 UTC, Gracex International Ltd., MetaTrader 5, Real
XAUUSD, M1
There are more than 56,780 products available in Market

Bestsellers in the Market:

4 new topics on forum:

and 1 more...

23 new signals now available for subscription:

Letme strategy
120% 1983 trades
Growth:119.74%
Equity:36,430.59USD
Balance:36,430.59USD
EU Zone Arsenal
119% 921 trades
Growth:119.45%
Equity:28,178.46EUR
Balance:28,528.30EUR
Nasdaq Investor
83% 609 trades
Growth:83.25%
Equity:93,050.39EUR
Balance:93,050.39EUR
and 20 more...

New publications in CodeBase

There are more than 12,260 codes published in Codebase

Published article "Building a Divergence System (Part III): The Adaptive SuperTrend EA".

Building a Divergence System (Part III): The Adaptive SuperTrend EA

The article implements a self-sufficient Adaptive SuperTrend EA with internal calculations on a selectable timeframe, avoiding external buffers and indicator files. It includes risk-based lot sizing, ATR stops, stepwise RR trailing, optional anti-repainting confirmation, and session control. Practitioners can reuse the structure for consistent new‑bar signal handling and broker‑compliant order validation.

Published article "Streaming MetaTrader 5 Trade Events to a Local HTTP Server Using WinINet in MQL5".

Streaming MetaTrader 5 Trade Events to a Local HTTP Server Using WinINet in MQL5

An MQL5 implementation sends trade lifecycle events to a local HTTP service through WinINet with a reusable session and per-request handles. The trade callback only enqueues JSON and returns, while a 500 ms timer drains the queue and retries failed posts, preserving order. A three-stage log policy keeps the Experts tab clear during downtime and summarizes recovery.

Published article "Mathematical Models in Grid Strategies".

Mathematical Models in Grid Strategies

In this article, we will examine the application of mathematics to grid strategies. We will consider the basic principles of the strategy, as well as its advantages and disadvantages. You will learn how to build a trading grid, set optimal parameters, and manage risks effectively.

Published article "Building a Modular Fair Value Gap (FVG) Detection Engine in MQL5".

Building a Modular Fair Value Gap (FVG) Detection Engine in MQL5

This article introduces a modular Fair Value Gap (FVG) detection engine for MQL5 packaged as a reusable include class, it evaluates imbalance zones on closed bars, applies a Simple True Range average filter to eliminate low-volatility noise, and supports wick-touch and close-through mitigation. A companion diagnostic indicator plots active gaps, and an Expert Advisor template demonstrates automated pullback entries with new-bar execution controls.

Published article "Automating Trading Strategies in MQL5 (Part 51): The Bread and Butter Judas Swing Model with Premium and Discount".

Automating Trading Strategies in MQL5 (Part 51): The Bread and Butter Judas Swing Model with Premium and Discount

We build a session-based reversal program in MQL5 using the Bread and Butter Judas Swing model. It derives a higher-timeframe daily bias, defines New York kill zones, maps each session's premium and discount from the live range, and requires a sweep before a market structure shift confirms entry. Readers get a ready approach to arm setups only during active sessions and execute in the bias direction with clear, testable rules.

Published article "MCMC Sampling Methods — The Metropolis-Hastings Algorithm".

MCMC Sampling Methods — The Metropolis-Hastings Algorithm

The Metropolis-Hastings algorithm is a fundamental Markov chain Monte Carlo (MCMC) method that is widely used to approximate posterior distributions in Bayesian inference. This article describes the theoretical foundations of the algorithm, the implementation of the MHSampler class in MQL5, and examples of its application, including an analysis of the resulting samples.

Published article "Neural Networks in Trading: Effective Feature Extraction for Accurate Classification (Final Part)".

Neural Networks in Trading: Effective Feature Extraction for Accurate Classification (Final Part)

The Mantis framework transforms complex time series into informative tokens and serves as a reliable foundation for an intelligent trading agent capable of operating in real time.

Published article "Kohonen Self-Organizing Maps in an MQL5 Expert Advisor".

Kohonen Self-Organizing Maps in an MQL5 Expert Advisor

Kohonen's self-organizing maps transform the chaos of market data into an ordered two-dimensional map, where similar patterns are grouped together. The article demonstrates a complete implementation of a SOM in an MQL5 Expert Advisor with 400 neurons and continuous learning. We break down the Best Matching Unit search algorithm, weight updates using a Gaussian neighborhood function, integration with quantum effects, and the generation of trading signals. The code is open-source, the math is clear, and the results are verifiable.

The most downloaded free products:

There are more than 56,700 products available in Market

Bestsellers in the Market:

25 new signals now available for subscription:

Definitely No Hype EA MT5
561% 265 trades
Growth:561.05%
Equity:26,441.94USD
Balance:26,441.94USD
Anonymous
272% 234 trades
Growth:271.62%
Equity:185.81USD
Balance:185.81USD
Wall Street Strategy
169% 243 trades
Growth:169.17%
Equity:1,345.87USD
Balance:1,345.87USD
and 22 more...

New publications in CodeBase

  • MT5 Trade Report Displays a complete trading statistics table directly on the chart — Net Profit, Profit Factor, Drawdown, Win Rate and more — calculated from your full account history. Purely informational, free for everyone.
  • Session high-low indicator Locks in the high and low of any user-defined session — Asian, London, New York, or a fully custom window — and draws it on the chart as a live-updating box or line pair. No repainting, no discretion — the range is measured directly from the bars, not estimated.
  • Quantora Candle Countdown MT5 - Professional Candle Timer and Countdown Tool Professional open-source Candle Countdown for MetaTrader 5. Displays a live digital candle timer, progress bar, elapsed and remaining time, market status and configurable countdown alerts with a modern Quantora dashboard.
  • Professional Margin Requirement Calculator for MetaTrader 5 Professional open-source Margin Calculator for MetaTrader 5. Calculates required margin, Free Margin impact, Margin Level, position value and margin safety with a modern Quantora dashboard.
  • Quantora Risk Calculator MT5 - Professional Trade Risk and Reward Calculator Professional open-source Risk Calculator for MetaTrader 5. Calculates money risk, account risk percentage, potential profit, Reward-to-Risk ratio, margin requirement and risk level.
  • Quantora Position Size Calculator MT5 Professional open-source Position Size Calculator for MetaTrader 5. Calculates broker-compatible lot size using account value, risk percentage, fixed risk amount and Stop Loss distance.
  • Professional Automatic Trailing Stop Utility for MetaTrader 5 Professional open-source Trailing Stop manager for MetaTrader 5 with adjustable start, distance, step, profit filter, Magic Number filtering and a modern Quantora dashboard.
  • Quantora Break Even Manager MT5 - Professional Automatic Break Even Utility Professional open-source Break Even manager for MetaTrader 5. Automatically moves Stop Loss to Break Even with adjustable trigger, offset, Magic Number filtering and a modern Quantora dashboard.
  • Quantora Trade Manager MT5 - Professional Position Management Utility Professional open-source trade management utility for MetaTrader 5. Automatically manages Stop Loss, Take Profit, Break Even and Trailing Stop for existing positions while providing a professional real-time dashboard.
  • Spread Monitor The Spread Monitor is a professional statistical dashboard that evaluates the current market spread relative to its recent historical behavior. Instead of simply displaying the current spread, it determines whether the spread is unusually high, unusually low, or within its normal statistical range.
  • Volatility Regime This is a volatility regime indicator, displayed in a separate window below the chart. The core idea: it calculates a historical percentile of the current volatility (0-100%) and classifies the market into 5 "regimes" — from extreme calm to extreme chaos. On top of that, it has a full visual dashboard (a text panel on the chart) with a trading signal, SL/TP, MTF (multi-timeframe) filters, volume, VIX, and, in the current version, a probabilistic "confidence meter" score.
  • Quantora Margin Calculator MT4 - Professional Margin Requirement Calculator Professional open-source Margin Calculator for MetaTrader 4. Calculates required margin, Free Margin impact, estimated Margin Level, position value and margin safety.
  • Quantora Risk Calculator MT4 - Professional Trade Risk and Reward Calculator Professional open-source Risk Calculator for MetaTrader 4. Calculates money risk, account risk percentage, potential profit, Reward-to-Risk ratio, margin requirement and risk level.
  • Quantora Position Size Calculator MT4 Professional open-source Position Size Calculator for MetaTrader 4. Calculates broker-compatible lot size using account value, risk percentage, fixed risk amount and Stop Loss distance with a modern Quantora dashboard.
  • Quantora Trailing Stop Manager - Automatic Trailing Stop Utility for MetaTrader 4 Professional open-source Trailing Stop manager for MetaTrader 4 with adjustable trailing start, distance, step, minimum profit filter, Magic Number filtering and a modern Quantora dashboard.
  • Quantora Break Even Manager MT4 - Professional Automatic Break Even Utility Professional open-source Break Even manager for MetaTrader 4. Automatically moves Stop Loss to Break Even using adjustable trigger, offset, Magic Number filtering and a modern Quantora dashboard.
  • Quantora Trade Manager MT4 - Professional Position Management Utility Professional open-source trade management utility for MetaTrader 4. Automatically applies Stop Loss, Take Profit, Break Even and Trailing Stop while providing a modern dashboard for efficient position management.
There are more than 154,460 topics available on forum
There are more than 12,230 codes published in Codebase

8 new topics on forum:

and 5 more...
There are more than 3,180 articles published on site

Published article "Artificial Coronary Circulation Algorithm (ACCS)".

Artificial Coronary Circulation Algorithm (ACCS)

A metaheuristic algorithm that simulates the growth of coronary arteries in the human heart for optimization problems. It uses the principles of angiogenesis (the growth of new blood vessels), bifurcation (branching), and pruning of weak branches to find optimal solutions in a multidimensional space. Testing its effectiveness across a wide range of tasks yielded unexpected results.

Published article "Hierarchical Risk Parity: A Robust Portfolio Allocator and Expert Advisor".

Hierarchical Risk Parity: A Robust Portfolio Allocator and Expert Advisor

We implement a Hierarchical Risk Parity allocator in MQL5 as a single class, validate each stage against an independent Python reference, and package it in a rebalancing Expert Advisor. The pipeline covers returns, covariance/correlation, clustering, quasi-diagonalization, and recursive bisection, and contrasts HRP with Markowitz on stressed data. You finish with a verified allocator and an EA ready for basket-level testing.

Published article "Exporting Symbol Tick Data to Binary Files in MQL5 for Offline Analysis".

Exporting Symbol Tick Data to Binary Files in MQL5 for Offline Analysis

The article delivers a complete, verifiable tick export path from MQL5 to a binary file and into Python. It defines a 64‑byte header, 48‑byte records with millisecond time and flags, an export pipeline using CopyTicksRange(), and a single‑call NumPy loader. Users obtain compact, precision‑preserving files and a reproducible workflow for vectorized analysis.

Published article "How to Detect and Normalize Chart Objects in MQL5 (Part 4): Fully Automated Analytical Objects System".

How to Detect and Normalize Chart Objects in MQL5 (Part 4): Fully Automated Analytical Objects System

This part extends the series with a modular, event-driven MQL5 pipeline: swing detection feeds an object placer for trendlines, SR, Fibonacci, channels, and pitchforks; evaluators monitor interactions and generate signals; adaptive logic executes trades with valid stops per instrument. The topology manager synchronizes placement, scanning, and processing. The code is structured into reusable components for easy reuse and scaling.

Published article "Neural Networks in Trading: Effective Feature Extraction for Accurate Classification (Building Objects)".

Neural Networks in Trading: Effective Feature Extraction for Accurate Classification (Building Objects)

Mantis is a versatile tool for in-depth time series analysis that can be flexibly scaled to accommodate any financial scenario. Learn how a combination of patching, local convolutions, and cross-attention enables a highly accurate interpretation of market patterns.

Published article "Analysis of the Impact of Solar and Lunar Cycles on Currency Exchange Rates".

Analysis of the Impact of Solar and Lunar Cycles on Currency Exchange Rates

What if lunar cycles and seasonal patterns influence the foreign exchange markets? This article shows how to translate astrological concepts into the language of mathematics and machine learning. I built a Python system with 88 features based on astronomical cycles, trained CatBoost on 15 years of EURUSD data, and obtained some intriguing results. The code is open-source, the methods are verifiable, and the conclusions are unexpected — ancient wisdom meets gradient boosting.

More than 600 new charts published:

Chart AUDUSD, M30, 2026.08.04 04:53 UTC, HF Markets (SV) Ltd., MetaTrader 4, Demo
AUDUSD, M30
График GER40, D1, 2026.08.04 04:57 UTC, Pepperstone Markets Kenya Limited, MetaTrader 4, Real
GER40, D1
Chart XAUUSDm, M30, 2026.08.04 21:18 UTC, Exness Technologies Ltd, MetaTrader 5, Real
XAUUSDm, M30

The most downloaded free products:

1...121314151617181920212223242526...691