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
Backtest results (H1, about 1 year)
| Symbol | P&L | Annual | Max DD | Trades | Win rate | Sharpe | Recovery | Losing streak | Per trade | Status |
|---|---|---|---|---|---|---|---|---|---|---|
| EURUSD | 0.00% | 0.00% | 0.00% | 0 | — | — | — | — | — | Not convertible yet |
| GBPUSD | 0.00% | 0.00% | 0.00% | 0 | — | — | — | — | — | Not convertible yet |
| USDJPY | 0.00% | 0.00% | 0.00% | 0 | — | — | — | — | — | Not convertible yet |
| XAUUSD | 0.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
Parameters
| Parameter | Default | Description |
|---|---|---|
MM | 0.1 | Margin usage ratio for lot size calculation |
StopLoss_ | 1000 | Stop loss in points |
TakeProfit_ | 2000 | Take profit in points |
Deviation_ | 10 | Maximum allowed slippage in points |
BuyPosOpen | true | Allow long entry |
SellPosOpen | true | Allow short entry |
BuyPosClose | true | Allow long close |
SellPosClose | true | Allow short close |
InpInd_Timeframe | PERIOD_H1 | Indicator calculation timeframe |
MA_SMethod | MODE_LWMA | Smoothing method selection |
MA_Length | 30 | Smoothing period length |
MA_Phase | 100 | Smoothing phase parameter (JJMA range -100 to +100) |
SignalBar | 1 | Bar index for signal (0=current bar) |
Similar Trend Following EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.