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 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.

There are more than 153,830 topics available on forum

4 new topics on forum:

and 1 more...

15 new signals now available for subscription:

RAZYOB
151% 31 trades
Growth:150.87%
Equity:250.87USD
Balance:250.87USD
Gold PMG EA
81% 156 trades
Growth:81.33%
Equity:331.55USD
Balance:331.55USD
ET2
55% 387 trades
Growth:54.59%
Equity:2,619.52USD
Balance:2,619.52USD
and 12 more...
There are more than 2,950 articles published on site

Published article "Engineering Trading Discipline into Code (Part 7): Automating Equity Protection Through Governance Logic".

Engineering Trading Discipline into Code (Part 7): Automating Equity Protection Through Governance Logic

Automated trading systems often focus heavily on signal generation while neglecting the mechanisms required to protect capital during periods of stress. This article presents an Equity Governance Framework in MQL5 that monitors drawdown conditions, evaluates equity pressure, and dynamically controls trading activity through a state-driven risk management model. By combining drawdown analysis, cooldown logic, trade authorization, and execution restrictions, the framework demonstrates how trading discipline can be engineered directly into code using a modular and extensible architecture.

Published article "Neural Networks in Trading: Hierarchical Skill Discovery for Adaptive Agent Behavior (HiSSD)".

Neural Networks in Trading: Hierarchical Skill Discovery for Adaptive Agent Behavior (HiSSD)

In this article, we explore the HiSSD framework, which combines hierarchical learning and multi-agent approaches to create adaptive systems. We examine in detail how this innovative methodology helps uncover hidden patterns in financial markets and optimize trading strategies in decentralized environments.

Published article "Beyond GARCH (Part V): Fitting the Multifractal Spectrum in MQL5".

Beyond GARCH (Part V): Fitting the Multifractal Spectrum in MQL5

This article builds the Spectrum Fitter: from tau(q) we compute f(alpha) with a discrete Legendre transform, then fit Normal, Binomial, Poisson, and Gamma spectra under box constraints using BLEIC. The best model by SSE is selected, and its parameters (eg, alpha min, alpha max or alpha_0, gamma) become the cascade inputs for multifractal simulation.

Published article "Carry Trade Logic in MQL5: Building an EA That Factors Swap Rates Into Position Sizing and Holding Decisions".

Carry Trade Logic in MQL5: Building an EA That Factors Swap Rates Into Position Sizing and Holding Decisions

Most retail traders ignore overnight swap rates, but for long-term positions, these interest payments can make or break your strategy. This article shows you how to build a dynamic MQL5 module that retrieves real-time swap data and converts it into actual profit or loss in your account currency. You will learn how to program an Expert Advisor that automatically calculates if a trade is worth holding based on carry income and adjusts your position size to account for expected interest. It is a practical guide to turning a hidden cost into a mathematical advantage for your trading systems.

Published article "Exchange Market Algorithm (EMA)".

Exchange Market Algorithm (EMA)

The article presents a detailed analysis of the Exchange Market Algorithm (EMA) inspired by the behavior of stock market traders. The algorithm simulates stock trading, where market participants with varying levels of success employ different strategies to maximize profits.

The most downloaded free products:

More than 1200 new charts published:

Grafico GBPJPY, M15, 2026.06.08 21:39 UTC, FxPro Markets Ltd., MetaTrader 5, Real
GBPJPY, M15
Gráfico EURUSD, H1, 2026.06.08 20:24 UTC, MetaQuotes Ltd., MetaTrader 5, Demo
EURUSD, H1
Gráfico GBPUSD, H1, 2026.06.08 00:02 UTC, AT Global Markets Intl Ltd, MetaTrader 4, Demo
GBPUSD, H1
There are more than 52,290 products available in Market

Bestsellers in the Market:

18 new signals now available for subscription:

Multi EA combo
354% 12464 trades
Growth:353.88%
Equity:2,234.28EUR
Balance:2,269.41EUR
Xauusd H1
299% 1136 trades
Growth:298.56%
Equity:18,471.14EUR
Balance:18,471.14EUR
XAUUSDSIGNALMT4
127% 243 trades
Growth:126.74%
Equity:339.05USD
Balance:435.87USD
and 15 more...

2 new topics on forum:

Published article "Developing a Multi-Currency Expert Advisor (Part 28): Adding a Position Closing Manager".

Developing a Multi-Currency Expert Advisor (Part 28): Adding a Position Closing Manager

When running multiple strategies in parallel, you may want to periodically close all open positions and start the strategies over again. The existing code only allows this behavior to be implemented through manual intervention. Let's try to automate this part.

Published article "MQL5 Wizard Techniques you should know (Part 93): Using Suffix Automation and an Auto Encoder in a Custom Money Management Class".

MQL5 Wizard Techniques you should know (Part 93): Using Suffix Automation and an Auto Encoder in a Custom Money Management Class

For this article we switch to a custom MQL5 Wizard class implementation that explores Money Management. We are labelling our custom class ‘CMoneySuffixAE’ that we derive by combining the Suffix Automaton algorithm with an Autoencoder neural network. As always, this formulation is testable with MQL5 Wizard Assembled Expert Advisors that can be tuned with various entry signals and trailing stop approaches.

