Articles, Library comments - page 26

Swap Markup Scanner : Shows the broker's hidden financing markup and the carry for every symbol, as annual % of notional. Author: Ng Wei Siong
DataSnooping: SPA test, Reality Check, StepM and model confidence set : Is the best of many strategies really better than the benchmark? Hansen's SPA test, White's Reality Check, Romano-Wolf StepM and the model confidence set. Author: Mohamed-amine Baddir
Calendar News Filter - pause any EA around high-impact news : A small include file that tells your Expert Advisor when it is inside a news window, using the economic calendar built into MetaTrader 5. No web requests and no DLL. Author: Muhammad Muqeem Korejo
isNewBar : The function allows checking whether a new bar has appeared on the specified timeframe. For the indicators and Expert Advisors it's very often necessary the information whether a new bar has appeared on the specified timeframe. Here is an example, how it can be done. After the first call
Basket Pair Closer : Position manager for MT5 that closes the best winner together with the worst loser when their combined result reaches your minimum. Basket take profit and stop loss in money, magic filter, simple panel. Works with grid, martingale and manual trades. Open source code. Author
XANDER Adaptive Cross : Two adaptive moving averages that read the market differently. Crossovers signal trend shifts. Author: Cristhian Alexander Gaibor Cuasquer
XANDER Gold Recovery : Keltner Channel strategy for XAUUSD with optional Progressive Recovery System and basket level risk control. Source code for educational purposes. Author: Cristhian Alexander Gaibor Cuasquer
XPro Trade Panel — Full Trade Management Panel for MT5/MT4 : One-click trade panel for MT5 and MT4. Manage entries, exits, SL, TP, pending orders and partial closes without touching the keyboard. Author: Cristhian Alexander Gaibor Cuasquer
Cointegration: ADF, Engle-Granger and Johansen tests with a pair scanner : Unit root and cointegration tests (ADF, Engle-Granger, Johansen) with MacKinnon p-values, hedge ratio, half-life and z-score of the spread, and a pair scanner. Author: Mohamed-amine Baddir
Kalman: exact diffuse Kalman filter, local level and time-varying hedge ratio : Kalman filter and smoother with an exact diffuse start, missing values and maximum likelihood: local level, local linear trend and a regression whose hedge ratio drifts. Author: Mohamed-amine Baddir
RegimeHMM: market regimes with a hidden Markov model : Gaussian hidden Markov model fitted by Baum-Welch: regime probabilities without look-ahead, most likely path, expected durations and regime forecasts. Author: Mohamed-amine Baddir
UT Bot Alerts for MT4 - faithful port with signal statistics panel and daily session filter : An MT4 port of QuantNomad's "UT Bot Alerts", one of the most-used scripts on TradingView. It draws the ATR trailing stop, Buy/Sell signals and bar colors, and adds a panel that counts what the signals would
Candle shadows v1 : Candlestick size and shadow analysis. In OnTradeTransaction, opening (DEAL_ENTRY_IN) and closing (DEAL_ENTRY_OUT) the positions are intercepted, as well as closing by Stop loss (DEAL_REASON_SL). Author: Vladimir Karputov
Range Filter Buy and Sell for MT4 - faithful port of DonovanWall / guikroth with signal statistics : An MT4 port of the popular TradingView "Range Filter Buy and Sell 5min". The filter line only moves when price exceeds a smoothed average range, which filters out small swings. Includes Buy/Sell
Chandelier Exit for MT4 - faithful port of everget's TradingView version with signal statistics : An MT4 port of the classic Chandelier Exit as implemented by everget on TradingView (v6, 2025). It draws the long/short ATR stop from the highest or lowest close, Buy/Sell signals when the state flips
CME equity index futures holiday calendar : Holidays and early halts of the CME equity index futures (S&P 500, Nasdaq-100, Dow, Russell 2000, E-mini and Micro), computed from the US holiday rules for any year, with a script that checks the calendar against your broker's own M1 history. Author
VpsToolkit - safe order send and restart-safe state for VPS EAs : Include for EAs running 24/7 on an MQL5 VPS or PC: run-where switch, order send with OK/FAIL/UNKNOWN result (no duplicate orders after a timeout), restart-safe counters, positions closed while the EA was off, append-only log and
Compression Breakout Channels with Buy and Sell Volume : Finds volatility compressions as they form, boxes each one as a channel with ATR edge bands and marks the bar that breaks out of it. Inside the live channels: buy and sell volume split from M1 bars, drawn as candles and text, plus a gauge of
Session Time Highlighter : Highlights the Asia, London and New York sessions and the London/New York overlap using real local time and daylight saving rules, so the session boxes are correct on any broker. Author: Wycliffe Wanjala Wanyonyi
Check out the new article: Joint Recurrence Quantification Analysis (JRQA) in MQL5: Detecting Simultaneous Recurrence in Two Series . We extend the RQA library for MetaTrader 5 with JRQA, which detects when two series simultaneously revisit their own past states. The article covers the joint
Stochastic Daily Breakout for Gold, +245 Percent in a 2021-2026 Backtest : Gold EA that trades both directions: when the stochastic signal line turns, it places a stop order at yesterday's high or low, filtered by a Bollinger band. Self-contained, no custom indicators. Real-tick backtest on XAUUSD
Check out the new article: Price Action Analysis Toolkit Development (Part 11): Heikin Ashi Signal EA . MQL5 offers endless opportunities to develop automated trading systems tailored to your preferences. Did you know it can even perform complex mathematical calculations? In this article, we
Order Watchdog - alerts on unknown magic, duplicates, no SL, stop outs (read-only) : Read-only watchdog for MT5: alerts on unknown magic numbers, duplicate positions after reconnects, missing SL, stop outs and what happened while it was off. Never trades. Author: Manit Chin
Trade Environment Check: account mode, symbol trading rules and open positions in one report : Script that reports what an EA has to cope with here: hedging or netting, trade permissions, filling modes, stop and freeze levels, volume rules, swaps and the positions already open on the symbol. Saves a
Check out the new article: How to Implement Metaprompting for Trading Signals in an MQL5 Expert Advisor . Metaprompting is an approach in which the LLM itself optimizes trading instructions based on actual P&L and signal quality metrics. The article demonstrates a practical implementation in Python
ICT Model Tracker - Sweep, MSS and FVG Setups with Honest Statistics : Detects the ICT model on closed bars (killzone liquidity sweep, MSS with displacement or inverted FVG, retrace entry with SL and TP) and follows every setup to its result with worst-case statistics. It never trades and never
Check out the new article: Implementing Session Volume Profile in MQL5 . Build a responsive session volume profile indicator in MQL5 from tick data with draggable session bounds and dual anchoring. The article details hash-based bucket aggregation for historical and live ticks, a timer-driven
Check out the new article: Building a Prop Firm Compliance Monitor in MQL5 (Part 3): Daily Drawdown, Overall Drawdown, and Profit Targets . This part turns stored account references into a financial monitoring engine for MetaTrader 5. It calculates daily drawdown from the confirmed session balance
Check out the new article: Creating a Cairo-Inspired Graphics Library for MetaTrader 5 (Part 6): Curves and Adaptive Flattening . This part introduces cubic Bézier curves and a quadratic verb, flattened on append by recursive midpoint splitting (De Casteljau). A conservative flatness test sums
Check out the new article: Neural Networks in Trading: Iterative Forecast Refinement Models (RAFT) . The RAFT framework offers a fundamentally different approach to forecasting market dynamics — not as a one-time snapshot, but as an iterative refinement of the state in real time. It takes both local