Exp_ColorXXDPO
This EA trades based on the ColorXXDPO custom indicator, which is a double-smoothed Detrended Price Oscillator. It opens buy positions when the DPO turns upward and sell positions when the DPO turns downward, with configurable buy/sell open and close logic switches.
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 a double-smoothed Detrended Price Oscillator (DPO) that identifies momentum shifts by detecting turning points in the oscillator. Entry conditions: a buy position opens when the DPO value turns upward (Value[0]>Value[1] and Value[1]<Value[2]), and a sell position opens when the DPO value turns downward (Value[0]<Value[1] and Value[1]>Value[2]). Exit conditions: opposing positions are closed on DPO reversals—long positions close when DPO turns down, short positions close when DPO turns up, with additional fixed stop-loss and take-profit levels. Position sizing is controlled via the MM parameter, supporting multiple margin modes including fixed lot size, balance-based percentage, and free margin-based calculations. Money management leverages the MarginMode enum offering flexibility from free margin, balance, loss-adjusted margin, to fixed lot sizing. The strategy employs a new bar detection mechanism to prevent repeated trading within the same bar and uses a SignalBar parameter to allow signal confirmation on a delayed bar.
Strengths
- Double-smoothed DPO indicator effectively filters market noise and reduces false signals
- Independent buy/sell open/close switches provide high flexibility for partial strategy execution
- Multiple money management modes and smoothing algorithms accommodate various trading styles
- New bar detection mechanism prevents duplicate entries within the same candle
- Configurable stop-loss and take-profit parameters provide basic risk control
Weaknesses
- No spread filter, which may cause frequent false signal triggers and losses in high-spread environments
- No check for existing same-direction positions, potentially leading to duplicate entries in the same direction
- Default stop-loss of 1000 points and take-profit of 2000 points are excessively large for most currency pairs
- Heavy dependency on the custom ColorXXDPO indicator—EA is completely non-functional if the indicator file is missing
- Lacks advanced risk controls such as maximum position count and maximum drawdown limits
Possible improvements
- Add a spread filter and maximum position count limit to improve stability in high-volatility and high-spread environments
- Add checks for existing same-direction positions to prevent duplicate entries, and implement a maximum drawdown protection mechanism
Risk assessment
Overall risk: Medium
- No spread filter may cause unexpected losses from slippage and wide spreads in illiquid markets
- No same-direction position check may lead to excessive exposure by repeatedly adding positions during trends
- Excessively large default SL/TP values may lead to significant floating losses if not adjusted per instrument
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
MM | 0.1 | Money management ratio or lot size |
MMMode | LOT | Position sizing mode (free margin/balance/fixed lot) |
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 closing long positions |
SellPosClose | true | Allow closing short positions |
InpInd_Timeframe | PERIOD_H6 | Indicator calculation timeframe |
MA_Method1 | MODE_T3 | DPO smoothing method |
Length1 | 21 | DPO smoothing period |
Phase1 | 15 | DPO smoothing phase parameter |
MA_Method2 | MODE_JJMA | Signal line smoothing method |
Length2 | 5 | Signal line smoothing period |
Phase2 | 100 | Signal line smoothing phase parameter |
IPC | PRICE_CLOSE | Applied price type |
SignalBar | 1 | Bar index for signal confirmation |
Similar Momentum EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.