Daily Equity Sentinel
- Utilitaires
- Version: 1.0
- Activations: 5
Account protection tool for MT5: daily and weekly loss limits and a daily profit lock on equity. When a limit is hit it closes the positions and keeps the account flat until the next day.
Daily Equity Sentinel is a trading utility for MetaTrader 5 - daily and weekly loss limits for the whole account. Sets a hard floor under your day - and keeps you out once it is hit. It works on any symbol (designed with XAUUSD / gold in mind) and on hedging and netting accounts.
What it does
- Daily loss limit - in % of the day-start equity and/or in money. When equity falls to the limit, every position in scope is closed.
- Lock until tomorrow - while locked, any new position (manual or from another EA) in scope is closed straight away, so revenge trading is not possible.
- Weekly loss limit and an optional daily profit lock (close everything and stop once the day's gain reaches your target).
- Panel - day-start equity, today's and this week's P/L, how much of the limit is used, status; CLOSE ALL and PAUSE TODAY buttons; alert and push notification when a limit is hit.
Safety (built in)
- The tool never uses martingale, grid or averaging down. Orders it opens always carry a stop-loss.
- Lot size from risk % of equity (or a fixed lot), normalised to the broker's min / max / step and reduced if free margin is not enough.
- Stop-loss and take-profit changes respect the broker's stops and freeze levels; no orders or closes are sent while the market is closed.
- Every action is printed to the Experts log so you can see what the tool did and why.
Strategy Tester demo
MetaTrader 5 does not send button clicks in the Strategy Tester, so the free demo runs an automatic demonstration: it opens sample trades every few bars and the tool manages them exactly as it would live. Run it in visual mode to watch the panel. Switch the demo off with the "Strategy Tester: run the automatic demo" input. The demo never runs on a live or demo account.
Inputs
| Input | Default |
|---|---|
| Positions the sentinel closes | All positions on the account |
| Daily loss limit (% of day-start equity, 0 = off) | 3.0 |
| Daily loss limit in money (0 = off) | 0 |
| Daily profit lock: close all at this gain % (0 = off) | 0 |
| Weekly loss limit (% of week-start equity, 0 = off) | 6.0 |
| While locked, close any new position in scope | true |
| Alert + push notification when a limit is hit | true |
| Default risk per order (% of equity), used when Fixed lot = 0 | 1.0 |
| Fixed lot (0 = size from risk %) | 0.0 |
| Maximum lot per order (0 = broker maximum) | 10.0 |
| Max slippage (points, 2-digit gold scale: 100 = 1.00 USD) | 30 |
| Magic number of orders opened by this tool | 26102302 |
| Panel X position (pixels) | 20 |
| Panel Y position (pixels) | 30 |
| Strategy Tester: run the automatic demo (opens sample trades) | true |
| Strategy Tester demo: bars between sample trades | 24 |
How to use
- Attach the tool to a chart (allow Algo Trading).
- Set your limits in the inputs; the panel appears in the top-left corner (position adjustable).
- Use the panel buttons; the guard rules run automatically every second, even without ticks.
Important notes
- A utility helps you manage risk - it cannot guarantee profit or prevent every loss (gaps and slippage can move price past any level).
- Test on a demo account first. Times are your broker's server time.
- Keep the terminal running (a VPS is recommended) for the automatic rules to work.
