Aegis Account Protector MT4
- Utilities
-
Kenichiro Sakamoto
I'm Kenichiro Sakamoto, the developer behind FXEA365 — a studio building transparent, rule-based Expert Advisors for MetaTrader 5. - Version: 1.0
★ 100% FREE — full version, no limitations, no registration.
100% free, no limitations. If it earns a place on your charts, a short review is the one thing that helps us most — it takes 30 seconds and it is what lets other traders find this tool.
If Aegis helps your trading, please take a second to leave a review — it helps us a lot and keeps the tool free.
Our best seller for MT4 — Gold Viper Breakout (XAUUSD, MT4 version):
https://www.mql5.com/en/market/product/182520
Want it traded automatically? Megamax Donchian Trend does exactly this, hands off:
https://www.mql5.com/en/market/product/182526
More free tools from the same developer:
- Falcon Trailing Stop Manager (universal trailing stop & break-even): https://www.mql5.com/en/market/product/188540
- Donchian Trend Engine (our trend EA, also 100% free): https://www.mql5.com/en/market/product/185537
- All our EAs and tools: https://www.mql5.com/en/users/app.develop.sk/seller
Account Protector — Equity Guardian for Any EA or Manual Trading
Account Protector is a standalone risk-management utility. It does NOT open trades. Attach it to ONE chart and it watches your WHOLE account and steps in when your rules are breached — no matter which EA, signal, or manual order produced the positions. One protector covers everything running on the account.
This is a tool, not investment advice. It cannot prevent slippage, gaps, or a broker outage; it acts on the prices and account state your terminal receives.
WHAT IT PROTECTS AGAINST
- Equity trailing stop — close everything if equity falls a set % below its running peak. Locks in open profit and caps give-back.
- Maximum total drawdown — close everything if equity drops a set % below your peak balance.
- Daily loss limit — halt for the rest of the day (optionally closing open trades) once the day's loss reaches your limit.
- Margin-level emergency — close everything if the margin level falls below your floor, before a stop-out.
- Profit target — bank the day's gains by closing all at a set % profit, then stand aside until tomorrow.
- Consecutive losses — pause for the day after a losing streak.
- Weekend flat — go flat and stay flat from a chosen Friday hour.
- High-impact news pause — pause (and optionally close) around economic-calendar events.
HOW IT WORKS
Hard stops (equity trail, max drawdown, margin) close all in-scope positions once and stay halted until you press RESET — so a violated account does not silently re-arm. Daily stops (daily loss, profit target, consecutive losses, weekend) clear automatically at the next trading day. While halted, the protector can keep the account flat by closing any positions that re-appear.
You choose the scope: the whole account (all symbols) or just the chart symbol, with an optional magic-number filter so it only manages one strategy.
ON-CHART PANEL & BUTTONS
A clean status panel shows the current state, the trigger that fired, balance/equity, margin level, equity drawdown, the day's P/L, open positions and floating P/L, and every guard's setting at a glance. Two buttons: PANIC (close everything now) and RESET (re-arm the guards and re-baseline the peaks).
ALERTS
Optional push (MetaQuotes ID), e-mail, and generic webhook (Discord / Slack) notifications on every trigger. The webhook URL must be added to the terminal's allowed-URL list.
WORKS IN THE STRATEGY TESTER
The protection logic runs in the Strategy Tester, so you can attach it together with a trading EA and watch the triggers fire on historical data before going live.
=== WHO THIS IS FOR / NOT FOR ===
Right fit: anyone running EAs unattended who wants a hard floor under the account, prop-firm challenge traders who must never breach a daily or total drawdown limit, and anyone who has ever watched an open profit give itself back and wished something had closed it.
Not a fit: anyone looking for a tool that makes money — this one only ever closes positions and stops trading — anyone who will set the guards and never test them, and anyone who cannot leave the terminal running, since a protector that is offline protects nothing.
=== 5-MINUTE DEMO CHECKLIST ===
1) On a DEMO account, attach it to one quiet chart (M5 or M15 is fine) and keep AutoTrading enabled. It cannot close anything without that.
2) Set the scope deliberately before anything else: InpAllSymbols for a whole account, or the chart symbol plus InpMagicFilter to fence off one strategy. Getting this wrong is how you close trades you meant to keep.
3) Set a deliberately tight guard — a daily loss limit of 0.5%, say — open a losing position by hand, and watch it fire. Confirm the panel names the trigger that fired.
4) Now confirm the halt is real: try to open another position while halted. With InpKeepFlatWhileHalted on, it should be closed straight back out.
5) Press RESET and check the guards re-arm and the peaks re-baseline. Hard stops stay halted until you do this — that is deliberate, so a violated account cannot silently re-arm.
6) If you use alerts, fire a test trigger and confirm it arrives. A webhook URL must be added to the terminal's allowed-URL list first, or it fails silently.
The protection logic also runs in the Strategy Tester, so you can attach it alongside a trading EA and watch the triggers fire on historical data before any of this reaches a live account.
RECOMMENDED SETUP
- Attach to a single chart of any symbol (a quiet timeframe such as M5 or M15 is fine).
- Enable the guards you want; leave the rest off.
- For a multi-EA account, set scope to ALL symbols and magic filter to 0.
- Keep AutoTrading enabled so the utility can close positions.
- Broker-agnostic and account-currency aware; works on any broker and any account currency.
KEY INPUTS
- InpAllSymbols / InpMagicFilter: scope of protection
- InpUseEquityTrail / InpEquityTrailPct: trailing equity stop
- InpUseMaxDD / InpMaxDDPct: maximum total drawdown
- InpUseDailyLoss / InpDailyLossPct / InpDailyLossClose: daily loss limit
- InpUseMarginStop / InpMarginLevelPct: margin-level emergency close
- InpUseProfitTarget / InpProfitTargetPct: daily profit target
- InpUseConsecLoss / InpMaxConsecLoss: consecutive-loss pause
- InpUseFridayClose / InpFridayCloseHour: weekend flat
- InpUseNewsStop and the news settings: high-impact news pause
- InpKeepFlatWhileHalted: keep the account flat while halted
- Notification settings: push / e-mail / webhook
What each of our 4 free utilities does, and how to set them up: https://www.mql5.com/en/blogs/post/772365
=== THE EAs THESE TOOLS WERE BUILT FOR ===
We build this utility for ourselves first: it is the risk plumbing around our own Expert Advisors. Those EAs are paid, and every number below is a real-tick backtest with equity drawdown, not balance drawdown.
- Megamax Donchian Trend (USDJPY H1) — profit factor 1.50, maximum equity drawdown 7.3%, 631 trades over 9.4 years: https://www.mql5.com/en/market/product/182526
- Nasdaq Dip Buyer (USTEC) — profit factor 1.43, maximum equity drawdown 7.5%, 61 trades over 5 years: https://www.mql5.com/en/market/product/182528
Hard stop-loss on every trade, one position at a time, no martingale and no grid. If that is not the kind of EA you want, this free tool still works with whatever you already run.
100% free, no limitations. If it earns a place on your charts, a short review is the one thing that helps us most — it takes 30 seconds and it is what lets other traders find this tool.
If Aegis helps your trading, please take a second to leave a review — it helps us a lot and keeps the tool free.
Our best seller for MT4 — Gold Viper Breakout (XAUUSD, MT4 version):
https://www.mql5.com/en/market/product/182520
Want it traded automatically? Megamax Donchian Trend does exactly this, hands off:
https://www.mql5.com/en/market/product/182526
More free tools from the same developer:
- Falcon Trailing Stop Manager (universal trailing stop & break-even): https://www.mql5.com/en/market/product/188540
- Donchian Trend Engine (our trend EA, also 100% free): https://www.mql5.com/en/market/product/185537
- All our EAs and tools: https://www.mql5.com/en/users/app.develop.sk/seller
Account Protector — Equity Guardian for Any EA or Manual Trading
Account Protector is a standalone risk-management utility. It does NOT open trades. Attach it to ONE chart and it watches your WHOLE account and steps in when your rules are breached — no matter which EA, signal, or manual order produced the positions. One protector covers everything running on the account.
This is a tool, not investment advice. It cannot prevent slippage, gaps, or a broker outage; it acts on the prices and account state your terminal receives.
WHAT IT PROTECTS AGAINST
- Equity trailing stop — close everything if equity falls a set % below its running peak. Locks in open profit and caps give-back.
- Maximum total drawdown — close everything if equity drops a set % below your peak balance.
- Daily loss limit — halt for the rest of the day (optionally closing open trades) once the day's loss reaches your limit.
- Margin-level emergency — close everything if the margin level falls below your floor, before a stop-out.
- Profit target — bank the day's gains by closing all at a set % profit, then stand aside until tomorrow.
- Consecutive losses — pause for the day after a losing streak.
- Weekend flat — go flat and stay flat from a chosen Friday hour.
- High-impact news pause — pause (and optionally close) around economic-calendar events.
HOW IT WORKS
Hard stops (equity trail, max drawdown, margin) close all in-scope positions once and stay halted until you press RESET — so a violated account does not silently re-arm. Daily stops (daily loss, profit target, consecutive losses, weekend) clear automatically at the next trading day. While halted, the protector can keep the account flat by closing any positions that re-appear.
You choose the scope: the whole account (all symbols) or just the chart symbol, with an optional magic-number filter so it only manages one strategy.
ON-CHART PANEL & BUTTONS
A clean status panel shows the current state, the trigger that fired, balance/equity, margin level, equity drawdown, the day's P/L, open positions and floating P/L, and every guard's setting at a glance. Two buttons: PANIC (close everything now) and RESET (re-arm the guards and re-baseline the peaks).
ALERTS
Optional push (MetaQuotes ID), e-mail, and generic webhook (Discord / Slack) notifications on every trigger. The webhook URL must be added to the terminal's allowed-URL list.
WORKS IN THE STRATEGY TESTER
The protection logic runs in the Strategy Tester, so you can attach it together with a trading EA and watch the triggers fire on historical data before going live.
=== WHO THIS IS FOR / NOT FOR ===
Right fit: anyone running EAs unattended who wants a hard floor under the account, prop-firm challenge traders who must never breach a daily or total drawdown limit, and anyone who has ever watched an open profit give itself back and wished something had closed it.
Not a fit: anyone looking for a tool that makes money — this one only ever closes positions and stops trading — anyone who will set the guards and never test them, and anyone who cannot leave the terminal running, since a protector that is offline protects nothing.
=== 5-MINUTE DEMO CHECKLIST ===
1) On a DEMO account, attach it to one quiet chart (M5 or M15 is fine) and keep AutoTrading enabled. It cannot close anything without that.
2) Set the scope deliberately before anything else: InpAllSymbols for a whole account, or the chart symbol plus InpMagicFilter to fence off one strategy. Getting this wrong is how you close trades you meant to keep.
3) Set a deliberately tight guard — a daily loss limit of 0.5%, say — open a losing position by hand, and watch it fire. Confirm the panel names the trigger that fired.
4) Now confirm the halt is real: try to open another position while halted. With InpKeepFlatWhileHalted on, it should be closed straight back out.
5) Press RESET and check the guards re-arm and the peaks re-baseline. Hard stops stay halted until you do this — that is deliberate, so a violated account cannot silently re-arm.
6) If you use alerts, fire a test trigger and confirm it arrives. A webhook URL must be added to the terminal's allowed-URL list first, or it fails silently.
The protection logic also runs in the Strategy Tester, so you can attach it alongside a trading EA and watch the triggers fire on historical data before any of this reaches a live account.
RECOMMENDED SETUP
- Attach to a single chart of any symbol (a quiet timeframe such as M5 or M15 is fine).
- Enable the guards you want; leave the rest off.
- For a multi-EA account, set scope to ALL symbols and magic filter to 0.
- Keep AutoTrading enabled so the utility can close positions.
- Broker-agnostic and account-currency aware; works on any broker and any account currency.
KEY INPUTS
- InpAllSymbols / InpMagicFilter: scope of protection
- InpUseEquityTrail / InpEquityTrailPct: trailing equity stop
- InpUseMaxDD / InpMaxDDPct: maximum total drawdown
- InpUseDailyLoss / InpDailyLossPct / InpDailyLossClose: daily loss limit
- InpUseMarginStop / InpMarginLevelPct: margin-level emergency close
- InpUseProfitTarget / InpProfitTargetPct: daily profit target
- InpUseConsecLoss / InpMaxConsecLoss: consecutive-loss pause
- InpUseFridayClose / InpFridayCloseHour: weekend flat
- InpUseNewsStop and the news settings: high-impact news pause
- InpKeepFlatWhileHalted: keep the account flat while halted
- Notification settings: push / e-mail / webhook
What each of our 4 free utilities does, and how to set them up: https://www.mql5.com/en/blogs/post/772365
=== THE EAs THESE TOOLS WERE BUILT FOR ===
We build this utility for ourselves first: it is the risk plumbing around our own Expert Advisors. Those EAs are paid, and every number below is a real-tick backtest with equity drawdown, not balance drawdown.
- Megamax Donchian Trend (USDJPY H1) — profit factor 1.50, maximum equity drawdown 7.3%, 631 trades over 9.4 years: https://www.mql5.com/en/market/product/182526
- Nasdaq Dip Buyer (USTEC) — profit factor 1.43, maximum equity drawdown 7.5%, 61 trades over 5 years: https://www.mql5.com/en/market/product/182528
Hard stop-loss on every trade, one position at a time, no martingale and no grid. If that is not the kind of EA you want, this free tool still works with whatever you already run.
