EA-22827 · Utility

Close all positions

This EA is a utility tool that closes all open positions on the account. It does not open any trades itself; its sole function is to liquidate all existing positions, typically used as an emergency exit or account reset mechanism.

Open the interactive view (equity curve, symbol switch)

Key facts

CategoryUtility
RiskSafe
Rating★★☆☆☆
TypeUtility tool
TimeframesM1, M5, M15, M30, H1, H4, D1
IndicatorsNone
AuthorCopyright © 2018, Vladimir Karputov

Backtest results (H1, about 1 year)

Not backtested yet — this EA could not be converted automatically.

Strategy analysis

This EA has no trading strategy concept as it does not enter positions based on any technical indicators or signals. Its sole function is to iterate through all account positions and close them one by one, serving as a pure account management utility. Exit conditions are triggered by user manual action or preset conditions to execute full position liquidation. Position sizing is not applicable since the EA never opens positions. Money management is likewise not applicable as it only executes closing operations. Use cases include emergency stop-loss, end-of-day settlement, or risk control linkage with other EAs. Risk points include slippage during closure and inability to close positions promptly under extreme market conditions.

Strengths

  • One-click close all positions, simple and efficient operation
  • Can serve as risk control toolused alongside other EAs,enhancing account safety
  • Simple code logic, easy to understand and maintain
  • Reduces operational delay from manually closing positions one by one
  • Suitable for rapid risk control in emergency situations

Weaknesses

  • Cannot selectively close positions; closing all may be too aggressive
  • No slippage protection or retry mechanism; may fail under extreme market conditions
  • Lacks confirmation mechanism; easy to accidentally trigger full liquidation
  • Does not distinguish between profitable and losing positions; may close winning trades
  • Cannot set partial close or proportional closing of positions

Possible improvements

  • Add selective closing functionality: filter by symbol, direction, or profit/loss status
  • Add confirmation dialog and anti-accidental trigger mechanism to avoid unintended full liquidation
  • Add retry mechanism and slippage protection to improve closure success rate under extreme market conditions

Risk assessment

Overall risk: Safe

  • May fail to close positions under extreme market conditions due to slippage
  • Accidental trigger may cause unintended full liquidation resulting in unnecessary losses

Evaluation scores

Code quality3.0
Strategy logic1.0
Risk management2.0
Robustness2.0
Innovation1.0
Documentation1.0
Overall1.7

Parameters

ParameterDefaultDescription
Close AlltrueSwitch parameter to trigger close-all operation
Slippage3Allowed slippage in points
MagicNumber0Unique order identifier number

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.