Daily Guard MT5
- Experts
-
Mario Jemic
Analista Certificato dei Mercati dei Capitali e dei Titoli
Investitore professionale.
Ingegnere sviluppatore dietro FXCM Trading Station.
Ho l’opportunità di lavorare con alcune delle tecnologie più avanzate disponibili oggi.
Posizione attuale: Zagabria, Croazia
Impieghi precedenti: - Versione: 1.0
- Attivazioni: 5
Account risk guard: daily loss limit, profit target and profit lock, maximum drawdown, trading hours, automatic stop loss and risk per trade, for manual trading and any Expert Advisor.
## Description
Daily Guard enforces the daily and overall loss limits, profit target and trading-hours rules you define, for manual trading and any Expert Advisor on the account.
Attach it to one chart. It watches every position and pending order on the account and acts when a rule is breached: it closes positions, deletes pending orders and closes any new trade while the rule is locked, depending on the action you choose for that rule. It does not open trades and does not give trading signals.
Algo Trading must be enabled in the terminal. Without it Daily Guard can only alert, and the panel shows a warning.
Account rules
- Daily loss limit in money or percent, with an optional safety buffer and a warning level.
- Daily profit target.
- Daily profit lock: once today's profit reaches a trigger, a floor is set. The floor is fixed (for example lock at +1 % after +2 %) or a share of the day's highest profit, so it rises with a good day. If the profit falls back to the floor, the account is locked until the next day.
- Maximum drawdown: static from the initial balance, or trailing on peak equity or peak balance, with an optional level where trailing stops.
- Trading window, trading days, no new trades after a set time, and closing at the end of the window.
- Friday close with a block until the next trading day.
- Pause after a number of losing trades in a row. Partial closes count as one trade.
- Spread filter per symbol.
Per-trade rules
- A position without a stop loss gets one automatically, at a fixed distance in points or a multiple of the ATR, or it is closed. You choose how many seconds to wait after the open, so you or your EA can set the stop loss first.
- Maximum risk per position: when the loss to the stop loss is above the percentage you set, the position is reduced by a partial close or closed.
- Optional break-even manager.
- Stop and freeze levels, the volume step and the minimum volume are respected.
Enforcement
Each account rule can alert only, block new trades while keeping existing positions, or close everything and block new trades. Locks survive terminal restarts and input changes. Daily locks end at the day reset you choose, in server time or in a custom time zone with EU or US daylight saving time. The drawdown lock stays until you clear it yourself. A global setting can limit every rule to alerts, which is useful for a trial run.
Optionally, when a daily loss or drawdown lock starts, Daily Guard can close the other charts in this terminal that run an Expert Advisor, so those programs stop sending orders. This option is off by default and does not use the magic number or symbol filters.
Filters by magic number and symbol let you protect the whole account or only selected trades. Presets in a prop-firm style help you start; please check them against your firm's current rules.
Panel and alerts
A compact panel on the chart with sections you switch on and off:
- Today: the result in money and percent, the day high, closed trades won and lost.
- Limits: progress bars for the daily loss, the target, the profit lock and the maximum drawdown.
- Open risk: positions, lots and floating result, the day's result if every stop loss is hit compared with the daily limit, positions without a stop loss, the largest single risk.
- Rules: loss streak, trading hours, spread and the time to the day reset.
- Last actions: what Daily Guard did and when.
Alerts can be sent as popup, push notification, email or sound. A daily CSV log records every action.
Important limitations
- MetaTrader does not allow one program to stop another from sending orders. Daily Guard reacts after an order is opened, so a blocked trade exists for a short time and costs spread and commission.
- The automatic stop loss and the risk check act a few seconds after a position appears, not at the moment of the order.
- Trades from other terminals or the mobile app are handled when this terminal sees them.
- There is no protection while the terminal is off or disconnected. A VPS is recommended.
- Gaps and slippage can make the realised loss larger than the limit.
Strategy Tester
In the tester Daily Guard opens small sample trades so you can see the rules working (input "Open sample trades in the tester", on by default). On a live or demo chart it never opens trades.
Support is available through MQL5 comments and private messages.
