Published article "A Reinforcement Learning System for Algorithmic Trading in MQL5".

The article describes the development of a multi-agent machine learning system for algorithmic trading on MetaTrader 5 based on reinforcement learning. The system has a three-tier architecture: memory neurons store experience, agents make independent decisions, and the collective mind combines them through weighted voting. The system is continuously improved through Q-learning, pruning of ineffective neurons, and evolutionary reduction of exploration.
Published article "How We Built the Most Powerful Machine Learning-Powered Trading Platform: The Evolution of MQL and MetaTrader Through Archives, Forums, and Releases".

A technical history of MQL evolution: from the limited MQL and MQL II languages, through procedural MQL4, to object-oriented MQL5 with native compilation, rich APIs, and a full-fledged engineering environment. We show here the key capabilities of the language and its integrations with Python, OpenCL, ONNX, OpenBLAS, databases, DirectX, the agentic AI Assistant, and the Model Context Protocol (MCP), which connects AI systems with the terminal, MetaEditor, market data, trading operations, and development tools. This article examines archival materials on the origins of MetaQuotes and MetaTrader, the launch of MQL4.COM and MQL5.COM, the championships, Algo Forge, and their impact on the ecosystem.
Published article "Neural Networks in Trading: A Cross-Domain Time Series Forecasting Framework (TimeFound)".

In this article, we build the core of the TimeFound intelligent model step by step, adapting it to real-world time series forecasting tasks. If you are interested in the practical implementation of neural network patching algorithms in MQL5, you have come to the right place.
Published article "Exporting Custom Indicator Buffers to CSV for Python Backtesting Pipelines".

We build a CSV exporter for MQL5 custom indicators that preserves the exact values seen on the chart. The script creates the indicator handle with iCustom, waits for BarsCalculated, aligns buffers to CopyRates, and writes a locale-safe CSV that pandas loads with parsed dates and NaN for warm-up bars. It addresses compile-time argument limits, jagged-array workarounds, and EMPTY_VALUE handling, enabling reliable Python backtests without re-coding the indicator.
Published article "Building a Volume-Based Liquidity Heatmap Indicator in MQL5".

This article implements an MQL5 Liquidity Heatmap that infers likely liquidation zones from price and volume. It qualifies bars with a rolling volume SMA, computes leverage-based liquidation levels from candle extremes, ranks signals across two volume modes, and manages chart objects (lines and bubbles) that extend until price crosses them, allowing you to highlight potential stop-hunt areas and strengthen structural analysis.
Published article "Implementing and Benchmarking Bag-of-SFA-Symbols (BOSS) Against Dynamic Time Warping (DTW)".

