Exp_AverageChangeCandle
This EA trades based on the average change of candle bodies compared to historical norms. It identifies when the current candle body significantly deviates from the average candle body size, treating above-average bodies as momentum signals for entry in the direction of the candle.
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.40% | -0.35% | 5.81% | 141 | 44.30% | -0.06 | -0.07 | 5 | −$0.53 | Reliable |
| GBPUSD | -3.25% | -2.83% | 7.43% | 139 | 43.90% | -0.50 | -0.44 | 6 | −$2.34 | Reliable |
| USDJPY | -2.33% | -2.03% | 5.68% | 177 | 45.50% | -0.44 | -0.41 | 7 | −$1.24 | Reliable |
| XAUUSD | -60.29% | -53.38% | 81.01% | 152 | 47.00% | -0.58 | -0.74 | 7 | −$41.56 | Reliable |
Profitable on 0 of 4 markets with reliable results.
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.
Month by month
| Market | Months with a gain | Best month | Worst month |
|---|---|---|---|
| EURUSD | 38% | +3.12% 2026-03 | -1.78% 2026-07 |
| GBPUSD | 46% | +3.96% 2026-03 | -2.59% 2026-10 |
| USDJPY | 54% | +1.56% 2026-04 | -2.27% 2026-03 |
| XAUUSD | 54% | +27.75% 2026-10 | -37.99% 2026-07 |
From the backtest equity curve, sampled about every two days; only reliable results.
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 strategy concept is based on the candle body change ratio, comparing the current candle body size to the historical average as a trading signal. Entry conditions trigger when the current candle body exceeds a multiple threshold of the historical average: a bullish candle (close above open) signals a buy, while a bearish candle (close below open) signals a sell. Exit conditions rely on fixed take-profit and stop-loss levels or opposing signals to close positions. Position sizing typically uses fixed lots without dynamic adjustment based on account equity. Money management lacks compound position control, and risk depends primarily on stop-loss settings and signal filtering reliability. The overall strategy logic is simple and intuitive, representing a momentum-type approach based on statistical deviation of price behavior.
Strengths
- Strategy logic is simple and intuitive, easy to understand and verify
- The momentum concept based on statistical deviation has reasonable market logic support
- Few parameters reduce the risk of overfitting
Weaknesses
- Fixed lot sizing lacks dynamic position management based on account risk
- Does not account for trading costs (spread, commission) erosion on short-term strategies
- Single candle signal lacks multi-timeframe confirmation, prone to false signals from market noise
Possible improvements
- Add multi-timeframe confirmation, e.g., only enter when H1 signal aligns with H4 trend direction
- Introduce dynamic position sizing based on ATR or account balance instead of fixed lots
Risk assessment
Overall risk: Medium
- Single candle signal lacks filtering mechanism, prone to frequent opening and closing in ranging markets
- Fixed stop-loss and take-profit do not adapt to market volatility changes; stop-loss may be too wide in low volatility and take-profit insufficient in high volatility
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
AverPeriod | 14 | Period for averaging candle body size |
K | 1.0 | Current-to-average body ratio threshold multiplier |
StopLoss | 400 | Stop loss in points |
TakeProfit | 800 | Take profit in points |
Lots | 0.1 | Fixed trading lot size |
Similar Candlestick Pattern EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.