Equity Guard is a risk-management Expert Advisor for MetaTrader 5. It does not open trades. It watches the account equity and acts when one of your limits is reached:

Equity Guard panel on a EURUSD H4 chart (demo account, Algo Trading off)
When a limit is hit, the EA closes the open positions, deletes the pending orders, sends an alert (and a push notification if enabled) and keeps closing any new trades until the next trading day (daily limits) or until you reset the saved state (maximum drawdown).
Features
How to use
Attach the EA to one chart of the account (any symbol, any timeframe) and turn on Algo Trading. Set the limits to match your rules and test on a demo account first.
Inputs
| Input | Default | Meaning |
| Max daily loss, % of day-start base | 4.0 | 0 = off |
| Max daily loss, account currency | 0 | 0 = off |
| Max overall drawdown, % | 8.0 | 0 = off |
| Drawdown measured | From initial balance | or from the highest equity (trailing) |
| Initial balance | 0 | 0 = balance when the EA first starts |
| Daily profit target, % | 0 | 0 = off |
| Daily loss measured from | Higher of balance and equity | or balance, or equity |
| New day starts at server hour | 0 | 0-23 |
| Close open positions / Delete pending orders | true / true | action when a limit is hit |
| Keep closing new trades until reset | true | keeps the account flat while locked |
| Only this magic number | -1 | -1 = all trades |
| Only the chart symbol | false | |
| Pop-up alert / Push notification | true / false | |
| Panel settings | corner, offsets, font size, colours | |
| Reset saved state on start | false | set to true once to clear a lock, then back to false |
Notes
Smart Money Concept Expert Advisor - Market Strucutre, FVG, Pullback
This Expert Advisor trades fair value gaps in the direction of market structure, the way Smart Money Concepts describes it. It is the third step of a series that has been built one piece at a time: In previous shared codes, the SMC Pullback Indicator decided which highs and lows matter, the SMC Market Structure indicator turned those swings into a trend with BoS, CHoCH, IDM and liquidity sweeps, and this EA trades the result.
Trend Finder Scanner
A quick market scan to identify sustainable trends. The script analyses all symbols from the ‘Market Overview’ in a matter of seconds and identifies instruments with the clearest and strongest price movements using R² linear regression and the ADX indicator.
Telegram Trade Notifier - opens, closes, pending orders and daily summary
Sends every opened and closed position, pending orders and a daily account summary to your Telegram chat. It never trades on your account.
Basket Break-Even Lines - buy, sell and net break-even with target price
Several buys and sells open on one symbol? The indicator draws where all buys, all sells and the whole basket break even, and the price for a profit target. Planned entries can be added to see the break-even before you trade.