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

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

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

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

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.
The most downloaded free products:
Bestsellers in the Market:
The most popular forum topics:
- Pair trading and multicurrency arbitrage. The showdown. 50 new comments
- Closing positions by themselves 10 new comments
- Indicators: Second Bars 9 new comments
Published article "Porting the Canonical Catch22 Time-Series Feature Set and Testing It on Volatility Regimes".

We present a native MQL5 implementation of the catch22 feature set: all 22 canonical time-series characteristics in a reusable class validated against pycatch22. Using a leak-free pipeline (chronological split, purging, embargo), we run a three-arm ablation—classic indicators, catch22, and combined—for volatility-regime classification. Finally, we deploy the combined model as a Strategy Tester regime filter to quantify its impact on a simple baseline strategy.
Published article "Real-Time Trade Event Logger to SQLite via MQL5 DLL Bridge".

The article shows how to build an MQL5 EA that writes every deal to an SQLite database the moment it appears, using the built-in Database API as the SQLite bridge. It implements an event data model, a prepared INSERT workflow reused across calls, session-safe recovery after restarts, and deal detection via OnTrade(). You can open the resulting file with any SQLite client to run queries for analysis and reporting.
Published article "Neural Networks in Trading: Effective Feature Extraction for Accurate Classification (Mantis)".

Meet Mantis — a lightweight foundation model for time series classification based on a Transformer architecture, featuring contrastive pre-training and hybrid attention that deliver record-breaking accuracy and scalability.
Published article "From One Price to Four: Range-Based Volatility Estimators for MetaTrader 5".

Close-to-close volatility ignores the high, the low, and overnight gaps. We build a reusable MQL5 library implementing four range-based estimators from Parkinson to the gap-robust Yang-Zhang, and put it to work in a comparison indicator and a set of adaptive volatility bands.
Published article "Neural Networks in Trading: Generalizing Time Series Without Data-Specific Dependence (Core Model Modules)".

We continue our acquaintance with the Mamba4Cast framework. Today, we will delve into the practical implementation of the proposed approaches. Mamba4Cast was designed not for lengthy warm-up on every new time series, but for immediate deployment. Thanks to the concept of Zero-Shot Forecasting, the model can produce high-quality forecasts on real-world data without additional training or hyperparameter tuning.
Published article "Developing a Terminal Manager (Part 2): Running Multiple Terminal Instances".

Let's move on to using multiple terminal instances on the server by setting up a simple control panel for starting and stopping them. Now it is time to expand the functionality and move on to the next stages — implementing more complex features, such as managing multiple terminal instances, state persistence, integration with the MetaTrader 5 API, and a web interface with comprehensive information about the terminals.



















