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.

New publications in CodeBase

  • Asian Session Breakout / BhanuCodeLab Asian Session Breakout identifies the price range formed during the Asian trading session and monitors how price behaves after that session ends. The Asian High and Asian Low remain extended until the end of the broker trading day. This makes the range useful as an intraday support-and-resistance zone during the European and US sessions. A compact dashboard displays the current range values, configured session time, breakout status, breakout confirmation method, and confirmation timeframe. The indicator does not open or manage trades. It provides market structure and breakout information for discretionary trading or EA development.
  • EA Money Management A simple indicator based on trend criteria
  • Footprint XRay (Order Flow Volume Delta) An institutional-grade order flow and footprint chart indicator ported from Pine Script to MQL5. It dynamically deconstructs major timeframe bars using lower timeframe (LTF) historical tick/real volume to compute buy/sell volume delta at each price level. The indicator features automatic timeframe selection, Point of Control (POC) highlighting, Stacked Imbalances, extreme Absorption detection, Unfinished Business (UB) tracking with live mitigation, and real-time alert triggers.
There are more than 3,130 articles published on site

Published article "How To Profile MQL5 Code in MetaEditor".

How To Profile MQL5 Code in MetaEditor

This article profiles a rolling z-score indicator with bands using MetaEditor's built-in sampling profiler. We read the Total CPU and Self CPU columns and follow the heat‑mapped source to the true hotspots, replace window rescans with sliding accumulators, remove a redundant array copy, and honor prev_calculated. The result is the same output with measured samples reduced from roughly 7,050 to 59.

Published article "Creating a Profit Concentration Analyzer in MQL5".

Creating a Profit Concentration Analyzer in MQL5

Net profit and win rate tell you how much a strategy made, not how the result is distributed. This article builds a native MQL5 script that reads your closed trades and measures profit concentration: the top-N trade share, the Gini coefficient of the winners, an outlier-dependence stress test that removes the best few winners, and the largest day against a prop-firm consistency limit. It combines these into one A+ to F score with recommendations, running inside MetaTrader 5.

Published article "Building a Hierarchical Market Structure Framework (Prototype) in MQL5 Using Modular Architecture and Event-Driven Design".

Building a Hierarchical Market Structure Framework (Prototype) in MQL5 Using Modular Architecture and Event-Driven Design

This article describes a prototype reusable market structure framework for MQL5, built with a clean modular architecture and an internal event queue. It shows how to detect swing points, classify break-of-structure and change-of-character events, maintain a deterministic market state, and persist data to CSV. The focus is entirely on software engineering, component separation, and extensibility, not on trading signals. The prototype is a foundation for further development, not a production-ready library.

Published article "Trust Your Backtest Data First: Building a Reproducible Historical Data Audit in Python for MetaTrader 5".

Trust Your Backtest Data First: Building a Reproducible Historical Data Audit in Python for MetaTrader 5

A reproducible, read-only Python audit for MetaTrader 5 that verifies history quality before any backtest. It exports M5 data from multiple terminals, detects gaps and synthetic bars by timestamp spacing, and reports coverage per year. The same deterministic strategy then runs on three broker feeds over a common window to quantify result drift and decompose it into spread, data/price, and trade effects.

The most downloaded free products:

There are more than 54,990 products available in Market

Bestsellers in the Market:

7 new topics on forum:

and 4 more...

16 new signals now available for subscription:

Katd Stable Low Risk Robo 38764
538% 766 trades
Growth:537.84%
Equity:637.47USD
Balance:654.49USD
De Moore ICM
121% 183 trades
Growth:121.36%
Equity:1,015.33USD
Balance:1,015.33USD
GrassbergMiner
92% 120 trades
Growth:92.23%
Equity:500.17USD
Balance:500.17USD
and 13 more...

New publications in CodeBase

  • Value Area Levels / BhanuCodeLab Value Area Levels is a session-based Value Area indicator for MetaTrader 5. It calculates and displays Value Area High, Point of Control, and Value Area Low levels for the developing, previous, and historical profiles.
  • Interactive Supply and Demand Zone Trading Prototype This release introduces a lightweight automated trading prototype built on top of the Interactive Supply and Demand Zone Manager framework. The framework allows traders to draw and manage their own supply and demand zones, while each zone maintains its own lifecycle, interaction history, and evolving state as market conditions change. The hybrid approach combines user-defined zones with automated monitoring, validation, and trade management. The strategy evaluates qualified zones through a structured decision process before generating trade actions. Detailed logging provides visibility into zone behaviour, allowing traders to study interactions and build their own approaches using the collected information.
  • Portfolio Correlation and Margin Risk Calculator Computes the historical Pearson correlation between any set of instruments and the combined margin your account would need to hold all of them at once, as a percentage of your equity. Runs natively in MetaTrader 5 with no external libraries, no Python, and no AI — set your symbol list and lot sizes as inputs and it reports the full matrix in the Experts tab and on the chart, refreshing on a timer.