This article implements BOSS from scratch in MQL5 and applies it to regime classification: SFA turns windows into words, bags record word frequencies, and an ensemble over window lengths votes on labels. We cover the encoding steps, the BOSS distance, training with auto-generated regime labels, and practical parameters. A BTCUSD benchmark versus DTW shows higher macro accuracy on clean data and markedly faster inference.
Published article "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.
The most downloaded free products:
Bestsellers in the Market:
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

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?
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:
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.
The most popular forum topics:
- Is this a Good Result for BackTest and Forward Test ? 20 new comments
- GOLD, Gold and XAUUSD 16 new comments
- Pair trading and multicurrency arbitrage. The showdown. 9 new comments
The most downloaded free products:
Bestsellers in the Market:
4 new topics on forum:
- CodeBase indicator submission stuck at 20% - validation detects Expert Advisor instead of Indicator
- MT5 Trendline and Andrew's Pitchfork shift after dragging or extending — possible issue with price coordinate precision limited to symbol digits
- How to handle crypto price differences when testing a BTC trading strategy?
New publications in CodeBase
- Previous Day High Low Open Close Indicator Plots the previous trading day's High, Low and Close as horizontal reference levels across the current session, with optional multi-day history for context. No repainting, no discretion — the levels are read directly from the completed Daily bar
- Trade Adjustment Panel On-chart trade management utility for MetaTrader 5 designed exclusively to adjust existing manual or EA positions. Features one-click controls for Break-Even placement, point offsets, profit locking, trailing stops, Risk-to-Reward (1R–3R) Take Profit targets, and volume-validated partial closures (25%–100%). Includes a draggable chart GUI and filtering by symbol and direction. Does not open new trades.
- Quantora Candle Strength Analyzer MT5 - Buyer Seller Pressure and Wick Analysis Professional open-source Candle Strength Analyzer for MetaTrader 5. Analyzes candle body, upper and lower wicks, buyer/seller pressure, rejection, range expansion and candle strength in real time.
- Quantora Moving Average Dashboard MT5 - Professional EMA SMA Trend Analysis Professional open-source Moving Average Dashboard for MetaTrader 5. Monitors EMA 20, EMA 50, EMA 100, EMA 200, SMA 50 and SMA 200 with price position, trend structure, MA Score and overall market bias.
- Quantora Multi-Timeframe MACD Dashboard MT5 - Professional MACD Momentum Analysis Professional open-source Multi-Timeframe MACD Dashboard for MetaTrader 5. Analyzes MACD Main, Signal and Histogram across M1, M5, M15, M30, H1, H4 and D1 with an overall momentum score and market bias.
- Quantora Multi-Timeframe RSI Dashboard MT5 - Professional RSI Momentum Analysis Professional open-source Multi-Timeframe RSI Dashboard for MetaTrader 5. Analyzes RSI across M1, M5, M15, M30, H1, H4 and D1 to monitor momentum, overbought and oversold conditions in real time.
- Quantora Multi-Timeframe Trend Dashboard MT5 - Professional EMA Trend Analysis Professional open-source Multi-Timeframe Trend Dashboard for MetaTrader 5. Analyzes M1 to D1 using EMA 20, EMA 50 and price position to identify Bullish, Bearish and Neutral market conditions.
- Quantora Market Volatility Monitor MT5 - Professional ATR and Volatility Dashboard Professional open-source Market Volatility Monitor for MetaTrader 5. Analyzes current ATR, average ATR, ATR ratio, daily range and spread to classify market volatility in real time.
- Quantora Drawdown Monitor MT5 - Professional Account Risk and Drawdown Dashboard Professional open-source Drawdown Monitor for MetaTrader 5. Tracks current, daily and peak-equity drawdown, floating P/L, margin levels and configurable account risk conditions in real time.
- Quantora Trade Statistics Dashboard MT5 - Professional Trading Performance Analytics Professional open-source Trade Statistics Dashboard for MetaTrader 5. Analyzes trading history with win rate, profit factor, reward/risk, streaks, BUY/SELL performance, lot statistics and floating P/L.
- Quantora Symbol Information Dashboard MT5 - Professional Symbol and Trading Specifications Panel Professional open-source Symbol Information Dashboard for MetaTrader 5. Displays live prices, spread, tick value, contract size, lot limits, swaps, trading conditions, daily range and ATR in real time.
- Quantora Trading Session Monitor MT5 - Professional Market Session and Activity Monitor Professional open-source Trading Session Monitor for MetaTrader 5. Tracks Sydney, Tokyo, London and New York sessions, overlaps, countdowns, spread, ATR and real-time market activity.
- Quantora Account Health Monitor MT5 - Professional Account Health and Risk Monitor Professional open-source Account Health Monitor for MetaTrader 5. Monitors balance, equity, margin, drawdown, exposure and trading conditions with a real-time 0-100 Account Health Score.
- Quantora Daily Profit Loss Monitor MT5 - Professional Daily Trading Performance Monitor Professional open-source Daily Profit and Loss Monitor for MetaTrader 5. Tracks daily closed profit, losses, floating P/L, win rate, daily return and configurable profit targets and loss limits.
- Quantora Drawdown Monitor MT5 - Professional Account Risk and Equity Drawdown Monitor Professional open-source Drawdown Monitor for MetaTrader 5. Monitors balance, equity, floating P/L, current drawdown, daily performance, peak equity and maximum drawdown with configurable risk levels.
- Quantora Trading Journal Panel MT5 - Professional Daily Trading Performance Analyzer Professional open-source Trading Journal Panel for MetaTrader 5. Analyzes closed trades and displays win rate, profit factor, net profit, average results and account performance in a real-time dashboard.
- Quantora Trading Clock MT5 - Professional Global Market Time Dashboard Professional open-source Trading Clock for MetaTrader 5. Displays broker server time, local time, UTC and Sydney, Tokyo, London and New York market times with live session status and overlap information.
- Quantora Market Status Dashboard MT5 - Professional Real-Time Market Analysis Pan Professional open-source Market Status Dashboard for MetaTrader 5. Monitor spread, ATR volatility, volume activity, daily range, ADR usage, trading sessions and overall market conditions in real time.
- Quantora Symbol Information Panel MT5 - Professional Trading Specifications Dashboard Quantora Symbol Information Panel MT5 - Professional Trading Specifications Dashboard
- Quantora Pip Value Calculator MT5 - Professional Pip and Point Value Calculator Professional open-source Pip Value Calculator for MetaTrader 5. Calculates broker-specific pip and point values using real symbol specifications, lot size, tick size, tick value and account currency.
- Quantora ADR Calculator MT5 - Professional Average Daily Range Indicator Professional open-source ADR Calculator for MetaTrader 5. Calculates Average Daily Range, current day range, ADR usage percentage, remaining range and projected ADR High/Low levels with a modern Quantora dashboard.
- Quantora Session Clock MT5 - Professional Forex Trading Session Monitor Professional open-source Session Clock for MetaTrader 5. Displays Sydney, Tokyo, London and New York trading sessions with live status, countdown timers, progress bars, overlap information and configurable alerts.
Published article "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".

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

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

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

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

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

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'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:
Bestsellers in the Market:
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.
8 new topics on forum:
- Help Please! I have 2 EAs on 2 seperate accounts, each with their own MT5 VPS. One is working fine but the other has stopped working.
- how do you protect against negative balance with very large algo positions?
- Clarification on running two separate verified accounts from the same household/IP
Published article "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.

















