Exp_Candles_XSmoothed
This EA trades breakouts from smoothed candle high/low channels. It uses a custom Candles_Smoothed indicator to generate smoothed high and low boundaries, then enters long when price closes above the smoothed high plus a breakout level, and enters short when price closes below the smoothed low minus a breakout level. Positions are closed on reverse signals and managed with fixed stop loss and take profit.
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 concept is a breakout trading system based on smoothed candle high/low channels, using the Candles_Smoothed indicator to smooth price extremes and filter market noise. Entry conditions: a long position is opened when the close price breaks above the smoothed high plus a breakout level (dLevel), and a short position is opened when the close price breaks below the smoothed low minus dLevel. Exit conditions: reverse breakout signals trigger position closure (e.g., a long position is closed when the close falls below the smoothed low minus dLevel), and each trade has a fixed stop loss of 1000 points and take profit of 2000 points. Position sizing is controlled by the MM parameter where negative values represent fixed lot sizes and positive values represent a percentage of the deposit. Money management relies on the TradeAlgorithms.mqh library functions, supporting dynamic lot calculation based on account balance percentage. The strategy operates on higher timeframes like H4 and uses the IsNewBar mechanism to ensure signal calculation occurs only once per bar, preventing duplicate entries.
Strengths
- Uses smoothing algorithms to filter price noise, reducing false breakout signals
- Supports 9 smoothing methods for flexibility across different market conditions
- Full open/close permission controls for both long and short directions
- IsNewBar mechanism prevents redundant signal calculation on the same bar
- Explicit stop loss and take profit parameters for defined risk management
Weaknesses
- Breakout strategies prone to frequent false signals and consecutive losses in ranging markets
- Fixed 1000-point SL and 2000-point TP may not suit all instruments and volatility environments
- Lacks existing position checking, potentially leading to duplicate entries
- No spread filter, which can be disadvantageous in high-spread conditions
- The loop searching from SignalBar through all bars is inefficient and logically unclear
Possible improvements
- Add position checking logic to avoid duplicate entries when same-direction positions already exist
- Add spread filtering and volatility-adaptive stop loss/take profit mechanism
Risk assessment
Overall risk: Medium
- Breakout strategy may trigger stop losses frequently in ranging markets leading to consecutive losses
- Lack of position checking may cause duplicate same-direction entries, amplifying risk exposure
- Fixed stop loss/take profit does not adapt to varying market volatility conditions
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
MM | -0.1 | Deposit ratio or fixed lot; negative = fixed lot |
StopLoss_ | 1000 | Stop loss in points |
TakeProfit_ | 2000 | Take profit in points |
Deviation_ | 10 | Max price deviation in points (slippage tolerance) |
BuyPosOpen | true | Allow opening long positions |
SellPosOpen | true | Allow opening short positions |
BuyPosClose | true | Allow closing long positions |
SellPosClose | true | Allow closing short positions |
InpInd_Timeframe | PERIOD_H4 | Indicator timeframe |
MA_SMethod | MODE_LWMA | Smoothing method (SMA/EMA/SMMA/LWMA/JJMA etc.) |
MA_Length | 30 | Smoothing depth/period |
MA_Phase | 100 | Smoothing parameter (JJMA: -100 to +100, VIDIA: CMO period, AMA: slow avg period) |
Level | 30 | Breakout level in points |
SignalBar | 1 | Bar index for entry signal |
Similar Breakout EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.