There are more than 12,180 codes published in Codebase

Published article "Detecting Structural Breakpoints in Price Series Using CUSUM in MQL5 (Part 1): From Statistical Theory to a Working MQL5 Indicator".

Detecting Structural Breakpoints in Price Series Using CUSUM in MQL5 (Part 1): From Statistical Theory to a Working MQL5 Indicator

This article builds a sequential CUSUM breakpoint detector for MetaTrader 5, starting from the statistical construction and ending with a working indicator. It explains standardized log-returns, dual accumulators, the role of k and h, and the ARL₀ baseline from Siegmund. The code walkthrough covers buffer persistence, recalculation handling, idempotent chart objects, and a three-pass engine, so you can compile, attach, and use the detector to flag structural regime shifts earlier than fixed-window smoothers.

Published article "Market Microstructure in MQL5 (Part 8): Micro-Trend Strength".

Market Microstructure in MQL5 (Part 8): Micro-Trend Strength

Part 8 adds bar-by-bar micro-trend scoring for NQ M1. GetMicroTrendStrength() builds a continuous [-1, +1] composite from EMA alignment, ATR‑normalized price position, slope consistency, and volume, with a contradiction penalty to suppress alignment/price conflicts. Session-adaptive thresholds scale by Part 7 confidence to modulate signal frequency across regimes. Outputs include a seven-state label, a binary signal, and a persistence check, calibrated on 514 New York sessions (May 2024–May 2026).

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

From Basic to Intermediate: Random Access (II)

In this article, we will examine how two slightly different approaches can significantly affect the overall implementation strategy, both in performance and in disk I/O design, while helping to prevent compatibility issues between applications.

Published article "MetaTrader 5 Machine Learning Blueprint (Part 19): Bagging Regimes".

MetaTrader 5 Machine Learning Blueprint (Part 19): Bagging Regimes

We test AFML's claim that the sequential bootstrap decorrelates bagged trees on overlapping triple‑barrier labels by isolating two levers: draw count and draw rule. One decision identical tree is bagged under four row‑sampling regimes and evaluated on EURUSD 2022–2023 for draw uniqueness, between‑tree correlation, AUC, and calibration. Decorrelation comes almost entirely from throttling max_samples to average uniqueness; the sequential draw adds little. Out-of-bag inflation is largest under full-count sequential sampling.

Published article "Building an Interactive AnchorFlow Volume Profile Indicator (MTF) in MQL5".

Building an Interactive AnchorFlow Volume Profile Indicator (MTF) in MQL5

We implement an interactive, anchored multi-timeframe volume profile in MQL5 for MetaTrader 5. The indicator draws the current-timeframe profile on the main chart and a higher timeframe profile in a subwindow, both aligned by a draggable anchor and the visible range. You will learn keyboard-driven bin editing (E/S double-click), robust timeframe validation, viewport-aware updates, and object restoration to build a reliable, synchronized volume workflow.

Published article "Algorithmic Arbitrage Trading Using Graph Theory".

Algorithmic Arbitrage Trading Using Graph Theory

In this article, triangular arbitrage is presented as a problem of finding cycles in a directed graph, where the vertices are currencies and the edges are currency pairs with weight rates. Profitable cycle: product of weights >1. Our Floyd-Warshall and DFS algorithms find optimal currency exchange paths that return to the starting point with a profit.

Published article "Monochronic Trading (Part 1): How to Detect Broker Timezone and DST in MQL5".

Monochronic Trading (Part 1): How to Detect Broker Timezone and DST in MQL5

We describe an MQL5 framework that aligns entries with session rhythms and scheduled clock events. A script identifies the broker's time zone and DST by detecting NFP spikes on EURUSD and matching them to EU/US/AU transition dates, producing EA‑ready settings. Session-to-broker time conversion and 15-minute marks constrain execution. A multi‑timeframe AMA signal aggregates trends for strategy selection and optimization.

