EA-14433 · Momentum

Exp_ColorBearsGap

This EA trades based on the ColorBearsGap custom indicator, which identifies bearish gap patterns using dual smoothing algorithms. It opens buy positions when the indicator transitions from a neutral state to a bullish signal and sell positions when it transitions to a bearish signal, with configurable position closing on opposite signals.

Open the interactive view (equity curve, symbol switch)

Key facts

CategoryMomentum
RiskMedium
Rating★★★☆☆
TypeTrading EA
TimeframesH4, H8, D1
IndicatorsColorBearsGap, SMA, JJMA
Author—

Backtest results (H1, about 1 year)

Not backtested yet — this EA could not be converted automatically.

Strategy analysis

The strategy concept is based on color state transitions of the ColorBearsGap indicator to capture momentum shifts. Entry conditions: a buy signal triggers when indicator buffer 1 transitions from 0 (neutral) to a value greater than 0, and a sell signal triggers when it transitions from 2 (bearish) to a value less than 2. Exit conditions rely on opposite signal closures plus fixed stop loss and take profit levels, with BuyPosClose and SellPosClose parameters controlling whether positions close on reverse signals. Position sizing is managed through the MM parameter and MMMode enumeration, supporting fixed lots, balance percentage-based, and free margin-based money management modes. Money management uses the MarginMode enum from TradeAlgorithms.mqh, offering five modes from free margin to fixed lot sizing. The indicator employs dual smoothing (MA_Method1 and MA_Method2), where the first layer smooths the signal line and the second re-smooths it, supporting ten methods including SMA, EMA, JJMA, JurX, ParMA, T3, VIDYA, and AMA. It defaults to H8 timeframe with SignalBar=1, using the previous closed bar's signal to avoid repainting issues.

Strengths

  • Dual smoothing algorithm reduces false signals and improves signal quality
  • Supports ten smoothing method combinations for adaptability to different market conditions
  • Complete stop loss, take profit, and slippage control for manageable risk
  • SignalBar=1 defaults to closed bar signals, avoiding repainting issues
  • Independent buy/sell enable switches provide flexible control
  • H8 timeframe operation effectively filters market noise

Weaknesses

  • Depends on custom ColorBearsGap indicator; logic is unverifiable without its source code
  • Default SL=1000 and TP=2000 points are large and may not suit low-volatility instruments
  • No spread filter, which could cause excessive slippage in high-spread environments
  • Recount mechanism retries on CopyBuffer failure, potentially causing delays in fast markets
  • No check for simultaneous positions, potentially leading to frequent open/close cycles in choppy markets
  • Comments are garbled due to encoding issues, reducing readability and maintainability

Possible improvements

  • Add a spread filter to pause trading when spreads are excessively wide
  • Add position check logic to prevent duplicate entries or excessive position flipping
  • Implement a trailing stop feature to better protect profits
  • Fix source file encoding to restore readable Chinese comments

Risk assessment

Overall risk: Medium

  • No spread filter; stop loss and take profit may be ineffective in high-spread environments
  • No position count check; frequent trading in choppy markets can erode profits via commissions
  • Depends on external custom indicator; EA cannot operate if indicator fails to load

Evaluation scores

Code quality3.0
Strategy logic3.0
Risk management3.0
Robustness3.0
Innovation3.0
Documentation1.0
Overall2.7

Parameters

ParameterDefaultDescription
MM0.1Money management ratio or lot size
MMModeLOTLot mode (fixed/balance/equity/free margin/margin drawdown)
StopLoss_1000Stop loss in points
TakeProfit_2000Take profit in points
Deviation_10Maximum allowed slippage
BuyPosOpentrueAllow opening long positions
SellPosOpentrueAllow opening short positions
BuyPosClosetrueClose long on reverse signal
SellPosClosetrueClose short on reverse signal
InpInd_TimeframePERIOD_H8Indicator operating timeframe
MA_Method1MODE_SMASignal line smoothing method
Length112Signal line smoothing period
Phase115Signal line smoothing phase parameter
MA_Method2MODE_JJMASignal line re-smoothing method
Length25Signal line re-smoothing period
Phase215Signal line re-smoothing phase parameter
SignalBar1Signal bar index (0=current, 1=last closed bar)

Similar Momentum EAs

Backtests are historical simulations and do not guarantee future results. Not financial advice.

Get the weekly Arena report

One email a week: ranking changes, new signals and new research. No spam; unsubscribe any time.