Published article "Price Action Analysis Toolkit Development (Part 71): Weekend Gap Structure Mapping in MQL5".

Price Action Analysis Toolkit Development (Part 71): Weekend Gap Structure Mapping in MQL5

The article delivers an object-based MQL5 implementation that detects weekend gaps from time discontinuities and renders them directly on the chart. It manages graphical objects, tracks state transitions (fresh, partial, reaction, filled), and preserves completed gaps as historical zones. The result is a reproducible framework for monitoring how price revisits and fills weekend gap structures.

Published article "Building an Object-Oriented Z-Score Statistical Arbitrage Engine in MQL5".

Building an Object-Oriented Z-Score Statistical Arbitrage Engine in MQL5

This article shows how to implement a production Z-Score engine in MQL5 using an object-oriented include file, the library computes a rolling mean and population standard deviation, exposes a shift parameter for historical queries, and avoids redundant tick work by running on bar close. An Expert Advisor executes rule-based entries at positive/negative sigma thresholds and closes on mean reversion; a custom indicator provides visual verification.

Published article "Neural Networks in Trading: Anomaly Detection in the Frequency Domain (Final Part)".

Neural Networks in Trading: Anomaly Detection in the Frequency Domain (Final Part)

We continue to work on implementing the CATCH framework, which combines the Fourier transform and frequency patching mechanisms, ensuring accurate detection of market anomalies. In this article, we complete the implementation of our own vision of the proposed approaches and test the new models on real historical data.

Published article "Market Simulation: Getting started with SQL in MQL5 (I)".

Market Simulation: Getting started with SQL in MQL5 (I)

In today's article we will begin studying the use of SQL in MQL5 code. We will also look at how to create a database. Or, more precisely, how to create a SQLite database file using the features built into MQL5. We will also see how to create a table, and then how to establish a relationship between tables by using primary and foreign keys. All of this, once again, will be done with MQL5. We will see how easy it is to create code that can later be migrated to other SQL implementations by using a class that helps hide the implementation being created. And, most importantly, we will see that at various points we may face the risk that something will go wrong when using SQL. This happens because, in MQL5 code, SQL code will always be placed inside a string.

Published article "Implementing a Breakeven Mechanism in MQL5 (Part 2): ATR- and RRR-Based Breakeven".

Implementing a Breakeven Mechanism in MQL5 (Part 2): ATR- and RRR-Based Breakeven

This article completes the implementation of ATR- and RRRR-based breakeven mechanisms in MQL5 and develops, from scratch, a class that makes it easy to switch breakeven modes without having to enter the parameters again. To evaluate the effectiveness of each breakeven type, several backtests are run, analyzing their advantages and disadvantages in the context of algorithmic trading.

New publications in CodeBase

  • Universal Breakout Study Universal Breakout Study is a research-focused Expert Advisor for MetaTrader 5 designed to analyze and optimize range breakout strategies. It provides flexible parameter testing, fast optimization, and a structured framework for validating trading ideas using historical data and forward testing.
  • Institutional Ornstein-Uhlenbeck Equilibrium Matrix An econometric price-space indicator that utilizes the Ornstein-Uhlenbeck stochastic process to mathematically estimate the asset's true driftless equilibrium and its speed of mean reversion.

The most downloaded free products:

There are more than 52,210 products available in Market

The most popular forum topics:

Bestsellers in the Market:

Most downloaded source codes this week

  • 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.
  • Prime Quantum AI — TRADE WITH AI (Anthropic Claude, OpenAI GPT, Google Gemini, DeepSeek, xAI Grok). Prime Quantum AI is an MT5 Expert Advisor combining a classical pre-filter (ADX + Alligator) with AI vision-based chart confirmation from major AI providers (Anthropic Claude, OpenAI GPT, Google Gemini, DeepSeek, xAI Grok). When the pre-filter detects a trend setup, the EA captures three adaptive- timeframe chart screenshots and sends them to the configured AI provider, which returns direction, confidence, stop-loss and take-profit. A trade is opened only when the AI confirms the pre-filter signal with sufficient confidence. Features: dual Standard Broker / Prop Firm risk modes, configurable lot sizing, optional martingale, multiple SL/TP modes, trailing stop, partial close, news/time/day/spread filters, draggable on-chart info panel, and fully exposed indicator parameters. Requires MetaTrader 5, WebRequest enabled for your provider's URL, and a valid API key. Provider auto-detected from key format.
  • MQL5 Programming for Traders – Source Codes from the Book. Part 1 The first chapter of the book introduces the MQL5 language and development environment. One of the new features introduced in the MQL5 language compared to MQL4 (MetaTrader 4 language) is support for object-oriented programming (OOP), which makes it similar to C++.

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.

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.

12 new signals now available for subscription:

PeuEagleFox
299% 253 trades
Growth:299.39%
Equity:7,777.99BRL
Balance:7,857.19BRL
GOLD HUAT EA
209% 640 trades
Growth:208.83%
Equity:23,221.47USD
Balance:23,221.47USD
Hedge 1000
186% 274 trades
Growth:185.65%
Equity:14,715.00USD
Balance:15,314.34USD
and 9 more...

