Close by Equity Percent
This EA monitors account equity as a percentage of balance and automatically closes all positions when equity reaches a user-defined profit or loss threshold. It acts as an equity-based risk management utility rather than a strategy-based trading system.
Open the interactive view (equity curve, symbol switch)Key facts
Backtest results (H1, about 1 year)
Not backtested yet — this EA could not be converted automatically.
Strategy analysis
This EA does not execute any trading strategy but functions as an account-level risk management utility. Its core concept is to trigger a full position close when account equity relative to balance reaches a specified percentage threshold. Entry conditions are not applicable since the EA does not open trades. Exit conditions are: when equity percentage reaches the profit target (e.g., 110% of balance) or the loss limit (e.g., 90% of balance), all open positions are closed. Position sizing is not applicable since the EA does not open positions. For money management, the EA implements global profit/loss control through percentage thresholds, essentially serving as an account-level take-profit and stop-loss mechanism. This tool is suitable for overall risk control when running multiple strategies simultaneously.
Strengths
- Provides account-level profit/loss protection against significant drawdowns
- Flexible percentage-based thresholds adaptable to different risk appetites
- Suitable for global risk control when running multiple strategies in parallel
- Simple and intuitive, easy to understand and configure
Weaknesses
- Only triggers when equity reaches threshold; cannot handle gap moves where equity instantly jumps past the threshold
- Closing all positions may cause unnecessary stops as some positions may still have profit potential
- Lacks staged closing mechanism, cannot reduce positions gradually to minimize market impact
- Does not account for spread and slippage effects on closing execution prices
Possible improvements
- Add staged closing functionality allowing gradual position reduction instead of all-at-once closure
- Add notification features (email, push) to alert users promptly when positions are closed
Risk assessment
Overall risk: Safe
- Slippage during closing may cause actual losses to exceed the set threshold
- In extreme market conditions, may not be able to close all positions in time
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
EquityProfitPercent | 110 | Equity profit % threshold for closing |
EquityLossPercent | 90 | Equity loss % threshold for closing |
CloseAllOnTarget | true | Close all positions when threshold reached |
CheckInterval | 1000 | Equity check interval in milliseconds |
MagicNumber | 0 | EA magic number to distinguish trade instances |
Similar Utility EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.