DrawdownGuard Account Protector
- Utilità
-
Meshari Abdulrahman A Altunisi
MQL5 developer and active trader specializing in Expert Advisors, indicators and trade management tools for MetaTrader 5.
What I build:
- Expert Advisors from your strategy rules (entries, exits, filters, sessions) - Versione: 1.0
- Attivazioni: 10
DrawdownGuard protects your whole MetaTrader 5 account from breaking daily-loss and maximum-drawdown rules. When a limit is reached, it closes all open positions, deletes pending orders and keeps the account flat until the next daily reset.
It is built for prop-firm challenges and for traders who want hard, automatic risk limits. It works with manual trading and with any other Expert Advisor running on the same account. DrawdownGuard never opens trades.
Main features
- Daily loss limit: closes everything when today's loss reaches your limit, then blocks new trades until the reset hour.
- Maximum overall drawdown: static (from the initial balance) or trailing (from the highest balance reached).
- Prop-firm daily base: measure the daily loss from the balance at day start, or from the higher of balance and equity at day start.
- Percent or money: set every limit in percent or in account currency.
- Safety buffer: act a little before the limit, to leave room for slippage in fast markets.
- Profit target lock: optionally lock the account once a profit target is reached, so a passed challenge is not lost.
- Keeps you flat: any trade opened while the account is locked is closed immediately.
- Survives restarts: initial balance, daily base and locks are saved, so closing the terminal does not reset the protection.
- Status panel: shows status, balance, equity, daily loss, overall drawdown, floors and time to the next reset.
- Alerts: popup alert and optional push notification when a limit is hit.
How to use
- Attach DrawdownGuard to any one chart (any symbol, any timeframe).
- Set your limits in the inputs and enable Algo Trading.
- Keep the terminal running (a VPS is recommended for 24/7 protection).
Inputs
- Limit unit: percent of base or account currency.
- Max daily loss: daily loss limit (0 = off).
- Max overall drawdown: overall drawdown limit (0 = off).
- Daily loss measured from: balance at day start, or higher of balance/equity at day start.
- Overall drawdown mode: static or trailing.
- Initial balance: starting balance of the challenge (0 = balance when first attached).
- Safety buffer: act this much before the limit (same unit, 0 = off).
- Profit target: lock the account when profit reaches this level (0 = off).
- Daily reset hour: server hour when the daily loss resets.
- Close all open positions / Delete pending orders / Keep closing new trades while locked: actions on breach.
- Show popup alert / Send push notification: alerts.
- Clear saved locks and start fresh: use once when you start a new account or challenge, then set it back to false.
- Show status panel, Panel X/Y offset: panel display.
Important
- Algo Trading must be enabled, otherwise the utility cannot close positions.
- Positions are closed at market price. In very fast markets or gaps the final loss can be slightly larger than the limit. Use the Safety buffer to act earlier.
- DrawdownGuard is a risk tool. It does not generate signals and does not guarantee profits.
