Equity Guard Daily Loss and Drawdown Limiter

  • Yardımcı programlar
  • Keiki Ishii
    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.
  • Sürüm: 1.4
  • Etkinleştirmeler: 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.


Yazarın diğer ürünleri
Spread ATR Gate shows how much of your move the trading cost takes. It has no trade signals and never trades. Spread in points does not say much on its own. 30 points is small on a 4-hour gold chart and large on a 1-minute chart. Spread ATR Gate compares the round-trip cost (spread + the commission you enter) with the average bar range (ATR) and with the target distance you plan to use, and colors the result green, yellow or red. It works on any symbol: forex (including JPY pairs), gold and othe
Loss Streak Card shows how long a losing streak is normal at your win rate, and whether your current streak is inside that range. It has no trade signals and never trades. Losing streaks come from the win rate itself. At a 35% win rate, a run of 10 losses in a row happens in about 3 out of 4 sequences of 300 trades. At a 70% win rate, 5 losses in a row still happen in more than half of the sequences of 500 trades. Traders who do not expect this often increase the lot after losses. Loss Streak Ca
One Shot Panel is an order panel for manual traders. One click sends one market order with a stop loss, with the lot calculated from your risk and your stop distance. It refuses the orders that usually make a losing day worse: removing or widening a stop, adding to a losing position, and a bigger lot right after a loss. It has no trading idea of its own. You decide when to buy or sell. The panel does the arithmetic and keeps the rules you set while you are calm. Order buttons BUY and SELL : one
News Flat marks the minutes around economic releases on your MT5 chart, and can keep your account flat during them. It has no trading strategy. It reads the economic calendar built into MetaTrader 5. For the currencies of your chart symbol, it shades a window from X minutes before to Y minutes after each important release. You choose the importance and the window length. What you do with the window is your choice: watch it, or let News Flat close trades opened inside it. News Flat does not trade
Session Cost Map draws the Tokyo, London and New York session ranges and measures what happened after a range break on your own chart history, after your trading cost. It has no trade signals and never trades. "Asian range breakout" and "London breakout" are popular ideas. Session Cost Map does not give you an arrow for them. It gives you the numbers: how many breaks there were in the loaded history, and the average move N bars later, before and after the round-trip cost. Our own measurement. In
Swap Payback is a multi-symbol table that shows how many rollover days a positive swap needs to pay back the spread. It has no trade signals and never trades. A positive swap looks attractive in the symbol specification. But you pay the spread (and maybe a commission) when you open and close. Swap Payback puts the swap and the cost side by side for many symbols at once, and counts the days. What each row shows Swap long and swap short for one rollover, in your account currency per 1.00 lot and i
Filtrele:
Değerlendirme yok
Değerlendirmeye yanıt