EA-49021 · Utility

Traling Stop (when SL used and Not)

This EA is a trailing stop utility that automatically adjusts the stop loss of open positions as price moves in favor. It handles both positions with an existing stop loss and positions without one, applying the trailing step to both buy and sell positions.

Open the interactive view (equity curve, symbol switch)

Key facts

CategoryUtility
RiskMedium
Rating★★☆☆☆
TypeUtility tool
TimeframesM1, M5, M15, M30, H1, H4, D1
IndicatorsNone
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 trailing stop, which gradually moves the stop loss in the favorable direction as price advances to lock in profits. Regarding entry conditions, this EA does not open any positions itself; it only manages existing open positions. For exit conditions, it achieves conditional exits by continuously raising the stop loss for buy positions or lowering it for sell positions, closing the position when price retraces to hit the trailing stop level. In terms of position sizing, this EA does not handle lot size calculation at all; it only modifies the stop loss and take profit of existing positions. For money management, the EA has no money management logic whatsoever, lacking risk ratio calculations or dynamic position sizing. A notable feature is its handling of positions without a stop loss: it first sets an initial stop loss when price moves beyond the open price by the trailing step, then continues trailing from there.

Strengths

  • Simple and clear logic, easy to understand and use, suitable for beginners
  • Handles both positions with and without existing stop loss, covering two common scenarios
  • Supports trailing stop for both buy and sell positions

Weaknesses

  • Only one trailing step parameter, lacking distinction between minimum profit distance and stop level, insufficient flexibility
  • Sell position stop loss detection has a bug: using stopLoss < openPrice to detect no SL, but sell position SL should be above open price, making this condition always true
  • No error checking for failed stop loss modifications; PositionModify return value is not validated
  • No symbol filtering, applies trailing stop to all symbols' positions instead of only the current chart symbol
  • Does not consider spread and minimum stop distance limits, which may cause modification failures

Possible improvements

  • Fix the sell position no-stop-loss detection logic; should use stopLoss == 0 or check if SL is in the correct direction relative to open price
  • Add PositionModify return value checking and error handling logic, add symbol filtering to only process positions of the current chart symbol
  • Add a minimum profit distance parameter, separate the trigger condition for initial SL setting from the trailing step, and add stop level parameter to support multi-level trailing

Risk assessment

Overall risk: Medium

  • Sell position no-SL detection bug causes positions with existing SL to be incorrectly treated as having no SL, potentially moving stop loss to wrong level
  • No error handling mechanism; failed stop loss modifications go undetected, potentially leaving positions unprotected
  • No symbol filtering may accidentally modify stop losses of positions on other symbols

Evaluation scores

Code quality2.0
Strategy logic2.0
Risk management2.0
Robustness1.0
Innovation1.0
Documentation2.0
Overall1.7

Parameters

ParameterDefaultDescription
Traling_Step3.0Trailing stop step in points from current 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.