EA Close
EA Close is a utility expert advisor designed to close all open positions and/or pending orders on the account either immediately or based on configurable conditions such as profit/loss thresholds, magic number, symbol, or time. It does not open any new trades and serves solely as a position/order management tool for risk control and account cleanup.
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
EA Close is fundamentally not a trading strategy EA but rather a position management utility tool. Its core function is to batch-close positions or delete pending orders based on user-configured parameters. Entry conditions are not applicable since it does not open positions; exit conditions include closing by total profit threshold, total loss threshold, per-position profit/loss threshold, magic number filter, symbol filter, time-based scheduled closing, and more. In terms of position management, the EA does not involve position-opening logic and only handles closing operations, with options to close long positions, short positions, or all positions. For money management, it protects account equity by setting profit/loss thresholds to prevent excessive drawdown or lock in realized profits. The EA is typically used as a supplementary tool alongside other trading strategy EAs, executing one-click or conditional closing when specific criteria are met.
Strengths
- Simple and intuitive operation with one-click batch closing for improved execution efficiency
- Supports multiple filter conditions (magic number, symbol, direction) for flexible closing scope control
- Profit/loss threshold closing effectively protects account equity by locking profits or limiting drawdown
- Highly compatible as a supplementary tool that works with any trading strategy EA
- Scheduled closing capability useful for session-based trading or automatic liquidation before major events
Weaknesses
- As a utility EA it generates no trading signals and is only meaningful when combined with other EAs or manual trading
- Batch closing during extreme market volatility may result in slippage causing actual fill prices to deviate from expected levels
- Lacks advanced risk management features such as partial closing or trailing stops, making functionality relatively limited
- Frequent polling to check conditions may increase server load, especially with large numbers of positions
- Some default parameter values may not suit all trading environments and require user adjustment based on actual conditions
Possible improvements
- Add partial closing functionality to allow gradual position reduction by percentage to minimize slippage impact
- Add a graphical interface panel for real-time position monitoring and one-click closing operations
- Add email/push notification to alert users after closing operations are executed
Risk assessment
Overall risk: Safe
- Batch closing during extreme market conditions may result in significant slippage due to insufficient liquidity
- Improper parameter settings (e.g., profit threshold too small) may trigger premature closing before optimal profit levels are reached
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
CloseAll | true | Close all positions |
CloseProfit | 0 | Close all when total profit reaches this value (0=disabled) |
CloseLoss | 0 | Close all when total loss reaches this value (0=disabled) |
MagicNumber | -1 | Close orders with specified magic number (-1=all) |
CloseBuy | true | Whether to close buy positions |
CloseSell | true | Whether to close sell positions |
ClosePending | false | Whether to delete pending orders |
Slippage | 3 | Allowed slippage in points |
Similar Utility EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.