EA-15188 · Trend Following

Exp_Candles_Smoothed

This EA trades trend reversals detected by the Candles_Smoothed custom indicator, which applies configurable smoothing algorithms to candlestick data. It opens buy positions on bullish trend transitions and sell positions on bearish trend transitions, with optional position closing on opposite signals and configurable money management based on a percentage of margin.

Open the interactive view (equity curve, symbol switch)

Key facts

RiskMedium
Blow-up riskLow
Rating★★★☆☆
TypeTrading EA
TimeframesM15, H1, H4
IndicatorsCandles_Smoothed, SMA, EMA, LWMA, JJMA, JurX, ParMA, T3, VIDYA, AMA
Author—

Backtest results (H1, about 1 year)

SymbolP&LAnnualMax DDTradesWin rateSharpeRecoveryLosing streakPer tradeStatus
EURUSD0.00%0.00%0.00%0—————Not convertible yet
GBPUSD0.00%0.00%0.00%0—————Not convertible yet
USDJPY0.00%0.00%0.00%0—————Not convertible yet
XAUUSD0.00%0.00%0.00%0—————Not convertible yet

Why this EA never traded: no entry rule survived the conversion.

Converted from MQL5 to Python and run with the same rules for every EA. Positions use MT5 lot sizes (100,000 units per FX lot, 100 oz per gold lot) with 1:100 leverage, one order at a time, and a stop-out below 10% of the starting balance. Sharpe is computed from the equity curve. Results marked as unreliable are shown for completeness only.

Blow-up risk: No blow-up pattern found

None of the usual blow-up patterns were found in the code, and the account was not stopped out in our backtests. That is not a guarantee: any EA can lose money.

High: stopped out in our backtest, or martingale/grid sizing without a stop loss. Elevated: martingale or grid sizing with a stop loss, or several positions at once without a stop loss. What the label means and what we found →

Strategy analysis

The core strategy of this EA uses the Candles_Smoothed indicator which applies configurable smoothing algorithms to candlestick data, then detects trend direction changes as trading signals. Entry conditions: when indicator buffer 4 transitions from 0 to 1, a buy signal (BUY_Open) is generated; when it transitions from 1 to 0, a sell signal (SELL_Open) is generated, representing a trend reversal. Exit conditions: supports opposite-signal closing (BUY_Close/SELL_Close), meaning existing positions are closed when the trend reverses again; additionally, fixed stop-loss (StopLoss_=1000 points) and take-profit (TakeProfit_=2000 points) are applied. Position sizing uses margin-percentage-based money management, where the MM parameter defaults to 0.1, meaning 10% of available margin is used to calculate lot size. The EA supports 10 smoothing methods (SMA, EMA, SMMA, LWMA, JJMA, JurX, ParMA, T3, VIDYA, AMA) selectable via the MA_SMethod parameter. Signals are only calculated on new bars to avoid redundant per-tick computation, with the SignalBar parameter controlling which bar's signal value is used. Additional closing logic exists: when both opening and closing in the same direction are enabled, if the previous bar's indicator value is not in the corresponding trend direction, a close signal is also triggered.

Strengths

  • Supports 10 smoothing algorithms offering high flexibility to adapt to different market conditions
  • Includes stop-loss and take-profit settings providing basic risk control
  • Signals only calculated on new bars, avoiding per-tick redundant computation and reducing resource usage
  • Opening and closing can be independently toggled, making trading logic flexibly configurable
  • Uses margin-percentage-based money management, which is more rational than fixed lot sizing

Weaknesses

  • Depends on the custom Candles_Smoothed indicator which must be present; indicator logic is opaque
  • Stop-loss and take-profit use fixed points without considering market volatility (e.g., ATR), may not suit all instruments
  • No spread filter; trades may fail frequently in high-spread environments
  • MM=0.1 means 10% margin usage, which can lead to over-leveraging with high leverage accounts
  • Code comments are garbled (encoding issue), harming readability and maintainability

Possible improvements

  • Add ATR-based dynamic stop-loss and take-profit to make risk control adaptive to market volatility
  • Add spread filter and maximum slippage check to avoid opening positions in high-cost environments

Risk assessment

Overall risk: Medium

  • Margin-percentage money management can lead to excessive per-trade risk under high leverage
  • Fixed-point stop-loss/take-profit does not account for varying volatility across instruments
  • No existing position check before opening new positions, risk of duplicate entries on same signal

Evaluation scores

Code quality3.0
Strategy logic3.0
Risk management3.0
Robustness3.0
Innovation2.0
Documentation1.0
Overall2.5

Parameters

ParameterDefaultDescription
MM0.1Margin usage ratio for lot size calculation
StopLoss_1000Stop loss in points
TakeProfit_2000Take profit in points
Deviation_10Maximum allowed slippage in points
BuyPosOpentrueAllow long entry
SellPosOpentrueAllow short entry
BuyPosClosetrueAllow long close
SellPosClosetrueAllow short close
InpInd_TimeframePERIOD_H1Indicator calculation timeframe
MA_SMethodMODE_LWMASmoothing method selection
MA_Length30Smoothing period length
MA_Phase100Smoothing phase parameter (JJMA range -100 to +100)
SignalBar1Bar index for signal (0=current bar)

Similar Trend Following 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.