EA-20880 · Utility

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

CategoryUtility
RiskSafe
Rating★★★☆☆
TypeUtility tool
TimeframesM1, M5, M15, H1, H4, D1
IndicatorsNone
AuthorCopyright © 2015, adam malik bin kasang

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

Code quality3.0
Strategy logic3.0
Risk management4.0
Robustness3.0
Innovation2.0
Documentation2.0
Overall2.8

Parameters

ParameterDefaultDescription
EquityProfitPercent110Equity profit % threshold for closing
EquityLossPercent90Equity loss % threshold for closing
CloseAllOnTargettrueClose all positions when threshold reached
CheckInterval1000Equity check interval in milliseconds
MagicNumber0EA magic number to distinguish trade instances

Similar Utility EAs

Backtests are historical simulations and do not guarantee future results. Not financial advice.

Get the weekly Arena report

One email a week: ranking changes, new signals and new research. No spam; unsubscribe any time.