Articles, Library comments - page 3

Position Size Calculator - risk-based lot sizing script : Calculates the correct lot size for a planned trade from your risk (percent of equity or a fixed money amount) and stop-loss distance (points or a price level). Respects the symbol's contract specification - tick size and value, volume
Spread Monitor Panel - live spread with spike alerts : On-chart panel with the live spread of the chart symbol - current, minimum, average and maximum since attach - color-coded against your warning and danger thresholds, plus an optional alert when the spread stays at the danger level for N
Check out the new article: Duelist Algorithm . What if your trading strategies could learn from each other, like real fighters? Duelist Algorithm is a new optimization method where trading system parameters literally duel for the right to be called the best. Think of the trading floor as an arena
Check out the new article: Artificial Atom Algorithm (A3) . The article describes implementation of the A3 algorithm - a metaheuristic optimization method inspired by chemical processes - in MQL5. Only two adjustable parameters, compactness and a small population, ensure high operating speed with
ATR Ranked Support and Resistance Zones : An educational MT5 indicator that builds support and resistance as price zones from confirmed pivots. Nearby reactions are merged using ATR-based distance, then ranked by repeated tests, rejection strength and recency. Only the strongest zones are displayed
Check out the new article: Code, Tears, and Algo Forge . This article discusses the transition to MQL5 Algo Forge as a modern and convenient format for publishing program code and article attachments. Using repositories instead of traditional ZIP archives and source code allows you to keep projects
Prop Firm Risk Dashboard - daily loss and drawdown monitor : A read-only on-chart panel that tracks your account against a daily-loss limit and a max-drawdown limit, with color-coded OK / WARNING / DANGER status. Monitoring only - it does not place, modify or close any orders. Author: Dror Munk
Check out the new article: Automating Classic Market Methods in MQL5 (Part 2): Wyckoff Cause and Effect—Point and Figure Price Targets . This article builds a self-contained MQL5 Expert Advisor that completes the Wyckoff cycle: it detects accumulation/distribution with a finite state machine, enters
Premium Discount Range Mapper : A lightweight educational MetaTrader 5 indicator that maps Premium, Equilibrium and Discount areas from a selected market range. Author: Talal N Z Aljarusha
Check out the new article: Engineering Trading Discipline into Code (Part 8): Building a Setup Confirmation and Trade Authorization Layer in MQL5 . This article introduces an MQL5 trade authorization framework built around CDisciplineLayer, CDisciplineGuardian, and CDisciplinePanel. The framework
Check out the new article: Implementation of the Quantum Reservoir Computing (QRC) circuit . A revolutionary approach to machine learning in trading through quantum computing. The article demonstrates a practical implementation of an adaptive QRC system with continuous retraining for predicting
Check out the new article: Beyond GARCH (Part VII): Monte Carlo Volatility Forecasting in MQL5 . We implement the CMonteCarlo module that turns the fitted MMAR parameters into a volatility forecast via Monte Carlo. It runs N independent simulations over a chosen horizon and reports mean, median
Check out the new article: Digital Signal Processing for Traders: Building Ehlers' Filter Library in MQL5 . We implement Ehlers-style DSP filters in a single reusable MQL5 library and use it to build two indicators. The Roofing Filter applies a 2‑pole high‑pass followed by a Super Smoother to
RSI Grid EA Pro : RSI Grid Overlap Pro is a professional MT5 Expert Advisor combining RSI-based market entries with an adaptive grid recovery system. It features intelligent overlap order management to reduce drawdown, plus virtual trailing stop, breakeven, and three lot sizing modes — fixed
Check out the new article: Heatmap Visualization of Intraday Return Patterns in MQL5 Using CCanvas . MetaTrader 5 provides no native tool for visualizing intraday return patterns across time dimensions simultaneously. This article implements a custom indicator that aggregates historical bar returns
Check out the new article: Market Microstructure in MQL5 (Part 7): Regime Classification . We integrate eleven one-minute microstructure measurements from Parts 2–6 into a composite regime label with confidence and direction. A rule-based RegimeClassifier() assigns one of six regimes—Normal
New article Payments and payment methods is published: MQL5.community built-in services offer great opportunities both to MQL5 developers and ordinary traders with no programming skills. But all these features can't be implemented without in-house secure payment system, that provides a convenient
Check out the new article: Developing a Neural Network Trading Robot Based on Mamba with Selective State Space Models . The article explores the revolutionary Mamba/SSM neural network architecture for financial time series forecasting. We will consider a complete MQL5 implementation of a modern
Consecutive Bars (with history) indicator for MT5 : An oscillator that shows 2 line studies: 1 for consecutive up bars, and 1 for consecutive down bars. Author: Ryan L Johnson
Check out the new article: Feature Engineering for ML (Part 8): Entropy Features in MQL5 . An MQL5 port of four entropy estimators — Shannon, Plug-In, Lempel-Ziv, and Kontoyiannis — operating on the intrabar tick-rule sequence. CopyTicksRange() limits data to the broker's cached tick window, so
Multi-Timeframe Candle Map : An educational MT5 panel that maps the live price vertically inside four developing candles and summarizes location alignment, dispersion, candle direction and time remaining. Author: Talal N Z Aljarusha
Check out the new article: Measuring What Matters (Part 1) : Portfolio Risk Decomposition in MQL5 . The article establishes a reproducible method to measure portfolio risk for multiple symbols using MQL5 matrices and OpenBLAS. It covers computing log returns, building a covariance matrix, and
Inside Bar : Automatically detect Inside Bar patterns, draw projection rectangles, and receive real‑time alerts – all in one powerful indicator. Swing And Full Margin trader Author: reza rahmad
Check out the new article: Engineering a Self-Healing Expert Advisor in MQL5 (Part 4): Trade-State Reconciliation and Safe Mode Recovery . This article adds trade-state reconciliation and Safe Mode recovery to a MetaTrader 5 Expert Advisor. The EA continuously validates recovery integrity by
Check out the new article: Persistent Key-Value Store in MQL5: Using Flat Files as a Lightweight Database for EA State . A lightweight persistence design lets EAs retain counters, flags, and timestamps between terminal restarts. Using only MQL5, CPersistentStore writes a human-readable key=value
Check out the new article: Risk Manager for Trading Robots (Part I): Risk Control Include File for Expert Advisors . Trading is characterized by high demands on risk management discipline. The article presents an analysis of the main reasons for traders' failures and proposes a technical solution in
Check out the new article: MQL5 Wizard Techniques you should know (Part 99): Using a KD-Tree and an Echo State Network in a Custom Money Management Class . This article lays out 'CMoneyKDTreeESN' custom money management class usable with the MQL5 Wizard, that combines the KD-Tree algorithm and the
Check out the new article: Creating an HTML Dashboard for Strategy Tester and Prop Firm Challenge Analysis in MQL5 . This article demonstrates how to build a reusable prop‑firm evaluation module for MQL5 Expert Advisors and export results to an HTML dashboard. The module monitors balance and equity
Check out the new article: Engineering a Self-Healing Expert Advisor in MQL5 (Part 3): Restart-Aware Breakeven and Trailing Systems . Building on Part 2, the implementation introduces restart-aware breakeven and trailing-stop systems for MetaTrader 5. The EA persists the state, such as breakeven
Automatic Chart Refresher : A tool which refreshes the chart automatically and will make active indicators update if something stopped plotting on the chart. Author: phade