Articles, Library comments - page 3

Backtest Data Preflight: check broker bar and tick history : Check the first and last available bars, gaps between bars, and available MT5 tick history for a date range before a backtest. Author: George Ciprian Mandache
TradeGateway: Fake Broker for Trade Management Tests : A library for MetaTrader 5 that puts trade management code behind an interface and tests it against a fake broker, without a trade server. The fake checks stops level, freeze level, tick grid and volume step, answers with retcodes chosen by the
Trailing Stop That Starts at the Take-Profit Level : Starts a trailing stop when the price reaches the take-profit zone of a position you already have open. The take profit is removed, extended or kept. It never opens trades. Author: Gilberto Cardona Velez
Gold MACD Divergence Map : MACD regular and hidden divergences on closed bars with an honest first-touch statistics panel. Not a trading signal. Author: Pavel Polikarpov
Check out the new article: Connecting MQL5 to Apache Cassandra: A Native CQL Binary Protocol (v4) Client for Tick-Level Feature Archival . This article builds a driverless MQL5 client for Cassandra's CQL binary protocol v4 using outbound TCP sockets. It explains frame headers and primitives, SASL
Close By Filter - close positions by side, symbol, magic number and profit : Closes only the open positions that match your filters and, if you choose, deletes matching pending orders. Shows a summary and asks before it acts. Author: Daniel Reynolds
Trade History Exporter - closed trades to CSV with R multiple, MAE and MFE : Saves your closed trades to a CSV file for your spreadsheet: one row per trade with points, costs, net result, R multiple, MAE and MFE. Author: Daniel Reynolds
Check out the new article: Aggregating Order Flow Delta from Tick Data in MQL5 . Compute and visualize order flow delta in MQL5 from raw ticks, either per bar or cumulatively. The implementation applies the tick rule, threads state through bars, and annotates price–cumulative delta divergences
Check out the new article: MQL5 Developer Gotchas (Part 2): A Multi-Line Text Block for Chart Labels Beyond the 63-Character Limit . CLabelBlock lets an EA show a long text as labels wrapped by pixel width and detect a truncated label. On the tested builds, native text objects and object names keep
Currency Strength Free MT4 - Eight Currency Scanner : Free MQL4 currency-strength dashboard with eight major currencies, ranking across up to 28 FX pairs, broker-symbol discovery and closed-bar data-quality checks. Standalone MIT-licensed source; no trading operations. Author: Sondang Manik
Check out the new article: Reading Parquet Natively in MQL5: Thrift, Snappy and Dictionary Decoding into matrix Without CSV . This article shows how to read Apache Parquet files directly in MQL5 without DLLs: a native Thrift Compact Protocol decoder for footer metadata, a native Snappy block
Check out the new article: Building Your Own Expert Advisor (Part 8): ATR and R-Multiple Trailing Stops . We add TrailingStop.mqh: a trailing engine plus pluggable methods for the Series EA. Each method proposes a level; the engine decides if and when to send it, enforcing protective direction
  Libraries: MultiTester  (590   1 2 3 4 5 ... 58 59)
MultiTester : Multiple runs/optimisations in Tester. Author: fxsaber
Check out the new article: Neural Networks in Trading: Mesh-Based Approximation of Event Streams as a Tool for Analyzing Price Patterns (CDC Module) . The article presents an interim stage in the implementation of the EEMFlow framework using MQL5. The focus is on the design and integration of a CDC
Inside-Bar Outcome Tracker: Breakout Direction, Failure Rate and Time to Resolve : Finds every inside-bar pattern in the history of your chart and follows it to the end: which side of the mother bar broke first, whether the breakout held or failed within a few bars, and how many inside bars came
Daily Loss Limit Guard - close all and stay flat after the daily limit : A simple account guard: once the day's loss (equity against the balance at the start of the day) reaches your limit, it closes all positions, deletes pending orders and keeps the account flat until the next day. Works on manual
Trade Journal : An advanced MT4 trade journal featuring automatic CSV logging, detailed performance statistics, per-symbol analytics, searchable trade history, and comprehensive CSV reports. Author: Sara Sabaghi
Check out the new article: Counting Breaches Is Not Backtesting: Six Tests for a Loss Limit . We present a dependency-free MQL5 library that tests risk limits instead of simply using them. It grades any loss limit with six coverage tests, validates the battery on synthetic data, compares four
Candle Streak Statistics: What Happens After N Same-Color Bars : Counts run of bars of the same color and measures what the next bar did after a run of every length: how often the run continued, how often it reversed, and how far the next bar moved in ATR. The figures are built from the history of
Check out the new article: Bland-Altman Analysis for MQL5: Agreement Between Strategy Tester Modes (Real Ticks vs 1 Minute OHLC). . The article builds a full MQL5 workflow for Bland-Altman agreement analysis between two Strategy Tester execution modes (real-tick vs 1-minute OHLC). A logging EA
CustomStopOut: your own margin call and stop-out levels, worst position closed first : A script that sets your own margin call and stop-out levels above the broker's. It alerts when the margin level falls below your margin call level and, below your stop-out level, closes positions one at a time
LERM - Liquidity and Efficiency Regime Matrix : Classifies each bar into trend, exhaustion, compression or noise regimes using Fractal Efficiency, ATR compression and a time-of-day adjusted volume Z-Score. Author: Dario Cadeddu
Currency Strength Free MT5 - Eight Currency Scanner : Free MT5 dashboard comparing eight major-currency strengths and ranking up to 28 FX pairs from completed candles. Includes broker-prefix/suffix detection, synchronization checks, chart navigation and eight output buffers. Independent MIT-licensed
StrictJson: RFC 8259 JSON parser and writer for MQL5 : One include file that reads and writes JSON in MQL5 and MQL4: strict RFC 8259 parsing with the line and column of every error, exact numbers, strict UTF-8 files, and settings saved to a file and loaded back. Author: George Ciprian Mandache
Divergence Detector without repaint: RSI, MACD, Stochastic, CCI, Momentum : Regular and hidden divergences between price and RSI, MACD, Stochastic, CCI or Momentum. Swings confirmed on closed bars, signal on the confirmation bar, lines on oscillator and price. No repaint, buffers for EAs. Author
Key Levels: PDH/PDL, weekly and monthly levels, midnight open, Asian range, sweeps : Previous day, week and month high and low, New York midnight open, period opens and the Asian range, with sweep marks and one alert per level. Day from broker or New York time. No repaint, buffers for EAs. Author
Seasonality : A free MT4 Forex seasonality indicator that analyzes historical price data to reveal weekday, weekly, and monthly market tendencies, bullish/bearish probabilities, average returns, and volatility through a modern statistical dashboard. Author: Sara Sabaghi
OrderGuard - restart-safe order sending for EAs (no duplicate trades) : An include file that makes the way an EA sends its orders safe: the same signal is never traded twice. It has no trading strategy inside and comes with a small example EA. Author: Archie Stuart Clarke
Pacific Clock - US Pacific time on the chart (PST/PDT) : Shows US Pacific time on the chart, with the broker's time beside it, and the Pacific time of any candle under the mouse. Author: Archie Stuart Clarke
Check out the new article: Building a Modular Pre-Trade Execution Filter Engine in MQL5 . The article presents a modular pre-trade execution filter for MQL5 as an object-oriented include class. It validates quote freshness, aligns order filling with broker capabilities, applies a rollover freeze