Exp_XPeriodCandle
This EA trades based on X-Period Candle breakouts, entering positions when price breaks above or below the high/low of a configurable lookback candle period. It systematically enters long on upside breaks and short on downside breaks, with configurable stop-loss and take-profit levels derived from the candle range or fixed points.
Open the interactive view (equity curve, symbol switch)Key facts
Backtest results (H1, about 1 year)
Not backtested yet — this EA could not be converted automatically.
Strategy analysis
The strategy core is based on X-period candle breakout trading, looking back a configurable number of bars to identify the highest high and lowest low as key breakout levels. Entry conditions: a long position is opened when price breaks above the X-period candle high, and a short position is opened when price breaks below the X-period candle low. Exit conditions rely on preset stop-loss and take-profit parameters, with stop-loss typically set at the opposite end of the breakout candle range or at a fixed point distance. Position sizing uses either fixed lot sizes or a balance-proportional calculation method. Money management provides risk control parameters but lacks dynamic position adjustment based on volatility or consecutive outcomes. The overall strategy logic is clear as a typical range breakout system, but it may suffer from frequent false breakouts causing consecutive losses in ranging markets.
Strengths
- Strategy logic is simple and clear, easy to understand and optimize
- Breakout strategies perform well in trending markets, capturing large swing profits
- Parameterized design is flexible with configurable lookback period and SL/TP
- Has explicit stop-loss settings to control maximum loss per trade
Weaknesses
- Prone to false breakouts in ranging markets, causing frequent stop-loss hits
- Lacks market regime filter, enters trades equally in trending and ranging conditions
- No dynamic position sizing to adjust lots based on volatility
- Missing new bar detection, may open duplicate positions within the same bar
Possible improvements
- Add a trend filter (e.g., ADX or MA direction) to trade breakouts only in trending conditions
- Implement new bar detection logic to prevent duplicate entries within the same bar
- Implement ATR-based dynamic stop-loss/take-profit and position sizing
Risk assessment
Overall risk: Medium
- False breakouts in ranging markets can cause consecutive losses
- Missing new bar detection may cause duplicate entries within same bar
- Fixed stop-loss may not adapt to different volatility environments
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
XPeriod | 10 | Lookback bar count for breakout high/low |
LotSize | 0.1 | Fixed lot size per trade |
StopLoss | 500 | Stop loss in points |
TakeProfit | 1000 | Take profit in points |
MagicNumber | 21119 | EA unique magic number identifier |
Timeframe | H1 | Indicator calculation timeframe, 0=current chart period |
Similar Breakout EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.