Backtest Data Preflight shows what bar history your MetaTrader 4 terminal can read for a symbol, timeframe and date range. Check the report before starting a backtest if you want to see whether the broker returned bars near the dates you asked for.
Try it on an hourly currency chart over a weekend. The report shows the interval between Friday's last open and the next one. Use the Strategy Tester's Report and Journal tabs to check what the test actually ran on.
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 worst net result first, until the level is back up, the way a broker stop-out works.
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.
Three Colors
Example: Moving Average indicator filling by different colors
MACD Sample
Classical MACD Sample.