New publications in CodeBase
- Hidden Risk of Ruin Auditor Reads a closed-position trade history (a CSV file, or one generated automatically from the current account's deal history by the companion RuinExport.mq5 script) and reports four independent risk fingerprints: volume escalation after a loss, overlapping same-direction exposure that averages into a worse price, payoff asymmetry between wins and losses, and a classical risk-of-ruin estimate at a stated risk per trade. The four scores combine into a single A-to-F grade with plain-language recommendations. If no CSV is found, the script generates a reproducible demonstration book automatically, so the report is visible on the first run.
- Smart Trend Score Smart Trend Score is a clean and lightweight MetaTrader 5 indicator designed to identify high-quality trading opportunities using multiple trend and momentum filters.
- Session-Based Liquidity Breakout Session-Based Liquidity Breakout & Fibonacci Retracement Strategy (often used in Forex or Crypto trading). It simplifies trading by avoiding complex Smart Money Concepts (SMC) like Order Blocks or Fair Value Gaps, relying instead on Asian Session liquidity, timing (session open), and Fibonacci levels.
The most downloaded free products:
Bestsellers in the Market:
New publications in CodeBase
- The Quantitative Microstructure Matrix (SMC / FVG / Z-Score Engine) Stop trading retail noise. This is an institutional-grade, asynchronous multi-asset scanner. It combines True Fractal CHOCH, Z-Score volumetric anomalies, and Fair Value Gap (FVG) validation to detect high-probability Order Blocks without freezing your terminal.
- Nikkei 225 Gap Continuation EA The Nikkei 225 Gap Continuation EA is a MetaTrader 5 Expert Advisor that trades bullish and bearish continuation movements after the cash-session opening gap. It combines an opening-range breakout with VWAP confirmation, automatic risk-based position sizing, partial profit-taking, break-even management and a forced session exit. The EA supports both netting and hedging accounts.
The most downloaded free products:
Bestsellers in the Market:
The most popular forum topics:
- EA Competition 25 new comments
- Bug In the NASDAQ datafeed 9 new comments
- GOLD, Gold and XAUUSD 8 new comments
Published article "Defining your Edge (Part 1): Using a Discrete Fourier Transform and a Spiking Neural Network in a Trading Robot".

In this article we make the case for pairing the Discrete Fourier Transform with a Spiking Neural Network in a Trading Robot. The Fourier Transform helps represent data as oscillations instead of its raw values. To govern how we interpret these cycles, we engage a Spiking Neural Network that unlike regular networks, uses time dependent electrical charges to accumulate potential and only "spike" when a target threshold is met. Combining these two engines allows us better control on the timing of discrete market movements, that in theory should give us entry signals with rigorous mathematical confirmation.
Published article "Dingo Optimization Algorithm Modification (DOAm)".

The custom modification of the Dingo algorithm presented in the article has raised the bar for finding the best optimization algorithm. Are even better results possible?
Published article "Building a Correlation-Aware Portfolio Risk Monitor in MQL5".

The article quantifies correlation and portfolio risk in MetaTrader 5: from time-aligned returns to a covariance matrix, true portfolio variance against the independent-sum assumption, and position-level risk attribution. A MetaTrader 5 service runs in the background, shows the metrics on a small chart panel, and pushes alerts when risk thresholds are crossed. Source code is provided for an example script, a reusable risk engine class, and the service.
Published article "Price Action Analysis Toolkit Development (Part 75): Building a Modular Multi-Symbol Trading Panel in MQL5".

A structured MQL5 implementation of a multi‑symbol trading panel with clear separation of concerns: symbol handling, trading logic, and GUI. Integrated into an Expert Advisor, it validates symbols, exposes centralized controls for opening and positions managing across symbols, and applies SL/TP changes. Real‑time account and portfolio metrics help streamline routine operations from a single chart.
The most downloaded free products:
Bestsellers in the Market:
Published article "Digital Signal Processing for Traders (Part 2): The Dominant Cycle, MAMA, and a Regime-Switching Expert Advisor".

In Part 2 we measure the market's dominant cycle using Ehlers' Hilbert-transform homodyne discriminator and wrap it as an indicator. We then build the MESA Adaptive Moving Average (MAMA) and its follower FAMA from that phase information. Finally, we combine MAMA/FAMA with the Even Better Sinewave to form a regime-switching Expert Advisor and test it on EURUSD in the Strategy Tester, giving you a complete, reproducible MQL5 implementation.
Published article "Execution Cost and Slippage Sensitivity Analyzer".

Backtests often understate spread, commission, and slippage. This MQL5 analyzer loads closing deals and simulates rising execution costs to measure robustness. It computes the breakeven cost per deal, the cushion over an assumed cost, the net profit and profit factor at that cost, and how many winners turn into losers, then summarizes the result with an A+ to F grade and targeted guidance.
Published article "Multi-Threaded Trading Robot with Machine Learning: From Concept to Implementation".

The article presents a step-by-step development of a multi-threaded trading robot with machine learning in Python and MetaTrader 5. The system architecture is considered – from data collection and creation of technical indicators to training XGBoost models with portfolio risk management. The implementation of data augmentation, feature clustering via Gaussian Mixture Models, and flow coordination for parallel trading of multiple currency pairs is described in detail.
Published article "A Symbol Metadata and Trading Hours Cache in MQL5: Eliminating Redundant SymbolInfo Calls in Multi-Symbol EAs".

This article presents CSymbolMetaCache, an MQL5 layer that preloads contract specifications and trading-session schedules for monitored symbols at EA startup and then serves typed getters from memory. It explains which properties are safe to cache versus dynamic ones, including the semi-dynamic tick value on cross-currency pairs, and implements an in-memory IsMarketOpen() evaluator. A benchmark quantifies latency reduction across a set of twenty symbols.
Published article "Broker Reality Check (Part 1): Why Your EA Works on a Demo and Breaks on a Client's Broker".

Your Expert Advisor runs clean on your demo, then throws errors on a client's broker and quietly stops trading - and the code never changed. What changed is the broker's rulebook. This first article of the Broker Reality Check series builds a diagnostic EA that reads every relevant symbol trading condition - filling policy, stops and freeze levels, volume step, trade mode, swap and the triple-swap day - and flags the ones that silently break EAs, in plain language. It shows a green/amber/red panel, prints a report and dumps every Market Watch symbol to CSV, so you see why an OrderSend fails (10030, invalid stops, invalid volume) before it costs you a trade.
The most downloaded free products:
Bestsellers in the Market:
New publications in CodeBase
- BlueMoon BlueMoon EA is an MT5 Expert Advisor that combines EMA Envelope entries with adaptive basket management, progressive position sizing, spread filtering, drawdown protection, and automatic trade recovery for hedging accounts.
- PRO SCREENER Take control of your trading performance with the Pro Dashboard Screener Designed for serious traders, this utility provides a clean, professional, and real-time overview of your account's health directly on your chart.
- Breakout Distance - Donchian channel with distance-to-trigger panel in ATR units Most channel indicators tell you where the breakout level is. This one tells you how far away from it you are, right now, in a form you can act on. The panel shows, for both the upper and the lower channel edge: the level itself the distance from the current price, in the symbol's own price units the same distance expressed in ATR units a proximity bar that fills as price approaches the trigger Why the ATR column matters. A distance of 8 dollars from a breakout means something completely different in a quiet Asian session than it does during a news release. Dividing the distance by the current ATR makes the number comparable across sessions, across volatility regimes and across symbols. A reading of 0.30 ATR means the same thing on gold as it does on EURUSD. Colour coding: normal text : more than InpNearATR away (default 1.0 ATR) gold : within InpNearATR orange red : within InpVeryNearATR (default 0.5 ATR)
- Draw On Liquidity + Kill Zone The Draw On Liquidity (DOL) indicator automatically plots these essential levels on your chart and highlights high-probability trading windows through session kill zones. With full customization options, it provides a clean, professional, and highly informative display to enhance your trading decisions.
Published article "The MQL5 Standard Library Explorer (Part 14): Building a Dynamic Hedge EA with the ALGLIB Port (ap.mqh)".

This article introduces ap.mqh, the ALGLIB port for MQL5, and demonstrates its use in multi‑asset workflows that require robust linear algebra. It covers why built-in indicators fall short, then implements polynomial regression, a rolling correlation matrix indicator, and an adaptive hedge ratio estimator using ridge regression with Cholesky. Practical code shows how to compute spread z‑scores and execute coordinated pairs trades entirely within MetaTrader 5.
Published article "Mapping Dealer Gamma Exposure (GEX) in MetaTrader 5: Walls, the Zero-Gamma Flip, and a Chart Overlay".

In this article we build a dealer gamma-exposure map in MQL5. From an option chain, the tool computes per-strike GEX, finds the call and put walls, and solves for the zero-gamma flip that separates a mean-reverting regime from a trending one, then draws it all on the chart. CSV and native-symbol data paths included.
Published article "Constructing a Trade Replay Engine in MQL5: Stepping Through Historical Trades Bar by Bar for Manual Review".

An MQL5 script reconstructs closed trades from raw deal history and replays them on the chart bar by bar, drawing entry, exit, stop, target, and an annotation with per‑trade statistics. Four classes separate concerns: a trade data record, history reconstruction with a two‑pass SL/TP lookup and partial‑close aggregation, chart rendering, and a controller with polling‑based keyboard navigation. This enables consistent, fast visual review of each trade in its original candlestick context.
Published article "Dingo Optimization Algorithm (DOA)".

The article presents a new metaheuristic method based on the hunting strategies of Australian dingoes: group attack, chase, and scavenging. Let's see how the Dingo Optimization Algorithm (DOA) performs algorithmically.
Published article "Online Linear Regression with Recursive Least Squares in MQL5: A Parameter-Free Adaptive Trend Estimator".

This article implements recursive least squares in native MQL5 with a constant O(1) update per bar, avoiding the per‑bar O(n) rebuild of a rolling OLS. It derives and codes the Sherman–Morrison rank‑1 update, explains the forgetting factor through its effective window, and provides a reusable class. Two coordinated indicators plot a 1‑step‑ahead price forecast on the chart and the signed slope in a correctly scaled subwindow for practical trend tracking.
The most downloaded free products:
Bestsellers in the Market:
Most downloaded source codes this month
- 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.





