The most downloaded free products:

More than 300 new charts published:

График EURUSD, H1, 2026.07.18 09:41 UTC, FBS Markets Inc., MetaTrader 5, Demo
EURUSD, H1
Grafico !STD_XAUUSD, M1, 2026.07.18 21:18 UTC, AMarkets LLC, MetaTrader 4, Demo
!STD_XAUUSD, M1
Chart AUDUSD, D1, 2026.07.17 09:59 UTC, MetaQuotes Ltd., MetaTrader 5, Demo
AUDUSD, D1
There are more than 54,910 products available in Market

Bestsellers in the Market:

Most downloaded source codes this week

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

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.

9 new signals now available for subscription:

Autopilot Vibranium Akun Ke 3062
375% 359 trades
Growth:375.23%
Equity:922.36USD
Balance:930.01USD
Simple Hedge Replace EA
107% 152 trades
Growth:107.49%
Equity:207.49USD
Balance:207.49USD
OptimusPrime TZ
85% 101 trades
Growth:84.77%
Equity:361.01USD
Balance:507.83USD
and 6 more...

5 new topics on forum:

and 2 more...

Published article "Market Simulation: Position View (V)".

Market Simulation: Position View (V)

Despite what was shown in the previous article, all of this may seem simple at first. In reality, several problems remain, along with many tasks that still need to be completed. You, dear reader, may imagine that everything is easy and straightforward. Out of inexperience, you may simply accept whatever is presented to you. And that is a mistake you should try to avoid. Even worse is trying to use something without truly understanding what exactly you are using. Beginners often pass through a copy-and-paste stage. If you do not want to remain stuck at that stage forever, you should learn how to use certain tools. One of the tools most often used by programmers is documentation. The second is testing, supported by log files. Here we will see how to do this.

Published article "From Basic to Intermediate: Random Access to Files (I)".

From Basic to Intermediate: Random Access to Files (I)

In today's article, we will explore random access to file contents for the first time. This applies to both writing and reading information stored in a file. However, since the topic is too broad to cover in a single article, we will limit ourselves here to an introduction to random access.

New publications in CodeBase

  • Volume Strength Compass / BhanuCodeLab Volume Strength Compass is a volume-analysis indicator for MetaTrader 5 that evaluates market activity using Relative Volume, candle body strength, close position, and volume intensity. The indicator classifies each candle into different volume conditions such as normal volume, low volume, high volume,climax volume, bullish effort, bearish effort, and absorption. The results are displayed using colored volume columns, background highlights, signal labels, an average-volume line, and a real-time dashboard. The indicator can use tick volume, real volume, or automatically select real volume when available. It also supports alerts on either the current live candle or after candle closure.
  • SMMA Levels MTF / BhanuCodeLab SMMA Levels MTF is a multi-timeframe Smoothed Moving Average indicator for MetaTrader 5. The indicator calculates SMMA values from several selectable timeframes and displays them together on the current chart.
  • Pivot SuperTrend / BhanuCodeLab Pivot SuperTrend BhanuCodeLab is a trend-following indicator that combines confirmed pivot points with an ATR-based trailing trend line to identify market direction, trend reversals, and potential BUY or SELL signals.
  • Trading Performance journal An institutional-grade trading journal and behavioral analytics suite designed to run entirely inside MetaTrader 5. The application is built as a single-file, zero-dependency dashboard that replaces standard terminal objects with a high-performance, double-buffered vector graphics pipeline (CCanvas). It provides real-time quantitative analysis, behavioral risk auditing, a vertical scrollable monthly calendar, and interactive log cards with inline note editing directly on the chart.

The most downloaded free products:

Bestsellers in the Market:

There are more than 54,800 products available in Market

3 new signals now available for subscription:

Gold is Cold 2
21% 118 trades
Growth:21.03%
Equity:6,299.74EUR
Balance:7,215.52EUR
Gold Mind AI conservative
1% 32 trades
Growth:0.62%
Equity:3,113.52AUD
Balance:3,113.52AUD
GoldHunter2026
-45% 527 trades
Growth:-45.26%
Equity:977.32USD
Balance:977.32USD
There are more than 154,220 topics available on forum

4 new topics on forum:

and 1 more...

Bestsellers in the Market:

The most downloaded free products:

There are more than 54,690 products available in Market

