Find us on Facebook!
Join our fan page

Use new possibilities of MetaTrader 5

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.

Most downloaded source codes this month

  • Quantum XAUUSD Silver Trader Multi-indicator EA for Gold (XAUUSD) and Silver (XAGUSD): RSI, ADX and MA signals, adaptive ATR trailing stop and built-in capital protection.
  • 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.
  • XANDER Grid XAUUSD Bidirectional grid EA for Gold (XAUUSD). Ideal for ProCent accounts. Includes Daily Profit Target and Max Drawdown protection.

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.

More than 400 new charts published:

График BTCUSD, H1, 2026.07.07 19:20 UTC, AMarkets LLC, MetaTrader 5, Real
BTCUSD, H1
График DJIUSD, M5, 2026.07.07 19:20 UTC, Sarmaye Gozare Bartar Ltd., MetaTrader 5, Demo
DJIUSD, M5
차트 XAUUSD, M15, 2026.07.07 19:09 UTC, Vantage Markets (Pty) Ltd, MetaTrader 5, Real
XAUUSD, M15

6 new topics on forum:

and 3 more...

Published article "Neural Networks in Trading: Time Series Forecasting Using Adaptive Modal Decomposition (Final Part)".

Neural Networks in Trading: Time Series Forecasting Using Adaptive Modal Decomposition (Final Part)

The article discusses the adaptation and practical implementation of the ACEFormer framework using MQL5 in the context of algorithmic trading. It presents key architectural decisions, training features, and model testing results on real data.

Published article "Neural Networks in Practice: Practice Makes Perfect".

Neural Networks in Practice: Practice Makes Perfect

In today's article, we will see how a simple code change that makes a neuron slightly more specialized can significantly speed up the training stage. After all, once a neuron or neural network, as we will see later, has been trained, the work it performs becomes much faster. We will also discuss a problem that exists but is rarely mentioned.

Published article "From Basic to Intermediate: Object Events (III)".

From Basic to Intermediate: Object Events (III)

In this article, we will prepare the foundation for what will be covered in the next publication. We will also look at how to make an OBJ_LABEL object fully interactive for editing and moving. In other words, we can change both the text and the position of the OBJ_LABEL object without opening the Object Properties dialog.

Published article "Detecting and Visualizing Outlier Bars in MQL5 Using Modified Z-Score on OHLCV Features".

Detecting and Visualizing Outlier Bars in MQL5 Using Modified Z-Score on OHLCV Features

Abnormal bars inflate mean and standard deviation estimates, distorting ATR, Bollinger Bands, and moving averages. We implement a native MQL5 indicator that detects such bars with the Modified Z-Score applied to four features: body, upper wick, lower wick, and tick volume. The indicator marks flagged bars on the chart and plots a composite score in a separate subwindow, helping you diagnose contamination in rolling-window indicators.

Published article "Engineering a Self-Healing Expert Advisor in MQL5 (Part 5): Real-Time Recovery Dashboard (Final Part)".

Engineering a Self-Healing Expert Advisor in MQL5 (Part 5): Real-Time Recovery Dashboard (Final Part)

This article implements a real-time monitoring dashboard for a self-healing MetaTrader 5 Expert Advisor. The dashboard displays the current EA state, virtual stop-loss and take-profit levels, breakeven and trailing status, recovery state, synchronization status, and heartbeat information directly on the chart. By exposing the internal recovery state visually, the Expert Advisor becomes easier to monitor, verify, and troubleshoot while managing active trades.

Published article "Building Automated Daily Trading Reports with the SendMail Function".

Building Automated Daily Trading Reports with the SendMail Function

We build an MQL5 Expert Advisor that emails a structured daily trading report. The article shows how to configure SMTP in MetaTrader 5, collect and filter closed trades for the previous day, compute totals for profit, wins, losses, and trade count, and assemble account details into the subject and body. You also schedule one send per day and prevent duplicates using daily candle detection.

Published article "CSV Data Analysis (Part 6): Multi-Broker Result Normalization and Cross-Platform CSV Reconciliation".

CSV Data Analysis (Part 6): Multi-Broker Result Normalization and Cross-Platform CSV Reconciliation

This article presents a multi‑broker CSV normalization framework. An MQL5 include file enriches exports with broker metadata. A Python module resolves schema divergences — pip conventions, symbol aliases, time offsets, commission models, and currency denomination — producing a unified canonical dataset. Comparative visualizations of slippage distributions and net‑of‑cost performance enable reliable cross‑platform strategy analysis without silent data corruption.

The most downloaded free products:

There are more than 53,700 products available in Market

5 new topics on forum:

and 2 more...

17 new signals now available for subscription:

TwoFace High Risk
375% 619 trades
Growth:375.30%
Equity:12,496.02USD
Balance:12,496.02USD
Tradefx
132% 176 trades
Growth:132.02%
Equity:146.16USD
Balance:190.68USD
AST CARRY
120% 269 trades
Growth:119.98%
Equity:4,112.63EUR
Balance:4,608.04EUR
and 14 more...

