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
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
Parameters
| Parameter | Default | Description |
|---|---|---|
MM | 0.1 | Money management ratio or lot size |
MMMode | LOT | Lot mode (fixed/balance/equity/free margin/margin drawdown) |
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 | Close long on reverse signal |
SellPosClose | true | Close short on reverse signal |
InpInd_Timeframe | PERIOD_H8 | Indicator operating timeframe |
MA_Method1 | MODE_SMA | Signal line smoothing method |
Length1 | 12 | Signal line smoothing period |
Phase1 | 15 | Signal line smoothing phase parameter |
MA_Method2 | MODE_JJMA | Signal line re-smoothing method |
Length2 | 5 | Signal line re-smoothing period |
Phase2 | 15 | Signal line re-smoothing phase parameter |
SignalBar | 1 | Signal bar index (0=current, 1=last closed bar) |
Similar Momentum EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.