Prop Firm Drawdown Guard — a hard daily stop and max-loss lock for MT5
A prop-firm challenge often doesn't fail on a bad strategy but on one bad day: a losing streak, a revenge trade, an EA that keeps going, and the daily drawdown rule is gone before anyone looks at the screen.
I've published Prop Firm Drawdown Guard, a small MT5 utility that watches your equity and acts before a drawdown rule is broken.
What it does
- Daily loss limit in percent or money. The percent can be taken from the initial balance (the usual prop-firm rule) or from the day-start value, and the daily loss is measured from the balance, the equity or the higher of the two at your reset hour.
- Maximum loss, static from the initial balance or trailing from the highest equity.
- Optional daily profit lock: close everything and stop for the day once a target is reached.
- Acts early, by default at 95% of a limit, because closing positions takes a moment and prices move. Warns at 80%.
When a limit is reached it closes the positions, deletes pending orders and keeps the account flat: until the next daily reset for the daily limit, for good for the maximum loss. Locks survive a terminal restart. It never opens a trade.
How I tested it
In the Strategy Tester I paired it with a deliberately reckless test EA (5 lots, no stop) on EURUSD. The guard stopped the day at a 480 USD loss on a 500 USD daily limit, locked the account at 970 USD on a 1,000 USD maximum loss, followed a trailing maximum from the equity peak, and closed the day at +200 USD with the profit lock on. After every lock it closed any new position immediately.
Two honest limits
- It can only act while MetaTrader is running and connected, and gaps or slippage can push the final loss past the limit. Run it on a VPS and set the limits with room to spare.
- It cannot switch off other EAs. If one keeps opening trades after a lock, the guard closes them and warns you once a day; each reopen costs the spread, so switch Algo Trading off.
Get it
https://www.mql5.com/en/market/product/209370
Questions about setting it for a specific firm's rules? Send me the rules and I'll tell you which inputs to use.