Bestsellers in the Market:

Published article "Low-Frequency Quantitative Strategies in MetaTrader 5 (Part 4): A Volatility-Adjusted Momentum-Based Intraday System".

Low-Frequency Quantitative Strategies in MetaTrader 5 (Part 4): A Volatility-Adjusted Momentum-Based Intraday System

We present a timer-based MQL5 EA for Opening Range Breakout aligned to NYSE hours. It screens “Stocks in Play” via opening-range relative volume, enforces price/volume/ATR minimums, sizes positions by risk, and exits at 16:00 ET. A Sharpe-ranked optimization across 30 liquid Nasdaq stocks and a single-symbol test are provided, together with backtest settings and an Excel report for verification.

Published article "Automating Classic Market Methods in MQL5 (Part 3): Stan Weinstein Stage Analysis".

Automating Classic Market Methods in MQL5 (Part 3): Stan Weinstein Stage Analysis

This article presents a complete Expert Advisor built around Stan Weinstein's Stage Analysis method. The EA classifies the market into one of four stages using the 30-week moving average slope and position and volume behavior, then trades only Stage 2 breakouts long and Stage 4 breakdowns short. It explains each stage, how to detect it programmatically, and why the method's discipline—trading only in the correct stage—is what produces the edge.

Published article "Feature Engineering for ML (Part 10): Structural Break Tests in MQL5".

Feature Engineering for ML (Part 10): Structural Break Tests in MQL5

We port AFML Chapter 17 structural break tests to MQL5 as a single include, CStructuralBreaks, delivering six bar-indexed features for EAs: CSW statistic and critical value, Chow-Type DFC, SADF with a rolling lookback (default 252), SM-Exp, and SM-Power. SADF uses O(L²) rolling windows for real-time viability. A companion StructuralBreaksViewer indicator plots all series with per‑series visibility and optional z‑score normalization. SB_EMPTY marks invalid values for safe integration.

The most downloaded free products:

7 new topics on forum:

and 4 more...

Bestsellers in the Market:

There are more than 53,610 products available in Market

7 new signals now available for subscription:

Genesis FX Performer
114% 2306 trades
Growth:114.48%
Equity:3,217.13USD
Balance:3,217.13USD
Variety Pack
77% 174 trades
Growth:76.59%
Equity:5,923,337.00JPY
Balance:5,923,337.00JPY
Ultimate Bot 2 No Grids
45% 51 trades
Growth:44.78%
Equity:1,334.70GBP
Balance:1,334.70GBP
and 4 more...

Most downloaded source codes this week

  • 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 week

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.

Building a Viewport SnR Volume Profile Indicator in MQL5

Building a Viewport SnR Volume Profile Indicator in MQL5

We build a Support and Resistance Volume Profile indicator that adapts to the current viewport in MetaTrader 5. You will learn viewport detection, dynamic SnR identification, zoom‑driven bin sizing, min‑max volume scaling, and fast on‑chart rendering controlled by OnChartEvent. This approach expresses the relative strength of SnR levels with volume, keeping the chart focused on actionable reaction zones.

The most popular forum topics:

New publications in CodeBase

  • BBandsPsar BBandsPsar is a custom hybrid indicator that fuses Bollinger Bands’ volatility framework with the Parabolic SAR’s trend-following logic. By integrating these two methodologies, it effectively reconciles market volatility with emerging trend dynamics within a single, cohesive tool.
  • Execution Cost Sensitivity Analyzer A pure-MQL5 script that measures how robust a strategy's edge is to execution costs. It reads a Date,Profit,Volume CSV of closing deals and models each deal's cost as a fixed part plus a per-lot part. It prints the breakeven cost per deal, the cushion (the multiple of an assumed realistic cost at which the net profit reaches zero), the net profit and profit factor re-priced at the assumed cost, the share of winners the cost turns into losers, and a composite A+ to F cost-robustness score with recommendations. If no file is present it generates a reproducible sample and analyzes it, so the output is visible on the first run. No external libraries, no Python, no AI.
  • BBandsPsar BBandsPsar is a custom hybrid indicator that fuses Bollinger Bands’ volatility framework with the Parabolic SAR’s trend-following logic. By integrating these two methodologies, it effectively reconciles market volatility with emerging trend dynamics within a single, cohesive tool.

Bestsellers in the Market:

The most downloaded free products:

There are more than 53,510 products available in Market

5 new topics on forum:

and 2 more...

More than 200 new charts published:

