Daily Loss Limit and Equity Lock MT4
- Yardımcı programlar
- Sürüm: 1.0
A daily loss limit only helps if it is acted on, also on the day you would rather ignore it. Daily Loss Limit acts on it for you: you set one line for the day, and when equity reaches it, Daily Loss Limit closes everything and closes or deletes every new order until the next daily reset (see Honest limits).
Free, fully working, no time limit. No nag screens, no upgrade prompts inside the program. It never opens a trade on your account.
What it does
- Daily loss limit in money or in % of the day reference (default: 5 %). The day reference is the balance at the daily reset, or the higher of balance and equity at the reset.
- Daily reset at a time you set, in your broker's server time (default 00:00).
- Whole account: it runs on one chart and watches manual trades, the mobile app and every EA.
- Close and lock: when equity reaches the line, pending orders are deleted first, then open orders are closed, largest loser first. The account is then locked until the next daily reset. While locked, any new market order is closed and any new pending order is deleted again (can be switched off).
- Optional daily profit target (money or %, off by default): when equity reaches it, everything is closed and the account is locked until the reset. "Stop for the day when I have made X."
- Warning level (default 70 % of the limit used): one alert and push message per day.
- Close queue: closes use a fresh price and your slippage setting; requotes, busy server and busy trade context are retried with back-off; a closed market or freeze level is waited for instead of spamming requests; FIFO accounts close the oldest order first; an order above the symbol's maximum lot is closed in parts; a daily request budget for enforcement.
- Survives restarts: the day reference and the lock are saved per account. After a restart while locked, anything still open is closed again. A late reset (EA attached during the day, terminal off at the reset) rebuilds the reference from the account history, so losses since the reset are not forgiven.
- Panel: status, equity, balance, day reference, today's P/L, money left before the line and % of the limit used, the profit target, a countdown to the reset, and a CLOSE ALL button (two clicks).
- Alerts: terminal popup, push to the MetaTrader mobile app, optional sound.
Quick start
- Switch on AutoTrading. Open one extra chart (any symbol) and attach Daily Loss Limit. Tick Allow live trading.
- Set the Account History tab of the Terminal window to All History (right-click). MT4 only lets an EA read the history that this tab shows; the panel warns you (HISTORY INCOMPLETE) if today's entries are missing.
- Set your daily loss limit and, if you want one, a daily profit target. Check the reset time against the clock in Market Watch.
- Keep the terminal running, ideally on a VPS. Use one Daily Loss Limit instance per account. A second copy on another chart of the same terminal shows "SECOND INSTANCE - display only" and takes over if the first one is removed (or stops responding for 30 s). Don't run it in two terminals on the same account.
What it is not
Daily Loss Limit is a daily guard. It is not a prop-firm rule monitor: it has no firm profiles, no max-drawdown lock, no trailing loss, no news or weekend rules, and its reset is in server time only. There is no unlock button: a lock ends at the reset, or when you set the rule that caused it to 0.
Honest limits
- MetaTrader 4 cannot disable trading for an account. "Locked" means: everything is closed, and every new order is closed or deleted again, usually within seconds. In that time a new order can lose money. Stop the source of new trades (other EAs, copiers) yourself.
- The guard acts normally on the first tick or timer second after equity crosses the line. Gaps and slippage can take equity below the line.
- It only works while the terminal runs with AutoTrading on and a connection to the broker. A VPS is recommended.
- The broker can reject or delay a close; the panel and alerts tell you when an order must be closed by hand.
- MT4 books deposits and withdrawals as balance entries, and many brokers book fees, rebates or bonuses the same way. MT4 cannot tell them apart, so every balance entry moves the day reference and does not count as profit or loss. Credit is not a deposit: adding or removing credit moves equity and can reach the line or the target.
- In the Strategy Tester only, Daily Loss Limit places small demo trades so the guard has something to watch. On a live or demo account it never opens a trade.
- This is the MetaTrader 4 version. A MetaTrader 5 version is available separately.
Risk warning: trading leveraged products carries a high risk of loss. Daily Loss Limit reduces the risk of a large daily loss; it cannot remove it and does not guarantee any result.
