Top MQL4 and MQL5 source codes based on user ratings - 216

Submit your code

Static safety scan of EA/indicator source: DLL imports, programs started, account data sent online, hidden text, martingale, SL = 0.

A script that closes open positions in one click, with filters for chart symbol, magic number, buy/sell direction and profit/loss state. Works on netting and hedging accounts.

Lightweight real-time HUD for MetaTrader 5 that monitors live spread (points and pips), session Min/Avg/Max spread, and tick arrival velocity (ticks/sec and ticks/min) with automatic market regime classification.

Script that calculates the lot size for a given risk percent and stop loss. Places no orders.

Night session range breakout for XAUUSD: one decision per day, a hash-chained journal written before every order, and safe recovery after restarts.

Closes the newer side when a buy and a sell are open on the same symbol (manual trades or any EA). For prop firm accounts that forbid hedging. Never opens trades.

Blocks new trades on US CPI and FOMC days (New York date). Built-in calendar 2015-2027, works in the Strategy Tester. Never opens trades.

Converts broker server time to UTC and New York time with US and EU daylight saving rules. Works the same live and in the Strategy Tester, where TimeGMT() returns server time.

Shows on the chart how much of today's prop-firm daily loss limit is used. Counts closed P/L (with commission and swap) and floating P/L since the daily reset, and shows the loss so far, the money left and the equity floor. The base can be balance, equity, or the higher of the two at the reset. Colour warnings at 50% and 80%, with alerts. Display only: never trades.

Part 2 of the indicator regression-testing series. Measures how many bars of history a recursive indicator (EMA, Wilder smoothing, or a cascade of up to three stages) needs before the error left by its starting value falls below a tolerance and recommends a safe warm-up length.

1...209210211212213214215216