Articles, Library comments - page 2

Backtest Data Preflight: check broker bar history before a backtest : Check the first and last available bars and the gaps between bars for a date range before a backtest in the MetaTrader 4 Strategy Tester. Author: George Ciprian Mandache
CustomStopOut: your own margin call and stop-out levels, worst order 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 open orders one at a time, the
StrictJson: RFC 8259 JSON parser and writer for MQL4 : One include file that reads and writes JSON in MQL4. It refuses broken JSON and tells you the line and column of the mistake, keeps numbers exact, reads and writes UTF-8 files, and saves your EA's settings to a file and loads them back. Author
PantosAlgo Session Boxes (Asia / London / New York) : Draws the Asia, London and New York session ranges (high/low boxes) on the chart, so you can instantly see each session's range, breakouts and retests. Author: Panteleimon Prantsidis
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
CanvasTabs: a lightweight tab bar for MQL5 based on CCanvas : A lightweight tab bar for chart panels, drawn with the standard CCanvas class. One include file, several independent instances per chart, click selection, resizing and safe cleanup. Includes a demo Expert Advisor. Author: Sayed Ali
Prop Firm Risk Manager - daily loss and trailing drawdown guard : Account guard for prop-firm challenges. It does not open trades: it watches the whole account (manual trades and any EA) and closes everything before the firm's limits are broken. - Daily loss limit: closes all and blocks trading
Robustness Lab: Optimisation robustness map with plateau score for the Strategy Tester : Draws a live heatmap of two optimised inputs while the Strategy Tester optimises your EA, and scores every cell by its neighbourhood: the plateau score is the mean minus k times the standard deviation of the
Robustness Lab: Monte Carlo drawdown analysis of your trading history : Takes the closed trades of your account (all, or filtered by magic number and symbol), reshuffles or resamples them thousands of times and shows how deep the drawdown could realistically get. You get drawdown percentiles, the
Robustness Lab: Market regime indicator (bias-corrected Hurst, efficiency ratio, volatility) : Classifies the market as trend, mean-reversion or noise using three public measures: the Hurst exponent by rescaled range with small-sample bias correction, Kaufman's efficiency ratio and the percentile of
Robustness Lab: Seasonality heatmap with t-statistics (hour x weekday) : Shows how a symbol has behaved in every hour of every weekday, as a heatmap on the chart. Colour the cells by t-statistic, mean return, hit rate or average range. Cells that pass a significance threshold get a gold frame, and
Risk Lot Calculator : Calculates the lot size for a risk % and a stop distance on any symbol, using the broker's own profit calculation, so the result is exact for forex, gold, indices, stocks and crypto. Author: Keanu Robin Kyle Jetha Alexander
Same H4 and D1 candles on every broker - NY close candles from H1 : Builds H2 to D1 candles from H1 on the New York close clock, so your indicators see the same candles on every broker, no matter which server time it uses. Detects the server clock automatically. Author: Lukas Szyry
Can I trade right now - session, session end and quote check in one call : One call before you send an order: is the session open, how long until it closes, are quotes still coming in, is trading allowed. Gives you the reason when the answer is no. Author: Lukas Szyry
MD Scalper – Trend / Reversal pending-stop scalper with trailing stop : Scalping Expert Advisor that reads a 3-period smoothed MA channel (High/Low), places pending stop orders either with the move (Trend) or behind it (Reversal), and trails the stop loss tick by tick. It includes broker-safe order
New article New Article Publishing System at the MQL5.community is published: We present you a new article publishing system at the MQL5.community. In the new system, we have tried to make the whole process of article writing clear and comfortable by breaking it into several steps. At each step we
Trend or Chop? A Variance-Ratio Scoreboard That Shows Whether Your Symbol Trends or Mean-Reverts on Each Horizon : Shows whether your symbol tends to trend or to mean-revert, and on which horizon. For five horizons (2, 4, 8, 16 and 32 bars by default) the indicator computes the variance ratio: the
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
PropFirm Consistency and Drawdown Monitor : Read-only PropFirm daily drawdown, trailing total drawdown, and single-day consistency cap HUD monitor with four closed-bar iCustom buffers. Author: Nazim Yurtcan
Break-Even Stop Mover with Locked Profit : Moves the stop loss of open positions to break-even plus a small locked profit once they reach a profit trigger. Works on manual trades and on trades from any other EA (magic filter). Never opens or closes trades and never moves a stop backwards. Author
Breakout Follow-Through Statistics: Real Break or Fakeout After a New N-Bar High or Low? : Every new N-bar high or low gets tagged, timed, and scored — real breakout or fakeout — so the scorecard tells you what this symbol has actually done at its own extremes, not what you assume it does. Author
Pullback Depth Statistics: How Deep Do Pullbacks Go Before the Trend Resumes? : Builds a real depth distribution for this symbol's pullbacks — how far price typically retraces before the trend resumes, and how often it doesn't resume at all. Author: Victor Oluwasomidotun Akindipe
Squeeze Duration Statistics: How Long a Low-Volatility Squeeze Lasts and How Far the Range Expands After It : Measures low-volatility squeezes on your own symbol and timeframe. A squeeze is a run of bars in which the range of the last bars is small compared with the ATR. The indicator draws the
Trading Conditions Monitor - Gold, Forex and Synthetics : Is it a good moment to trade? One panel combines spread, session, rollover, volatility, daily range and high-impact news into a clear GOOD / CAUTION / AVOID status. Works on all symbols, tuned for gold (XAUUSD). Author: Blessing Samuel
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
Supertrend Gold Signals : Supertrend indicator for MT5 on Gold (XAUUSD), forex and indices: ATR trailing line in two colours, buy and sell arrows only on the closed candle of the flip, popup, push and sound alerts. Open source code. Author: Cristhian Alexander Gaibor Cuasquer
News Guard — news filter and slippage log for your existing EA : A bolt-on module (.mqh) plus a ready integration example: a news filter that keeps your EA out of new entries around economic releases — using only the built-in MT5 calendar, no DLL and no WebRequest — and a slippage log that records
Tester Memo Helper — Strategy Tester report to verification memo : A script that reads an MT5 Strategy Tester report (HTML) — and, if you give it one, the tester log — and writes a short verification memo: the key figures in one place, each compared against pass/check criteria that you set yourself
Сode that records balance and equity charts and calculates additional optimization criteria : If you have access to the Expert Advisor code, you can save balance and equity charts and calculate additional optimization criteria by adding additional code from this library. Author: Aleksei Kuznetsov
Five Point Retest : Five-point retest structures found on closed bars and turned into plans: a retest band, a target at point 3 and a fail level. Each plan runs until the target is touched or a close goes past the fail level, then fades, and a panel shows how many bullish and bearish structures