Exp_ColorZerolagJCCX
This EA trades based on the crossover signals of the ColorZerolagJCCX oscillator, a zero-lag composite momentum indicator built from five weighted JCCX components with JJMA smoothing. It opens buy positions when the main line crosses above the signal line and sell positions on the reverse crossover, with configurable options for entry and exit on each signal direction.
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 core strategy of this EA is a dual-line crossover system based on the ColorZerolagJCCX zero-lag momentum oscillator. Entry conditions: a buy signal is generated when the main line Osc1 crosses above the signal line Osc2, while a sell signal fires on the reverse crossover; the crossover direction reversal automatically triggers closing of the opposing position. Exit conditions rely on fixed stop-loss (1000 points) and take-profit (2000 points), plus the crossover reversal close mechanism. Position sizing uses a money percentage approach (MM=0.1) with switchable LOT/FREE_MARGIN/LOT_STEP modes, executed through the TradeAlgorithms library's BuyPositionOpen/SellPositionOpen functions. Money management is controlled by the MM parameter, with a default of 0.1 indicating a relatively conservative position size relative to account equity. The strategy also incorporates a new bar detection mechanism (IsNewBar) to prevent repeated entries within the same bar, and uses SignalBar=1 to ensure signal confirmation before entry, reducing false breakout risk.
Strengths
- The zero-lag indicator design reduces the delay problem of traditional momentum indicators, making signals more timely
- Independent buy/sell open and close switches provide flexible strategy control, allowing single-direction trading only
- New bar detection and SignalBar confirmation mechanism effectively prevent repeated entries within the same bar and false signals
- Multi-component weighted composite (5 JCCX with different periods) improves the oscillator's stability and reliability
- Fixed stop-loss and take-profit settings provide a basic risk control framework
Weaknesses
- Lacks spread filter and trading session filter, which may lead to unfavorable entries during high-spread periods
- No trailing stop or dynamic stop mechanism; fixed stop-loss cannot adapt to changing market volatility
- No position check logic; may repeatedly open positions in the same direction when one already exists
- Stop-loss of 1000 points and take-profit of 2000 points are relatively large on H4 timeframe, potentially enduring significant drawdowns
- Depends on the external custom indicator ColorZerolagJCCX; the EA cannot run if the indicator is not properly installed
Possible improvements
- Add spread filter and trading session restrictions to avoid entries during low-liquidity periods
- Add position check logic to prevent repeated same-direction entries that lead to excessive exposure
- Introduce trailing stop or ATR-based dynamic stop-loss/take-profit to adapt to different market volatility environments
Risk assessment
Overall risk: Medium
- No position count check; may repeatedly open same-direction positions leading to excessive leverage
- Fixed 1000-point stop-loss can still be gapped over in extreme market conditions causing larger losses
- Lacks effective spread and slippage protection; Deviation_=10 may be insufficient during volatile periods
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
MM | 0.1 | Money management ratio controlling risk per trade |
MMMode | LOT | Lot sizing mode: fixed lot/balance/free margin |
StopLoss_ | 1000 | Stop loss in points |
TakeProfit_ | 2000 | Take profit in points |
Deviation_ | 10 | Maximum allowed slippage |
BuyPosOpen | true | Allow opening long positions |
SellPosOpen | true | Allow opening short positions |
BuyPosClose | true | Allow buy position closing |
SellPosClose | true | Allow sell position closing |
InpInd_Timeframe | PERIOD_H4 | Indicator calculation timeframe |
SignalBar | 1 | Signal confirmation bar index |
smoothing | 15 | Overall smoothing period |
Smooth | 8 | JJMA smoothing period |
JPhase | 100 | JJMA phase parameter |
IPC | PRICE_CLOSE | Indicator applied price type |
Factor1 | 0.05 | JCCX component 1 weight factor |
JCCX_period1 | 8 | JCCX component 1 period |
Factor2 | 0.10 | JCCX component 2 weight factor |
JCCX_period2 | 21 | JCCX component 2 period |
Factor3 | 0.16 | JCCX component 3 weight factor |
JCCX_period3 | 34 | JCCX component 3 period |
Factor4 | 0.26 | JCCX component 4 weight factor |
JCCX_period4 | 55 | JCCX component 4 period |
Factor5 | 0.43 | JCCX component 5 weight factor |
JCCX_period5 | 89 | JCCX component 5 period |
Similar Momentum EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.