Exp_XPeriodCandle_X2
This EA is a two-candle trading system that uses custom XPeriod candle indicators across multiple timeframes to generate trading signals. It compares two consecutive XPeriod candles to determine trend direction and enters positions when both candles align in the same direction, serving as an expert advisor wrapper that orchestrates signal generation and trade execution.
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 strategy concept is based on a dual-candle confirmation pattern using custom XPeriod candles, determining market direction by comparing the open-close relationships of two consecutive XPeriod candles. Entry conditions require that both the first and second XPeriod candles close in the same direction (both bullish or both bearish), with confirmation across two timeframes before opening a long or short position. Exit conditions rely on the appearance of a reverse signal, meaning positions are closed when the XPeriod candle sequence shows an opposing arrangement. Position sizing uses a fixed lot approach with the trade volume set through input parameters, lacking any dynamic position increase or decrease mechanism. In terms of money management, the EA provides stop-loss and take-profit parameters, but the core exit relies on signal reversal rather than volatility-based dynamic stop calculations. Overall, this is a multi-timeframe trend confirmation system that uses directional consistency of candles across dual timeframes to filter out false signals.
Strengths
- Dual-timeframe confirmation mechanism effectively filters single-timeframe false signals, improving entry quality
- XPeriod custom-period candles are more flexible than traditional timeframes, adapting to different market rhythms
- Dual-candle confirmation logic is simple and clear, making it easy to understand and backtest
Weaknesses
- Fixed lot position sizing lacks flexibility, with no dynamic adjustment based on account equity or volatility
- Default stop-loss and take-profit are zero, creating risk of trading without protective stops
- Relying solely on signal reversal for exits can lead to significant drawdowns during volatile market conditions
Possible improvements
- Add ATR-based dynamic stop-loss and take-profit calculation to adapt protection levels to market volatility
- Implement a money management module that automatically calculates optimal lot size based on account balance and risk ratio
Risk assessment
Overall risk: Medium
- Default stop-loss and take-profit parameters are zero, leaving no protective stops if the user forgets to configure them
- Exits rely entirely on signal reversal, lacking maximum drawdown limits or time-based stop mechanisms
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
SoundCV | true | Sound notification switch |
StopLoss | 0 | Stop loss in points, 0 means no stop loss |
TakeProfit | 0 | Take profit in points, 0 means no take profit |
TradeVolume | 0.1 | Fixed trading lot size |
Timeframe1 | PERIOD_CURRENT | First timeframe period |
Timeframe2 | PERIOD_CURRENT | Second timeframe period |
XPeriod1 | 10 | XPeriod indicator period for first timeframe |
XPeriod2 | 20 | XPeriod indicator period for second timeframe |
Similar Multi-Timeframe EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.