Account Risk Guardian Mt4
- Utilities
-
Eduardo Cumplido
I am a chemical engineer and EFA-certified financial advisor, with experience in portfolio management, financial markets and MQL programming since 2010. Over the years, I have combined software development, quantitative analysis and strategy evaluation to turn real trading needs into practical - Version: 2.13
- Updated: 14 October 2026
- Activations: 10
Account Risk Guardian — your risk rules, watched across your whole account
Every strategy controls its own trades, but nobody watches the whole account. Several Expert Advisors and manual trades at the same time can add up to more drawdown, more risk or more trades than you intended.
Account Risk Guardian is installed on a single chart and watches the whole account: manual trades and trades from any Expert Advisor, on every symbol. It compares drawdown, risk to stop loss, exposure, margin and your trading activity with the limits you set, on every price update. When one is exceeded, it responds the way you chose: an alert, blocking new trades, or closing and locking. It does not open trades, does not give signals and never places or moves a stop loss.
What you get
Daily, weekly, monthly and total drawdown. Each period has its own limit, in % or in money, and its own reference:
- daily, weekly and monthly: equity at the start of the period, balance at the start, the higher of the two, or the highest equity of the period;
- total: highest equity (trailing) or initial balance (fixed).
There is one common reset hour based on server time. You see the current drawdown, what remains and the equity level at which the limit would be exceeded. Deposits and withdrawals do not count as losses.
Warnings before you reach the limit. Warning at 50 % and critical at 80 % of the limit for drawdown, floating loss and total risk; the other rules have their own levels. You can adjust them in Advanced mode.
Real risk to stop loss.
- It adds up the risk of all open positions and of pending orders if they are triggered, as a % of equity, against a global budget.
- It also checks risk per trade and per symbol; in Advanced, with your own limits per symbol.
- If positions or orders have no stop loss, their risk cannot be measured: the panel warns that the data is incomplete, shows the total as a minimum (≥), and the missing stop loss rule flags it.
Exposure and margin.
- Maximum positions and pending orders, total lots and lots per symbol.
- Margin level with three thresholds: warning, reduce risk and the one that triggers the response.
- Risk and loss limits per magic number, that is, per Expert Advisor. On netting accounts they only alert.
Trading activity and schedule limits.
- Trades per day, week or month, losing trades of the day and losing streaks.
- A pause with no new trades (cooldown) for a set time, until a given hour or until the next allowed day. Optionally, also after every loss.
- Weekly trading schedule, hour by hour.
Floating loss, account target and daily profit giveback limit.
- Floating loss limit.
- Optional account target.
- Optional daily profit giveback limit: once a target is reached, it acts if you give back more than allowed from the day's peak (by amount, by % of the peak or in steps).
You decide what happens for each rule. Each rule has its value and its response. Depending on the rule, you choose between:
- alerts only;
- block new trades while the limit is exceeded;
- close the excess;
- pause trading;
- block new trades until the lock ends;
- close all and lock.
In Advanced mode you combine 13 individual actions in a matrix of rules and actions. Blocks act afterwards: Guardian cannot prevent an order from being sent, but it closes the position or deletes the pending order that appears during a block.
Ready-made templates.
- Conservative, Balanced (default) and Strict.
- Two generic templates for funded accounts, with limits set at 90 % of common reference values. They do not correspond to any specific firm.
- Custom.
In Conservative and Balanced only the drawdowns, the target and the profit giveback limit close trades; the rest alert (the schedule, if you enable it, blocks). Always check the exact rules of your funding firm.
Start in simulation.
- Every rule is evaluated and every action is logged as simulated, without closing or locking anything. Alerts are still sent, marked [SIM].
- When you are satisfied, press Go live. Before it activates, it warns you about the rules that are already exceeded, whose actions will run at that moment.
The response, step by step. Each response runs once per episode. You see every step with its result (sent, success, partial, failed or simulated), the lock status and the recent responses.
Manual actions with confirmation.
- Close all positions, the losing ones or the worst one.
- Delete pending orders.
- Lock new trades, full lock and unlock.
- Pause Guardian.
Alerts and daily summary.
- MetaTrader alert window, push notification, email and sound, by severity level. The same alert is not repeated within the interval you choose.
- A daily summary by push at every daily reset.
- Push and email must first be set up in the MetaTrader options.
Audit log with CSV export. Every breach, action, lock and settings change is recorded with time, rule, value, limit, action and result, with filters by category.
Status in view.
- In live mode, if Guardian cannot act (no connection or algorithmic trading disabled), it shows this on the panel and issues a critical alert while the terminal is running.
- Every close is checked, with up to 3 attempts.
- Settings, locks and references are saved per account and restored when MetaTrader restarts.
- If you open it on several charts of the same account, only one manages the account and the others stay read-only.
Interface.
- Panel on the chart in English, Spanish, French and Italian.
- Simple mode (Overview, Drawdown, Limits and Activity) or Advanced, with more tabs and all the thresholds.
- Automatic scale or 70 to 150 %, and help on every card.
- No DLLs or web connections.
How to use it
- Drag Account Risk Guardian onto a single chart of the account and enable algorithmic trading (Algo Trading in MetaTrader 5, AutoTrading in MetaTrader 4). It has only two input parameters: the initial template and starting in simulation. Everything else is set in the panel and saved automatically.
- Follow the setup wizard: choose the template, the mode (Simulation is recommended), the interface and the language, and press Start Guardian. References start at the current equity.
- In Limits, review the main rules: enable them, adjust their value and choose what happens when they are reached.
- Follow the account in Overview and Drawdown. In Activity you will see each response, the locks, the alerts and the log.
- When the simulation behaves as you expect, press Go live and confirm.
- In MetaTrader 4, set the Account History tab to "All History" so that the weekly and monthly counters are complete.
Demo in the Strategy Tester: run it in visual mode. The panel appears in full and updates with the test, using the template and the simulation mode from the input parameters. In the tester no alerts are sent, CSV export is not available, and your account's saved data is neither read nor written. In MetaTrader 4 the tester is view-only, because MT4 does not send clicks to programs in the tester.
Important: Account Risk Guardian is a tool for monitoring and controlling account risk. It does not open trades, does not provide signals or investment advice, and does not guarantee any result or compliance with the rules of a funding firm. It does not prevent losses or guarantee to limit them to a given amount. It only acts with the Expert Advisor on the chart, the terminal connected and algorithmic trading enabled. Closes are sent at market after the limit is detected: slippage, price gaps or a broker rejection can make the loss exceed the limit or leave a position open. Risk is measured to the stop loss using the symbol data provided by your broker. Test your settings in simulation before going live. Leveraged products carry a high risk of losing money. Trading involves risk.

