Exp_DigVariation
This EA trades based on the DigVariation custom indicator, which applies digital smoothing to a moving average. It opens buy positions when the smoothed value turns upward and sell positions when it turns downward, with configurable stop loss, take profit, and money management options.
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 trend-following system based on the DigVariation indicator. The DigVariation indicator applies a digital smoothing algorithm (0-10 smoothness levels) to a moving average, reducing noise and identifying trend reversal points. Entry conditions: a buy position is opened when the indicator value turns from declining to rising (Value[0]>Value[1] and Value[1]<Value[2]); a sell position is opened when the indicator value turns from rising to declining (Value[0]<Value[1] and Value[1]>Value[2]). Exit conditions include fixed stop loss (1000 points) and take profit (2000 points), as well as closing on opposite signals. Position sizing supports five modes: fixed lot, balance-based proportion, equity-based proportion, etc. The strategy uses the IsNewBar mechanism to ensure signals are calculated only once per bar, preventing duplicate trades. Default stop loss of 1000 points and take profit of 2000 points yields a risk-reward ratio of 1:2, consistent with a medium-to-long-term trend-following style.
Strengths
- Digital smoothing algorithm reduces market noise and improves signal quality
- Multiple money management modes provide good flexibility
- Stop loss to take profit ratio of 1:2 offers positive expectancy potential
- IsNewBar mechanism prevents duplicate trades on the same bar
- Independent control over buy/sell opening and closing allows flexible strategy configuration
Weaknesses
- Default 1000-point stop loss is large and may cause significant losses in volatile markets
- No spread filter, potentially generating unnecessary trades in high-spread conditions
- No position count check, risk of repeated entries leading to overexposure
- Depends on the custom DigVariation indicator; EA fails if indicator file is missing
- Simple signal logic may generate frequent false signals in ranging markets
Possible improvements
- Add a spread filter to avoid opening positions during high-spread conditions
- Add maximum position count limit to prevent overexposure
- Add a trend filter (e.g., higher timeframe MA direction) to reduce false signals in ranging markets
Risk assessment
Overall risk: Medium
- Default 1000-point stop loss is large, potentially causing high per-trade losses
- No position count check may lead to risk accumulation from repeated entries
- No spread or volatility filter makes risk uncontrollable under extreme market conditions
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
MM | 0.1 | Money management ratio or fixed lot |
MMMode | LOT | MM mode: Free margin/Balance/Free margin minus loss/Balance minus loss/Fixed lot |
StopLoss_ | 1000 | Stop loss in points |
TakeProfit_ | 2000 | Take profit in points |
Deviation_ | 10 | Maximum allowed slippage in points |
BuyPosOpen | true | Allow opening long positions |
SellPosOpen | true | Allow opening short positions |
BuyPosClose | true | Allow closing long positions |
SellPosClose | true | Allow closing short positions |
InpInd_Timeframe | PERIOD_H8 | EMA-Crossover_Signal indicator timeframe |
Period_ | 12 | DigVariation indicator period |
MA_Method_ | MODE_SMA | MA type (SMA/EMA/SMMA/LWMA) |
SmoothPower | dig_1 | Digital smoothing power level (0-10) |
SignalBar | 1 | Bar index for signal calculation |
Similar Trend Following EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.