New EA Helps Protect Traders Account From Over Leveraging & Accidental Trades
If you run Expert Advisors on your MetaTrader 5 account, you already know the feeling. You step away from your desk, confident your systems are running smoothly, only to come back and find something went wrong. Maybe an EA opened positions at the wrong lot size. Maybe a strategy that normally trades 0.1 lots suddenly fired off 1.0 lot orders because of a parameter glitch. Maybe you manually placed a trade in a rush and accidentally typed 5.0 instead of 0.5.
These things happen. And when they do, they can do serious damage to your account before you even notice.
That is exactly why I built Trade Equity Guardian.
The Problem With Trusting Automation Completely
Automated trading is powerful. It removes emotion, executes with speed, and lets you run multiple strategies around the clock. But automation is only as reliable as the code behind it, the broker connection feeding it, and the human who configured it.
Here are some real scenarios that catch traders off guard every single day:
A developer updates an EA and introduces a bug that miscalculates lot sizes. The EA runs fine during testing on a demo account, gets pushed to live, and within minutes it has opened several positions at ten times the intended size. By the time the trader notices, the account has taken a significant drawdown.
A trader runs multiple EAs on the same account. One strategy enters a position, and a second EA — due to a logic error or misconfigured symbol filter — also enters on the same pair. The combined exposure is now double what the trader intended, and neither EA is aware of the other.
A manual trader is placing a quick scalp during a news event. In the rush, they enter the wrong lot size. The market moves against them. What should have been a small loss turns into a large one because the position was oversized from the start.
None of these scenarios involve bad strategy. They involve human error and software glitches — the kinds of problems that no amount of backtesting can prevent.
What Trade Equity Guardian Does
Trade Equity Guardian is a lightweight EA that runs in the background on any chart and continuously monitors every open position on your account. It checks all trades at a regular interval you define — as frequently as every second if you want — and automatically closes any position that breaches one or more of your predefined thresholds.
It does not open trades. It does not interfere with your strategies. It simply watches, and acts when something crosses a line it should not have crossed.
There are four independent criteria you can set, and any combination of them can be active at the same time. If you set a value to zero, that criterion is simply ignored.
Maximum Lot Size — You define the largest lot size any single position should ever be. If a trade appears on your account at or above that size, it gets closed immediately. This is your first line of defence against fat-finger errors and EA malfunctions that miscalculate position sizing.
Maximum Percentage of Account Equity — You define the maximum percentage of your equity that any single position's margin should represent. If a trade is using too much of your account relative to your equity, it gets closed. This keeps individual position exposure in check regardless of what lot size was used, because the same lot size represents very different risk on different instruments.
Maximum Profit Amount — You set a dollar amount, and any trade whose profit (including swap) reaches that level or above gets closed. This acts as a universal profit target across all your positions. It is particularly useful if you run EAs that do not have their own take-profit logic, or if you want a hard ceiling on any single trade's profit regardless of what strategy opened it.
Maximum Loss Amount — You set a dollar amount as a positive number, and any trade whose loss reaches that level or worse gets closed. This is your last line of defence — a hard stop in dollar terms that protects your account if a position runs away from you. It works independently of any stop loss your EA or manual trade may have set, and it catches situations where a stop loss was forgotten, deleted, or never placed at all.
How It Protects You in Practice
Think of Trade Equity Guardian as an account-level risk manager that sits above all your other systems. Your EAs handle their own entries, exits, and trade management. Trade Equity Guardian does not care about any of that. It only cares about the result — is this position too big, too exposed, too profitable to leave running, or too deep in the red to tolerate?
Here are some practical ways traders are using it:
Prop firm account protection. If you trade a funded account, you cannot afford to blow through a drawdown limit because of a single bad trade. Set the maximum loss amount to a fraction of your allowed drawdown, and Trade Equity Guardian will cut any position that threatens your account before it does real damage.
Multi-EA risk management. When you run several Expert Advisors on one account, total exposure can creep up without any single EA being aware. Setting a maximum lot size or maximum equity percentage ensures that no individual position — from any source — exceeds what you are comfortable with.
Manual trading discipline. Even experienced manual traders make mistakes under pressure. A maximum lot size of, say, 2.0 lots means that if you accidentally enter 20.0 lots, the position is closed within seconds. That one setting alone could save your account one day.
Overnight and weekend protection. If you leave positions open outside of your active trading hours, setting a maximum loss amount gives you peace of mind that no single trade can do catastrophic damage while you are not watching.
EA development and testing on live accounts. When you are testing a new EA on a live account with small size, set tight thresholds. If the EA misbehaves, Trade Equity Guardian catches it before the mistake becomes expensive.
Filtering and Flexibility
You do not have to monitor everything. Trade Equity Guardian includes a magic number filter, so you can target only positions opened by a specific EA while leaving everything else untouched. There is also a symbol filter if you only want to monitor a particular instrument.
The check interval is configurable down to the second, and the EA also checks on every incoming tick as a backup — so even during quiet markets with low tick activity, your positions are still being watched.
If a close attempt fails due to requotes or server issues, the EA automatically retries up to a configurable number of times. You can set the allowed slippage in points to suit your broker and the instruments you trade.
When a position is closed, you get a full breakdown — the ticket number, symbol, direction, lot size, profit or loss, and the exact reason it was closed. This can be delivered as an on-screen alert, a push notification to your phone, and a log entry in the Experts tab for your records.
Set It and Forget It
The beauty of Trade Equity Guardian is its simplicity. You attach it to one chart, set your thresholds, and leave it running. It works across every symbol, every timeframe, and every broker. It has no external dependencies, no DLLs, and no complicated configuration.
You do not need to think about it until the day it saves you from a mistake you did not see coming. And on that day, you will be glad it was there.
You can find Trade Equity Guardian on the MQL5 Market here.
If you have questions about the EA or how to configure it for your specific setup, feel free to drop a comment below or message me directly. I am happy to help you get it dialled in.


