Dampt Equity Lock
- Utilitários
-
The Dam Phan
I build and test MetaTrader 5 Expert Advisors, with one focus: finding out whether a strategy still works after real trading costs, before you risk money on it.
What I do
• Custom MT5 EAs and indicators from your rules or specification (MQL5, clean commented source code). - Versão: 1.10
- Atualizado: 4 dezembro 2026
- Ativações: 10
Dampt Equity Lock watches your account equity and acts when a limit you set is reached. It is useful for traders who follow fixed risk rules, for example the daily loss and maximum drawdown rules used by many funded-account programs, and for anyone who wants a hard stop for a bad day.
What it does
- Daily loss limit in percent or account currency, measured from start-of-day balance, equity, or the higher of the two. Day reset hour and time zone (server or GMT) are configurable.
- Overall drawdown limit, static (from initial balance) or trailing (from equity peak).
- Optional profit target.
- When a limit is reached it closes all positions, deletes pending orders and locks trading: until the next day reset for the daily limit, or until you reset it for the drawdown limit and the profit target. While locked, any new position is closed immediately.
- Optional rules: maximum new positions per day, maximum lot size per position, warning for positions without a stop loss, closing all positions before the weekend.
- Warnings before a limit is reached (default at 70% and 90%) via terminal alert, push notification or e-mail.
- An "act early" buffer lets you trigger before the exact limit to leave room for slippage.
- Works on the whole account (all symbols, all EAs and manual trades) or only on one magic number.
- Stored state (initial balance, day reference, locks) survives terminal restarts.
- Only one copy runs per account, to avoid conflicting actions.
- No DLL, no web requests. No data leaves your terminal.
How to use
Attach it to any one chart and keep the terminal running (a VPS is recommended). Set your limits in the inputs. To clear stored state and locks, type RESET in the "Reset code" input and attach it again. The reset is applied once; then clear the "Reset code" input.
Limitations - please read
- It can only act while the terminal is running and connected. If the terminal is closed or offline, nothing is protected.
- Price gaps (weekend, news, low liquidity) can move equity beyond a limit before positions can be closed. The final loss can be larger than the limit.
- MetaTrader does not allow an EA to block manual order buttons. Equity Lock closes such positions right after they are opened.
- Your broker or program may calculate limits differently (reset time, balance vs equity, commissions, swaps). Set the inputs to match their rules and keep a safety buffer. Equity Lock does not guarantee compliance with any third-party rules.
- In the Strategy Tester it opens small demonstration trades so you can see the protection working. It never opens trades on a live chart.
