Equity Guard Daily Loss and Drawdown Limiter
- Utilitários
-
Keiki Ishii
Independent MQL5 developer from Japan.
I build tools for MetaTrader 5 traders: risk managers, indicators and Expert Advisors.
How I work:
- Every product is tested in the Strategy Tester and on demo accounts (hedging and netting) before release. - Versão: 1.4
- Ativações: 5
Equity Guard is a risk manager for MT5. It has no trading strategy.
It watches every position on your account: positions from other Expert Advisors and manual trades. When a position breaks the rules you set, Equity Guard closes it, or adds a stop loss to it.
Use it next to your own EAs, or while you trade by hand. It works on hedging and netting accounts, on any symbol.
What it does
-
Daily loss limit. Set the limit in percent or in money. When today's loss reaches it, the panel turns to BLOCKED. New positions are closed as soon as they appear, until 00:00 server time. You can also close all open positions at that moment.
-
Maximum drawdown. Static (from the starting balance) or trailing (from the equity or balance peak). When equity reaches the floor, all positions are closed and the panel shows LOCKED. The lock stays until you reset it.
-
Stop loss on every trade. A position without a stop loss gets one after a short wait (15 seconds by default). The distance is an ATR multiple or a fixed number of pips. You can choose to close such positions instead.
-
No averaging down. A new position in the same direction as a losing position, at a better price, is closed. On netting accounts, only the added volume is closed.
-
No martingale. A new position with a bigger lot than the last losing trade, opened within a set time after that loss (240 minutes by default), is closed.
-
Open risk cap. The sum of the losses to all stop losses is kept under a percent of the balance. If it goes above, the newest positions are closed first.
-
Friday close (optional). Close all positions at a set time on Friday. New positions are blocked until Monday 00:00 server time.
-
Alerts and push notifications when it acts (at most one popup every 5 seconds). Every action is written to the Experts journal.
Status panel
-
A colored status band: ACTIVE (green), BLOCKED (red for the daily limit, orange for the weekend), LOCKED (dark red, max drawdown), INACTIVE (gray, AutoTrading is off).
-
Today P/L, daily limit and room today, drawdown floor and room, open risk and risk cap, day base.
-
Usage bars with a percent for the daily limit, the drawdown and the open risk.
-
All amounts in your account currency, with thousands separators (for example 1,000,000.00 JPY).
-
RECENT ACTIONS: the last actions, newest first. Example: 11:09:30 EURUSD #..692 MARTINGALE closed 0.02 . Tags: AUTO SL, AVERAGING, MARTINGALE, RISK CAP, BLOCKED NEW, DAILY LIMIT, MAX DD, WEEKEND.
How the daily loss is calculated
-
The day starts at 00:00 server time (your broker's time).
-
Today's P/L = equity now − day base − deposits and withdrawals today. It includes floating P/L.
-
Day base: balance at the start of the day, equity at the start of the day, or the higher of the two. You choose.
-
Broker credit is not counted as equity.
-
If you attach Equity Guard in the middle of the day, the start-of-day balance is rebuilt from the deal history. The start-of-day equity is only known if the EA was running at 00:00. If it is not known, the balance is used and the panel shows "(est.)".
What "blocked" means
MT5 does not let one EA stop another EA from sending orders. While blocked, Equity Guard closes any new position as soon as it appears (BLOCKED NEW in the panel). Spread and commission are paid on these positions. Pending orders are deleted. If another EA keeps sending orders while blocked, turn that EA off.
Important
-
AutoTrading must be on. If it is off, the panel shows INACTIVE and Equity Guard can only watch.
-
Equity Guard does not send orders while the market of a symbol is closed. A close waits and is sent when the market opens.
-
Rules of prop firms change. Check your firm's rules and set the values with a margin.
-
Equity Guard does not make a strategy profitable. It limits losses according to the rules you set.
Strategy Tester
Equity Guard has no trading strategy. In the Strategy Tester only, it opens small trades with a stop loss and a take profit, and only during trading hours. This path exists for Market validation and for checking how the guard works. It is not a trading strategy, and the tester results say nothing about future trading.
Set "Tester trade mode" to "Showcase" to also open a trade without a stop loss, an averaging trade and a bigger lot after a loss. You can then watch Equity Guard correct them on the panel.
Recommended use
-
Attach Equity Guard to one chart only. Leave "Positions to guard" at "All symbols on the account".
-
Put the magic numbers of EAs that the guard must not touch into "Magic numbers to ignore".
-
Set the daily and drawdown limits below your account's real limits.
-
Test it on a demo account first.
Main inputs
-
Scope: Positions to guard / Magic numbers to ignore
-
Daily loss limit: Daily loss limit mode / Daily loss limit (% of base, or money) / Base of the daily limit / Action when the daily limit is reached / Warn when this % of the daily limit is used
-
Maximum drawdown: Max drawdown mode / Max drawdown / Drawdown type / Starting balance
-
Stop loss enforcement: Position without stop loss / Grace time before acting / Stop loss distance mode / Stop loss distance in pips / ATR timeframe, period and multiplier
-
Averaging down and martingale: Close new positions that average down / Close bigger positions opened right after a loss / Martingale window after a losing close / Compare only positions with the same magic number
-
Open risk cap: Max total risk to stops (% of balance)
-
Weekend: Close all on Friday and block until Monday / Friday close hour and minute (server time)
-
Blocking: Delete pending orders while blocked
-
Notifications: Alert popup / Push notification to the mobile terminal
-
Panel: Show status panel / position / font size / colors
-
Maintenance: Reset drawdown lock, peak and start balance on start
Default values: daily loss limit 4% of the balance at day start, max drawdown 8% of the starting balance (static), ATR(14, H1) × 1.5 stop loss, open risk cap 3% of the balance.
Support
Questions and bug reports: send a private message to the seller (Equity Guard Tools) on MQL5.
