Watch how to download trading robots for free
Find us on Twitter!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Experts

Prop-Firm Equity Guard - daily and max drawdown protection (FTMO-style) - expert for MetaTrader 5

Cristian Ciunae
Cristian Ciunae
MQL5 developer specialized in ICT / Smart Money Concepts trading systems: liquidity sweep entries, order blocks, market structure shifts and session-based logic. I build complete Expert Advisors with strict prop-firm risk management (FTMO-style daily and max drawdown protection). Clear
Views:
106
Rating:
(1)
Published:
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

A standalone account-level protection utility for prop-firm challenges (FTMO and similar). Attach it to a single chart and it monitors the entire account. Works on any symbol and timeframe.

How it works:

  • Daily loss limit — measured from a day-start snapshot (max of balance/equity, configurable rollover hour to match your prop firm's server time)
  • Max overall loss limit — measured from the initial account size
  • Safety buffer — halts trading BEFORE the real limit is hit, so a spread spike or slippage can't fail your challenge
  • On breach: closes all open positions, deletes all pending orders, and sets the global variable DDGUARD_HALT to 1.0. Any other EA on the account can respect the halt with a single line: if(GlobalVariableGet("DDGUARD_HALT") > 0.0) return;
  • Daily breach unlocks automatically on the next trading day; max breach is permanent — matching prop-firm logic.
  • Tested on MT5 (see screenshot: live trigger closing all positions). No external dependencies. Feedback welcome.

    Disclaimer: Not affiliated with, endorsed by, or connected to FTMO or any prop firm. "FTMO" is used only to describe the type of rules this tool protects.


Live trigger: daily drawdown breach — all positions closed, halt flag set
MSB Pro ALGO Position Risk Monitor for MT5 MSB Pro ALGO Position Risk Monitor for MT5

Free MT5 position risk monitor displaying stop-loss risk, account risk percentage, positions without SL and individual position risk directly on the chart.

MSB Pro Algo Neon Account Dashboard for MT5 MSB Pro Algo Neon Account Dashboard for MT5

Free neon-style MT5 account dashboard displaying balance, equity, floating P/L, daily realized P/L, win rate and open positions directly on the chart.

Accelerator Oscillator (AC) Accelerator Oscillator (AC)

The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

MACD Signals MACD Signals

Indicator edition for new platform.