Exp_ColorSchaffJCCXTrendCycle
This EA trades based on the ColorSchaffJCCXTrendCycle indicator, a Schaff trend cycle oscillator built on JCCX (Jurik Composite Color eXtended) with JJMA smoothing. It opens buy positions when the indicator color changes to bullish (above +5) and sell positions when it changes to bearish (below +2), with corresponding close signals. Position sizing is configurable via 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 Schaff Trend Cycle indicator, which combines JCCX momentum oscillation with JJMA adaptive smoothing to identify trend reversals through color changes. Entry conditions: a buy position opens when the indicator color index transitions from non-bullish (≤5) to bullish (>5), and a sell position opens when the color index transitions from non-bearish (≥2) to bearish (<2). Exit conditions: a bullish signal triggers the closing of sell positions, while a bearish signal triggers the closing of buy positions, with a stop loss of 1000 points and take profit of 2000 points. Position sizing supports five modes: fixed lot, percentage of free margin, percentage of balance, percentage of free margin after losses, and percentage of balance after losses. Money management is controlled via the MM parameter with a default risk ratio of 0.1. The indicator uses the SignalBar parameter to determine which bar to read signals from, defaulting to 1 (the last closed bar), which helps avoid signal fluctuation from unclosed bars. The EA also employs the IsNewBar mechanism to ensure signals are calculated only once per bar, preventing repeated trades within the same bar.
Strengths
- Uses the Schaff Trend Cycle indicator which is more responsive to trend reversals than traditional MACD signals
- Supports multiple position sizing modes providing flexible money management adaptable to different account conditions
- Implements IsNewBar detection and SignalBar=1 setting to avoid repeated trades from fluctuating signals on unclosed bars
- Buy/sell open and close operations can each be independently enabled or disabled for high strategy flexibility
- Both stop loss and take profit are parameterized, making risk controllable
Weaknesses
- Relies entirely on a single custom indicator; if the indicator file is missing the EA cannot run, and there is no fault tolerance for indicator failure
- Stop loss of 1000 points and take profit of 2000 points are large for the H4 timeframe, potentially causing excessive single-trade losses
- No spread filter mechanism, which could lead to additional losses from slippage on high-spread instruments
- Indicator color index uses hardcoded thresholds (5 and 2) which are not intuitive and cannot be adjusted via parameters
- Lacks checks on existing position counts, potentially opening duplicate positions in the same direction
Possible improvements
- Add a spread filter to prevent trading when the spread exceeds a threshold, avoiding entries in high-slippage environments
- Make the color thresholds (5 and 2) configurable parameters and add position count checks to prevent duplicate openings in the same direction
- Add a trailing stop feature to lock in profits after reaching a certain level, rather than relying solely on fixed take profit
Risk assessment
Overall risk: Medium
- Stop loss of 1000 points could mean significant capital loss on some instruments, especially with larger position sizes
- Lack of position count checks may lead to repeated entries during sustained trends causing overexposure
- Dependency on a custom indicator means unpredictable EA behavior if the indicator file is missing or calculation fails
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
MM | 0.1 | Deposit fraction or fixed lot; negative=fixed lot |
MMMode | LOT | Lot sizing mode: fixed lot/balance/free margin |
StopLoss_ | 1000 | Stop loss in points |
TakeProfit_ | 2000 | Take profit in points |
Deviation_ | 10 | Max price deviation in points |
BuyPosOpen | true | Allow buying |
SellPosOpen | true | Allow selling |
BuyPosClose | true | Allow closing long positions |
SellPosClose | true | Allow closing short positions |
InpInd_Timeframe | PERIOD_H4 | Indicator timeframe |
Fast_JCCX | 23 | JCCX fast period |
Slow_JCCX | 50 | JCCX slow period |
Smooth | 8 | JJMA smoothing period |
JPhase | 100 | JJMA smoothing phase (-100 to +100) |
IPC | PRICE_CLOSE_ | Price type for indicator calculation |
Shift | 0 | Indicator shift |
Cycle | 10 | Trend cycle length |
HighLevel | +60 | Overbought threshold |
MiddleLevel | 0 | Center line |
LowLevel | -60 | Oversold threshold |
SignalBar | 1 | Signal bar index (0=current, 1=previous) |
Similar Momentum EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.