Articles, Library comments - page 3

Check out the new article: Creating a Cairo-Inspired Graphics Library for MetaTrader 5 (Part 11): A Real Stroke Engine . The engine learns to draw lines by stroking arbitrary paths with width, cap and join styles, miter limiting, and dashes. The stroker outputs overlapping geometry that the non-zero
Lot Size Calculator - Risk Percent to Lots : Calculates the correct lot size from your risk (% of balance, % of equity or a fixed amount) and stop-loss distance. Shows actual risk and margin. Never places trades. Author: Rishabh Trivedi
Opening Range Breakout EA Gold : Opening range breakout EA for MT5 on Gold (XAUUSD), forex and indices: trades the first candle that closes outside the opening range, stop at the range, target in multiples of the stop, lot by risk, end of day close. Open source code. Author: Cristhian Alexander
Candle Timer and Spread : Shows the time left until the current candle closes and the live spread in any chart corner. Keeps counting every second, even when no ticks arrive. Author: Rishabh Trivedi
Close All Positions and Orders (Filtered) : Closes open positions and deletes pending orders in one run, with filters for symbol, magic number, side and profit or loss. Asks for confirmation and retries failed closes. Author: Rishabh Trivedi
Check out the new article: Building a Daily OHLCV Aggregator from M1 Bars in MQL5 . Create session-aligned daily candles from M1 data by choosing the session close hour. A dedicated shift–truncate–restore day-key function prevents off-by-one errors at rollover and is easy to unit test. The script
Check out the new article: The Brunner-Munzel Test for MQL5: Comparing Trade Outcomes When the Variances Don't Agree . Mann–Whitney's usual normal-approximation reading relies on equal shape and variance, which trade outcomes often violate. We implement the Brunner–Munzel test natively in MQL5
Check out the new article: Dirichlet Process Mixtures: How Many Market Regimes Are There, and Does the Answer Mean Anything? . Most regime tools ask for a fixed number of states. This article implements a Dirichlet process mixture for MQL5 with truncated stick-breaking and varying coordinate ascent
Check out the new article: Self-Optimizing Expert Advisors in MQL5 (Part 21): Wavelet Denoising With Time-Lagged Independent Component Analysis (4) . This article refines a multilayer market‑noise filter by sanitizing moving‑average inputs via Discrete Wavelet Transform and constructing a FastICA
Range Compression Zones Breakout : Range Compression Zones Breakout draws range compression zones and marks breakouts that pass a higher-timeframe high/low filter and a volume filter. Inspired by the range compression idea in Domenico D'Errico's Accumulation/Distribution study (TASC, August 2018)
Check out the new article: Neural Networks in Trading: Mesh Approximation of Event Streams as a Tool for Analyzing Price Patterns (ADM Module) . The article presents an implementation of the Adaptive Density Module (ADM), a key component of the EEMFlow framework, using MQL5. It examines the steps
Risk Lot Line: lot size from a draggable stop loss : Drag a stop-loss line and read the lot size for your risk. The loss per lot comes from OrderCalcProfit, so the size is right on metals, indices and cross pairs. Shows the real risk after rounding, the margin and an R-multiple take profit. Places
Tick-Based Spread Distribution Profiler reads historical Bid/Ask ticks via CopyTicksRange : Tick-Based Spread Distribution Profiler reads historical Bid/Ask ticks via CopyTicksRange() and plots 24h spread percentiles (P50, P90, P99) in a separate subwindow. Key Features: - True Tick Percentiles
Execution and Slippage Forensics audits MetaTrader 5 account history : Execution & Slippage Forensics audits MetaTrader 5 account history (Orders vs Deals) to quantify real execution quality in points and currency. Key Features: - Order-to-Deal Matching: Pairs each fill to its parent order
Giano ATR Regime : Classifies volatility on closed bars using ATR(14), with three color-coded regimes and optional alerts. Author: Alessandro Lupi
TrailGuard - break-even and trailing stop manager for open trades : Moves the stop loss to break-even and then trails it on trades that are already open. It never opens or closes a trade. Author: Archie Stuart Clarke
VolumeProfile_POC_Zones : Dynamic Volume Profile indicator for MetaTrader 5 displaying horizontal volume distribution, Point of Control (POC), and Value Area (VAH/VAL) zones. Includes a layout switcher to anchor the histogram on either the right or left side of the lookback range. Author: Andriy
Check out the new article: Building a Position Lifecycle Manager in MQL5 (Part 2): Managing Manual and Multi-Symbol Positions . This update adds manual position adoption and multi-symbol lifecycle management. The manager detects and tracks positions regardless of the chart, applies initial
EzoO Close All - close all, profitable, losing, buy or sell positions in one click : Script that closes positions in one click: all, only profitable, only losing, only buys or only sells, for this symbol or all symbols, with a magic filter and optional pending order delete. Author: Vinay Saini
EzoO Daily Loss Guard - daily loss limit and profit target for the whole account : Daily loss limit and daily profit target for the whole account (prop firm style). When a limit is hit it closes positions, deletes pending orders and keeps the account flat until the next daily reset. Author: Vinay
EzoO Lot Calculator - risk based lot size panel with one-click BUY / SELL : Risk-based lot size panel: risk (% of balance, % of equity or money) and stop loss in points give the lot. Shows money at risk, reward and margin and opens BUY / SELL with SL and TP in one click. Author: Vinay Saini
EzoO MTF Trend Dashboard - trend of M5 to D1 in one table with EMA and RSI : Multi-timeframe trend table (M5, M15, M30, H1, H4, D1): price vs fast EMA vs slow EMA, RSI for each timeframe and an overall bias. Author: Vinay Saini
EzoO News Countdown - countdown to the next economic news from the built-in MT5 calendar : Countdown to the next important economic news from the built-in MetaTrader 5 calendar, with a vertical line and a before/after zone for every event. Author: Vinay Saini
EzoO Prev Levels - previous day high/low/open/close, previous week high/low and today's open : Previous day high/low/open/close, previous week high/low and today's open, drawn as a segment for each of the last N days with price labels. Author: Vinay Saini
EzoO Candle Timer - time left on the candle, live spread and today's range : Shows the time left on the current candle, the live spread and today's range next to the price or in a chart corner. Works on every timeframe. Author: Vinay Saini
Check out the new article: Native MQL5 to ClickHouse Integration via HTTP Interface and RowBinary . We implement a direct MT5→ClickHouse pipeline without intermediate services: RowBinary encoding at the byte level and an HTTP client that authenticates and posts inserts. The article details schema
TradingView Style Chart Drag and Zoom for MT5 : Drag the MetaTrader 5 chart freely in any direction and stretch the price and time scales with the mouse, the way TradingView does it. One click on ON/OFF returns the normal chart. A small indicator that draws nothing, never trades and works next to
Check out the new article: Per-Setup Trade Ledger in MQL5: Find Out Which of Your EA's Entries Is Losing Money . Most EAs trade more than one setup, yet the Strategy Tester judges them all by a single equity curve. CSetupLedger is a small MQL5 class that stores each trade's setup in its magic number
Safe Pyramiding - add to winning trades only when they are risk free : Decides if you can add to a running winner: only when all open trades in that direction are on break-even and the newest one is in profit. The open risk is never more than one add. Hedging accounts only. Author: Lukas Szyry
Check out the new article: Apache Arrow Flight from MQL5: A Native gRPC Client for Columnar Data Transport . This article implements a native Apache Arrow Flight client in pure MQL5: FlatBuffers-based Arrow IPC encoding/decoding, a raw HTTP/2 client with HPACK, and a thin gRPC/Flight framing layer