Articles, Library comments - page 3

False Breakout Envelope : False breaks at an ATR envelope, drawn as trades: price pushes through a band, closes back inside, and a box runs from the entry to the moving midline, with the stop as a thick line. Each label prints the win rate of earlier signals in the same RSI zone, and a corner card
CBitBuffer Class - Data Serialization in MQL5 : A class for reading and writing individual bits or bit sequences to and from a buffer. Author: amrali
Auto Fibonacci Retracement on the Latest Swing : Detects swing highs and lows automatically and draws Fibonacci retracement levels on the latest completed swing leg. The levels move to the new leg as soon as a new swing is confirmed; the levels, their colors and the swing sensitivity are
Check out the new article: Machine Learning Under Constraint (Part 3): De-Risking Near the Profit Target and the News-Window Rule . Position sizing that ignores proximity to a profit target or the timing of high-impact news exposes banked progress to reversal risk and misstates simulated profit near
Risk Lot Calculator - lot size from risk percent and stop distance : Small include file that gives you the lot size from risk in percent (or fixed money) and the stop loss distance. Rounds always down, checks min/max lot and free margin. Author: Lukas Szyry
New article Better Programmer (Part 07): Notes on becoming a successful freelance developer has been published: Do you wish to become a successful Freelance developer on MQL5? If the answer is yes, this article is right for you. Do not apply for a job that you are not sure how you are going to do
Closed Trades to CSV - one row per closing deal (partial closes, reversals) : Exports closed trades to a CSV file, one row per closing deal: partial closes, close-by and netting reversals are split, each row with the position's open time, volume-weighted open price and its share of the entry
XAUUSD Hourly Volatility Clock: typical range by hour vs today : A 24-hour clock of typical H1 ranges for XAUUSD (and any other symbol) versus the range of the current hour. The profile uses closed hours only. Display only — it does not trade. Author: Pavel Polikarpov
New article MetaTrader 5 on Linux is published: In this article, we demonstrate an easy way to install MetaTrader 5 on popular Linux versions — Ubuntu and Debian. These systems are widely used on server hardware as well as on traders’ personal computers. Author: MetaQuotes
Gold Level Map (XAUUSD): Round Numbers, Prior Day/Week Extremes and ADR : A clean on-chart map of psychological 00/50 figures, prior day and week extremes, and the average daily range, with honest bounce/break statistics. Display only — it does not trade. Author: Pavel Polikarpov
  Libraries: MultiTester  (589   1 2 3 4 5 ... 58 59)
MultiTester : Multiple runs/optimisations in Tester. Author: fxsaber
MT5 New-Bar and Connection Event Logger : A lightweight MetaTrader 5 Expert Advisor that records new-bar events and terminal connection-state changes to a local CSV file. Designed for developers and traders who need reliable event logging, diagnostics and monitoring without executing trades. Author
Gap and Weekend Map: Measuring Gap Fill Rate, Fill Time and Gap Size Relative to ATR : Marks every opening gap on the chart, measures its size in ATR units and follows it until price trades back to the fill level (previous close by default). A panel reports the fill rate, the median and
Session Time - session hours to broker server time with daylight saving : Converts session hours given in London, New York, Tokyo or Sydney time into broker server time, including US and EU daylight saving and the weeks when the two are out of step. Comes with a check script that verifies 15
Basket Guard - closes a basket of positions at loss or profit in percent of balance : Free Expert Advisor that watches a basket of open positions (all, by Magic number or by symbols) and closes the whole basket when floating loss or profit reaches a set percent of balance. Works next to any EA or
Check out the new article: Neural Additive Models for Fully Interpretable Signal Attribution in MQL5 . Build and deploy a Neural Additive Model natively in MQL5: one small network per feature, additive output, and no post-hoc explainability. The article provides a PyTorch trainer, two‑output ONNX
Check out the new article: Numerical Fidelity Under Fire: Benchmarking Native MQL5, ONNX Runtime, and ALGLIB . This article benchmarks one MLP forward pass implemented three ways in MQL5: native code, ALGLIB, and ONNX Runtime. We quantify numerical fidelity versus a float64 ground truth and
Check out the new article: Creating a Cairo-Inspired Graphics Library for MetaTrader 5 (Part 10): Transforms and the Graphics Context . We add the missing pieces: an affine transform and a context layer for the Cairo-style engine in MQL5. The six-number matrix is applied as paths are built, turning
Check out the new article: Change Point Detection for Financial Time Series in MQL5 . Financial markets can shift between regimes, so detecting when the statistical behavior of returns changes is valuable for analysis. An MQL5 change point detector segments historical returns into periods with
Trade Settings — Persist and Migrate Per-Trade Settings : Standalone MQL5 library for storing custom settings separately for each trade and following a verified pending-order-to-position lifecycle. It supports double, ulong and price-unit fields, terminal-local Global Variables, safe cleanup gates
Trailing Stop and Break-Even Manager (points or ATR) : Utility EA that moves the stop loss of positions you already have open: break-even with locked profit and trailing stop in points or ATR. It never opens trades. Author: Gilberto Cardona Velez
Trade-Request Matrix: Regression Testing Invalid Stops, Volume and Close Errors with OrderCheck() : Part 4 of the regression-testing series. An Expert Advisor that builds a fixed matrix of 20 valid and invalid trade requests (stops at and inside the stops level, wrong-side stops, volume outside the
Close All at Total Profit or Loss (money) : Utility EA that closes all positions (and optionally deletes pending orders) when the total floating profit reaches your target or the total floating loss reaches your limit, in account currency. It never opens trades. Author: Gilberto Cardona Velez
Opening Range Breakout Box : Opening range breakout indicator for MT5 on Gold (XAUUSD), forex and indices: box of the first minutes of up to three sessions, breakout levels, two targets by range height, arrows and alerts on the closed candle. Open source code. Author: Cristhian Alexander Gaibor
News Straddle EA Economic Calendar : News trading EA for Gold (XAUUSD) and forex: places a Buy Stop and a Sell Stop seconds before each release of the MT5 economic calendar, one cancels the other, stop loss, take profit and trailing in points. Open source code. Author: Cristhian Alexander Gaibor
PDH PDL Sweep Levels : Previous day high and low indicator for MT5 on Gold (XAUUSD), forex and indices: PDH, PDL, previous week high and low, day and week open, and an arrow when a closed candle sweeps a level and closes back inside. Open source code. Author: Cristhian Alexander Gaibor Cuasquer
Daily Loss and Profit Lock : Daily loss limit EA for MT5 on prop firm and funded accounts, Gold (XAUUSD), forex and indices: closes every position at the daily loss or profit limit, deletes pending orders and locks trading until the next day. Open source code. Author: Cristhian Alexander Gaibor
Premium Discount OTE Zones : Premium and discount zones for MT5 on Gold (XAUUSD), forex and indices: dealing range from confirmed swings, equilibrium 50 percent, 25 and 75 percent lines and the OTE band of the last leg. Open source code. Author: Cristhian Alexander Gaibor Cuasquer
Check out the new article: Building a Volume Profile Aggregator from Tick Data in MQL5 . The article presents an MQL5 volume profile built with O(1)-per-tick binning, replacing O(n×m) nested comparisons by direct index arithmetic on a preallocated, tick-size-aligned bin grid. An EA-driven pipeline
Check out the new article: Dead-Man's Switch for MetaTrader 5: An EA Heartbeat That Reports Health, and a Guardian That Acts When It Goes Silent . This article builds a dead man's switch for EAs: a host emits a timer-driven heartbeat with real health flags (connection, trading permissions, tick age