Gráfico XAUUSD.s, M5, 2026.07.02 10:36 UTC, PU Prime Ltd, MetaTrader 5, Real
XAUUSD.s, M5
Chart XAUUSD, M15, 2026.07.02 18:38 UTC, HF Markets (SV) Ltd., MetaTrader 4, Demo
XAUUSD, M15
Chart BTCUSD, M15, 2026.07.04 14:13 UTC, Exness Technologies Ltd, MetaTrader 5, Demo
BTCUSD, M15

11 new signals now available for subscription:

GoldBull fangqingping
44% 161 trades
Growth:43.84%
Equity:1,582.22USD
Balance:1,582.22USD
Gold Operator
30% 165 trades
Growth:30.39%
Equity:13,039.27EUR
Balance:13,039.27EUR
Qushiwangge
26% 757 trades
Growth:25.80%
Equity:2,520.12USD
Balance:2,516.02USD
and 8 more...

The most downloaded free products:

There are more than 53,440 products available in Market

Bestsellers in the Market:

4 new topics on forum:

and 1 more...

18 new signals now available for subscription:

Perpetual Wisdom MT5
270% 204 trades
Growth:270.41%
Equity:1,311.73USD
Balance:1,299.59USD
Deep Insight
127% 48 trades
Growth:126.79%
Equity:300.69USD
Balance:300.69USD
RockSolid Capital MT5
84% 206 trades
Growth:83.67%
Equity:1,139.54USD
Balance:1,139.54USD
and 15 more...
There are more than 3,060 articles published on site

Published article "Training a nonlinear U-Transformer on the residuals of a linear autoregressive model".

Training a nonlinear U-Transformer on the residuals of a linear autoregressive model

The article presents an innovative hybrid system for forecasting exchange rates that combines a linear autoregressive model with a U-Transformer architecture for residual analysis. The system automatically switches between signal sources depending on their quality and includes complete trading logic with averaging/pyramiding strategies. The key advantage of this approach is that the neural network is trained on the residuals of the linear model, which simplifies the task and reduces the risk of overfitting. The implementation is done entirely in MQL5 and is ready for use in real trading with automatic adaptation to changing market conditions.

Published article "Building a Viewport SnR Volume Profile Indicator in MQL5".

Building a Viewport SnR Volume Profile Indicator in MQL5

We build a Support and Resistance Volume Profile indicator that adapts to the current viewport in MetaTrader 5. You will learn viewport detection, dynamic SnR identification, zoom‑driven bin sizing, min‑max volume scaling, and fast on‑chart rendering controlled by OnChartEvent. This approach expresses the relative strength of SnR levels with volume, keeping the chart focused on actionable reaction zones.

Published article "Feature Engineering for ML (Part 9): Structural Break Tests in Python".

Feature Engineering for ML (Part 9): Structural Break Tests in Python

We present a production‑ready implementation of AFML Chapter 17 structural break tests. The module includes Chu-Stinchcombe-White (one-/two-sided), Chow-type DFC, SADF across six models (linear, quadratic, sm poly 1, sm poly 2, sm exp, sm power), plus QADF (q, v) and CADF (q), returning bar-indexed scalar features. We address the book snippets' scaling issues and argument‑order pitfall, and show how a fixed lookback (L=504) bounds SADF cost to O(L²) per bar for regime detection.

Published article "Neural Networks in Trading: Time Series Forecasting Using Adaptive Modal Decomposition (ACEFormer)".

Neural Networks in Trading: Time Series Forecasting Using Adaptive Modal Decomposition (ACEFormer)

We invite you to explore the ACEFormer architecture — a modern solution that combines the effectiveness of probabilistic attention with adaptive time series decomposition. This article will be useful for those seeking a balance between computational performance and forecast accuracy in financial markets.

Published article "Beyond Maximum Drawdown: Building a Drawdown DNA Analyzer in MQL5".

Beyond Maximum Drawdown: Building a Drawdown DNA Analyzer in MQL5

Maximum drawdown is one number that hides what really matters: how often an equity curve declines, how long it stays below a previous peak, and how quickly it recovers. This article builds a native MQL5 tool that reconstructs the underwater curve, breaks it into individual drawdown episodes (depth, duration, recovery time), computes the Ulcer Index, Pain Index, and Recovery Factor, and combines them into a single resilience grade with practical recommendations. No external libraries, no Python, no AI.

Published article "Building Volatility Models in MQL5 (Part IV): Implementing Long Memory Volatility Processes, FIGARCH, and HARCH".

Building Volatility Models in MQL5 (Part IV): Implementing Long Memory Volatility Processes, FIGARCH, and HARCH

The article delivers MQL5 implementations of FIGARCH and HARCH and updates the volatility library for long‑memory processes. It provides code for Hurst and GPH testing, parameter setup (truncation and horizons), and scripts for fitting, forecasting, and simulations. Readers learn how to apply and compare the models on market data to select an appropriate specification.

The most downloaded free products:

Bestsellers in the Market:

There are more than 154,050 topics available on forum

5 new topics on forum:

and 2 more...
1...91011121314151617181920212223...681