Exp_ColorXCCXCandle
This EA trades based on the ColorXCCXCandle custom indicator, which uses dual-smoothed candle coloring to identify trend direction. It opens buy positions when the indicator turns bullish (color=2) and sell positions when it turns bearish (color=0), with configurable entry/exit switches for each direction. Position sizing is managed through multiple money management modes including lot-based, balance percentage, and free margin percentage.
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 concept is based on the ColorXCCXCandle indicator's trend direction identification, which classifies candles through dual smoothing algorithms (one for price and one for trend momentum), where color value 2 represents bullish trend, 0 represents bearish trend, and 1 represents neutral. Entry conditions are: a buy position opens when the signal bar's color value changes from non-2 to 2, and a sell position opens when it changes from non-0 to 0, requiring the previous bar's color state to have shifted, which provides trend reversal confirmation logic. Exit conditions include: automatic position closing on trend reversal based on configuration (long closes on bearish signal, short closes on bullish signal), with fixed stop loss (1000 points) and take profit (2000 points) set for each trade. Position sizing supports five modes: fixed lot, balance percentage, free margin percentage, balance after loss percentage, and free margin after loss percentage, controlled by the MM parameter for risk ratio. Money management uses standardized functions from the TradeAlgorithms library, each trade has explicit stop loss and take profit with a 1:2 risk-reward ratio, and slippage tolerance is configurable via the Deviation parameter.
Strengths
- Has explicit stop loss and take profit with a 1:2 risk-reward ratio, following sound risk management principles
- Supports multiple money management modes with high flexibility for different risk preferences
- Uses dual smoothing algorithms for trend determination, reducing false signals through thorough smoothing
- Buy/sell entry and exit can be independently toggled, allowing flexible strategy adjustment
- New bar detection mechanism prevents repeated trading within the same bar, reducing overtrading risk
Weaknesses
- Fixed stop loss of 1000 points and take profit of 2000 points may not suit all market conditions, lacking dynamic adjustment
- No check for existing positions in the same direction, potentially leading to duplicate entries and increased exposure
- Depends on custom indicator ColorXCCXCandle; if the indicator file is missing the EA fails, and indicator logic is opaque
- Lacks spread filter and trading session filter, may execute at unfavorable prices during high-spread or low-liquidity periods
- Signals are based solely on indicator color changes without price action, support/resistance, or other confirmation conditions
Possible improvements
- Add dynamic stop loss/take profit mechanism that automatically adjusts distances based on ATR or market volatility
- Add position check logic to avoid duplicate entries in the same direction, and verify spread is reasonable before opening
Risk assessment
Overall risk: Medium
- No check for existing same-direction positions, potentially leading to duplicate entries increasing exposure
- Fixed stop loss/take profit points may be inappropriate under different market volatility conditions
- No spread filter; widening spreads during high volatility periods may result in unfavorable fills
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
MM | 0.1 | Money management ratio or lot size |
MMMode | LOT | Money management mode (free margin/balance/reduced margin/reduced balance/fixed lots) |
StopLoss_ | 1000 | Stop loss in points |
TakeProfit_ | 2000 | Take profit in points |
Deviation_ | 10 | Maximum allowed slippage |
BuyPosOpen | true | Allow opening buy positions |
SellPosOpen | true | Allow opening sell positions |
BuyPosClose | true | Allow closing buy positions |
SellPosClose | true | Allow closing sell positions |
InpInd_Timeframe | PERIOD_H4 | Super_Trend indicator timeframe |
DSmoothMethod | MODE_JJMA | Price smoothing method (SMA/EMA/JJMA/JurX etc.) |
DPeriod | 15 | Price smoothing period |
DPhase | 15 | Price smoothing phase parameter |
MSmoothMethod | MODE_T3 | Momentum smoothing method |
MPeriod | 15 | Momentum smoothing period |
MPhase | 15 | Momentum smoothing phase parameter |
SignalBar | 1 | Bar index for trade signal |
Similar Trend Following EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.