1 new topic on forum:

More than 1000 new charts published:

Graphique EURUSD., H4, 2026.06.05 20:45 UTC, Orbex Global Ltd, MetaTrader 4, Real
EURUSD., H4
차트 GBPUSD, H1, 2026.06.05 22:20 UTC, Titan FX Limited, MetaTrader 4, Real
GBPUSD, H1
图表 USDJPYb, M2, 2026.06.05 20:03 UTC, HF Markets (SV) Ltd., MetaTrader 4, Demo
USDJPYb, M2

The most downloaded free products:

There are more than 52,110 products available in Market

Bestsellers in the Market:

12 new signals now available for subscription:

XAUUSD 03
462% 727 trades
Growth:461.89%
Equity:897.08USD
Balance:897.08USD
Precision BTC AI 2
294% 279 trades
Growth:293.72%
Equity:118.76USD
Balance:118.76USD
Gold Challenge
145% 98 trades
Growth:144.88%
Equity:434.81USD
Balance:434.81USD
and 9 more...

4 new topics on forum:

and 1 more...

The most downloaded free products:

17 new signals now available for subscription:

Zona
249% 298 trades
Growth:249.30%
Equity:901.13USD
Balance:901.13USD
GOLD SUPERB
186% 840 trades
Growth:186.33%
Equity:1,431.64USD
Balance:1,431.64USD
WizzardX
155% 475 trades
Growth:154.88%
Equity:2,612.45EUR
Balance:2,612.45EUR
and 14 more...
There are more than 52,030 products available in Market

Bestsellers in the Market:

There are more than 2,940 articles published on site

Published article "Interactive Supply and Demand Zone Manager in MQL5 (Part I): From Manual to Automated Lifecycle".

Interactive Supply and Demand Zone Manager in MQL5 (Part I): From Manual to Automated Lifecycle

Replace static drawings with automated, stateful zones controlled by a CZone wrapper. The system synchronizes user rectangles, sizes zones by ATR, validates breakouts using consecutive closes, applies ghost/deactivation rules, merges nearby structures by a 1.5×ATR threshold, and projects edges forward. Traders gain durable levels that update themselves and reduce repetitive chart management.

Published article "Market Microstructure in MQL5 (Part 4): Volatility That Remembers".

Market Microstructure in MQL5 (Part 4): Volatility That Remembers

This article adds eight volatility functions to MicroStructure_Foundation.mqh, including realized volatility, duration-adjusted volatility, fractional volatility, a FIGARCH-inspired proxy, a volatility clustering index, a GJR-GARCH asymmetry measure (using the Dube library), bipower-variation jump detection, and a wrapper function. The MFDFA implementation is revised to return the conventional Legendre-transform Δα with an R² confidence field, replacing the τ-spread proxy used in the original submission. Thresholds are derived from 514 NY sessions of NQ E-mini Nasdaq 100 futures (May 2024–May 2026); no new include file is created.

Published article "From Basic to Intermediate: Objects (II)".

From Basic to Intermediate: Objects (II)

In today's article, we will look at how to control some object properties in a simple way using code. We will also see how a custom application can place more than one object on the same chart. In addition, we will begin to understand the importance of assigning a short name to any indicator we plan to implement.

Published article "Market Simulation (Part 24): Getting Started with SQL (VII)".

Market Simulation (Part 24): Getting Started with SQL (VII)

In the previous article, we completed the necessary introduction to SQL. And, in my opinion, we properly clarified what we wanted to show and explain about SQL. This was done so that anyone who comes to look at the market replay/simulation system being built can at least get an idea of what may be happening there. The point is that there is no sense in programming things that SQL handles perfectly.

Published article "Analyzing Price Time Gaps in MQL5 (Part II): Creating a Heat Map of Liquidity Distribution Over Time".

Analyzing Price Time Gaps in MQL5 (Part II): Creating a Heat Map of Liquidity Distribution Over Time

A detailed guide on how to create a heat map indicator for MetaTrader 5 that visualizes the price distribution over time. The article reveals the mathematical basis of time density analysis, where each price level is colored from red (minimum stay time) to blue (maximum stay time).

Published article "From Basic to Intermediate: Function Pointers".

From Basic to Intermediate: Function Pointers

You have probably already heard about pointers when it comes to programming. But did you know that we can use this kind of data here in MQL5? Of course, this must be done in a way that keeps us in control and avoids strange program behavior during execution. Still, because this is a feature with a very specific purpose and aimed at particular kinds of tasks, it is rare to hear anyone discuss what a pointer is and how to use it in MQL5.

Published article "Market Simulation (Part 23): Getting Started with SQL (VI)".

Market Simulation (Part 23): Getting Started with SQL (VI)

In this article, we will see how to visualize a database and, from that, understand how it is structured. This is done by analyzing the database’s internal structure. Although this may seem unnecessary at first, it is fully justified if we really want to become database administrators. After all, some people make a living maintaining and designing databases.

1...121314151617181920212223242526...683