16 new signals now available for subscription:

Jibran gz Manual Gold Scalping
488% 245 trades
Growth:487.79%
Equity:84,219.20USD
Balance:83,560.60USD
Gold Shot 361
93% 71 trades
Growth:93.38%
Equity:919.04USD
Balance:919.04USD
MagnuHitam
86% 452 trades
Growth:86.41%
Equity:4,861.13USD
Balance:4,861.13USD
and 13 more...

6 new topics on forum:

and 3 more...

New publications in CodeBase

  • Rainbow Ranga - AKM This indicator is essentially a GPS based on envelope as channel gauging and weather radar for the market wrapped into one. Instead of just giving you a bunch of lines to guess at, it calculates the mathematical "stretch" of the market and combines it with a multi-timeframe trend analysis to tell you exactly where you are. if price is outside band it is some fundamental shift in momentum happening if you are on wrong side then quit and stay away or go with trend on pull backs
  • MACD TradingView Style for MT5 MACD indicator replicating TradingView’s visual style for MT5. 4-colour histogram, SMA-based signal line — values match TradingView bar-for-bar.
There are more than 3,120 articles published on site

Published article "Foundation Models for Trading (Part I): Porting Kronos to Native MQL5".

Foundation Models for Trading (Part I): Porting Kronos to Native MQL5

Kronos is a pretrained transformer that models OHLCV bars the way a language model predicts words. We reimplement its tokenizer/encoder and transformer block in native MQL5, export weights to flat .bin files, and remove Python from runtime entirely. Part 1 delivers preprocessing and BSQ tokenization plus a bit-for-bit verification harness against PyTorch, so you can run the encoder inside MetaTrader 5 with confidence.

Published article "Entropy-Based Market Efficiency Indicator in MQL5: Measuring Randomness in Price Returns Using Approximate Entropy".

Entropy-Based Market Efficiency Indicator in MQL5: Measuring Randomness in Price Returns Using Approximate Entropy

A rolling-window Approximate Entropy oscillator for MQL5, built without external dependencies. Covers the full mathematics of template matching, Chebyshev distance, and the Phi-function derivation before presenting a reusable CApEnCalculator class and a color-zoned subwindow indicator. Includes a synthetic-data verification script and an honest discussion of bias, parameter sensitivity, and computational cost.

Published article "Building a Synthetic Custom Symbol in MQL5 Using Multi-Symbol Price Averaging".

Building a Synthetic Custom Symbol in MQL5 Using Multi-Symbol Price Averaging

This article shows how to build a synthetic custom symbol in MQL5 by averaging OHLC data from multiple instruments into a single derived price series. It covers symbol collection and validation, custom symbol creation and configuration, timestamp alignment, historical reconstruction, and lightweight live updates. The result is a reusable method for creating synthetic instruments suitable for correlation analysis, index-style modeling, indicator development, and strategy testing.

Published article "Beyond the Clock (Part 4): Efficacy of Bars on Trending and Mean-Reversion Strategies".

Beyond the Clock (Part 4): Efficacy of Bars on Trending and Mean-Reversion Strategies

Does better return conditioning buy strategy performance? We hold bar count fixed across time, tick, tick-imbalance, and tick-runs on 60.5 million EURUSD ticks, then meta-label RSI, Bollinger, and ADX/DI entries and score with purged cross-validation. No family delivers a consistent edge; efficacy varies narrowly and the best case fails a permutation test. Readers learn how to control overlap, leakage, and multiple testing in bar studies.

Published article "Market Simulation: Position View (IV)".

Market Simulation: Position View (IV)

Here we will start bringing together different components or applications that were previously completely isolated from each other. Chart Trade, the mouse indicator, and the Expert Advisor had already been linked to one another, but there was still no way to directly display on the chart the positions open on the trading server, which are often managed using a cross-order system. From this point on, this becomes possible, opening the way for various ideas and future implementations. Although we are only beginning to put these components into operation, we already have a direction for further development.

Published article "From Basic to Intermediate: FileSave and FileLoad".

From Basic to Intermediate: FileSave and FileLoad

In today’s article, we will look at several ways to work with the FileSave and FileLoad library functions. Although many people consider them of limited use because of certain limitations or difficulties they create in specific scenarios, properly understanding how these two functions work can save us a great deal of effort at certain points. They are also an excellent way to work with log files.

1...121314151617181920212223242526...687