EA-44099 · Utility

test.mq5

This EA is a position management utility that monitors open positions and applies risk-based profit/loss closing and trailing stop logic. It does not open any new positions itself, only manages existing ones by closing when profit/loss thresholds are hit or adjusting stop losses with a trailing mechanism. It acts as an automated trade manager rather than a strategy-based trading system.

Open the interactive view (equity curve, symbol switch)

Key facts

CategoryUtility
RiskMedium
Rating★★☆☆☆
TypeUtility tool
TimeframesM5, M15, H1, H4
Indicators—
Author—

Backtest results (H1, about 1 year)

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

Strategy analysis

The core strategy concept of this EA is risk management and position protection rather than autonomous trade signal generation. Regarding entry conditions, the EA completely lacks the ability to open positions on its own and relies entirely on manually established or other EA-initiated positions for management. Exit conditions include two scenarios: automatic position closing to lock in profit when the floating profit reaches the ProfitPercentage threshold of account balance, or stop-loss closing when the loss reaches the RiskPercentage threshold. In terms of position sizing, the EA does not calculate or adjust position sizes; it only modifies stop-loss and take-profit levels of existing positions. For money management, it uses account balance percentages to define risk and profit thresholds, which is more flexible than fixed pip values as it adapts to the account size. The trailing stop logic progressively moves the stop-loss in the favorable direction as price advances, while capping the trailing stop at the entry price to ensure profitable positions do not revert to losses due to trailing adjustments.

Strengths

  • Uses account balance percentage for risk and profit thresholds, self-adapting to different account sizes
  • Trailing stop logic caps stop-loss at entry price, ensuring profitable positions cannot revert to losses
  • Clean and simple code structure that is easy to understand and modify
  • Supports both buy and sell position management with bidirectional trailing logic

Weaknesses

  • Completely lacks autonomous position-opening capability, functioning only as a position management tool rather than a complete trading strategy
  • Profit/loss calculation uses Point() instead of actual contract value (tick value/lot size), which may produce inaccurate threshold judgments on non-standard instruments
  • Trailing stop points do not account for the symbol's minimum stop level (StopsLevel), potentially causing modification rejections due to stops being too close
  • No new bar check is performed, meaning all position checks run on every tick, causing unnecessary performance overhead in high-frequency tick environments
  • Lacks error checking and handling for PositionModify and PositionClose operation results

Possible improvements

  • Use SymbolInfoDouble(SYMBOL_TRADE_TICK_VALUE) with actual lot size for profit/loss calculation instead of the inaccurate Point()-based approach
  • Add StopsLevel validation to ensure modified stop-loss meets the broker's minimum stop distance requirement, and implement error handling for trade operation results

Risk assessment

Overall risk: Medium

  • Profit/loss calculation using Point() instead of real contract value may cause inaccurate threshold judgments on non-standard instruments, leading to premature or delayed position closing
  • No StopsLevel check means trailing stop modifications may be silently rejected by the server without any notification
  • Full position traversal on every tick may cause stop-loss modification delays during extreme market conditions

Evaluation scores

Code quality3.0
Strategy logic2.0
Risk management3.0
Robustness2.0
Innovation1.0
Documentation1.0
Overall2.0

Parameters

ParameterDefaultDescription
RiskPercentage1.0Risk percentage per trade; closes position at this loss ratio
ProfitPercentage2.0Profit percentage per trade; closes position at this profit ratio
TrailingStopPoints50Trailing stop points for adjusting stop loss with price

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.