Exp_ColorTrend_CF
This EA trades trend reversals detected by the ColorTrend_CF custom indicator. It opens buy positions when the indicator's upper line crosses above the lower line and sell positions on the opposite crossover, with configurable stop loss, take profit, and money management settings.
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 the crossover of two lines from the ColorTrend_CF custom indicator to determine trend direction, making it a classic trend-following system. Entry conditions: a buy signal is generated when the upper line crosses above the lower line, and a sell signal is generated when the upper line crosses below the lower line, using the bar specified by the SignalBar parameter for signal retrieval. Exit conditions include fixed stop loss and take profit in points, plus closing positions on opposite signals — long positions close on sell signals and short positions close on buy signals. Position sizing is controlled by the MM parameter, where negative values represent a fixed lot size and positive values represent a share of the deposit. Money management relies on the external TradeAlgorithms.mqh library functions, with no finer risk control logic visible in the code itself. The strategy only checks signals on new bar formation, preventing repeated trades within the same bar, which is a sound design choice.
Strengths
- New bar detection mechanism prevents repeated trades within the same bar, reducing overtrading risk
- Buy, sell, and close permissions can be independently controlled, offering high flexibility for different market conditions
- Uses stop loss and take profit settings, providing a basic risk control framework
- Signal detection and trade execution are cleanly separated, resulting in clear code structure
Weaknesses
- Depends on the external custom indicator ColorTrend_CF, making it impossible to independently verify the indicator's reliability
- No spread filter or slippage protection mechanism, which may result in unfavorable fills in high-spread environments
- Default stop loss of 1000 points and take profit of 2000 points are excessively large, potentially causing severe single-trade losses
- Lacks position checking logic, which may lead to duplicate position openings in the same direction
- The MM parameter design where negative values mean fixed lot size is unintuitive and prone to misconfiguration
Possible improvements
- Add position checking logic to prevent duplicate openings in the same direction
- Add a spread filter to pause trading when the spread is too wide
- Split the MM parameter into separate lot-size mode and percentage mode parameters for better readability
- Add a trailing stop feature to protect profits when the trend continues
Risk assessment
Overall risk: Medium
- Default stop loss of 1000 points is excessively large, creating high single-trade loss risk
- Lack of position checking may lead to duplicate openings that amplify risk exposure
- Dependency on external indicator library with only a Recount retry mechanism and no alert on indicator failure
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
MM | -0.1 | Money management: controls lot size or ratio |
StopLoss_ | 1000 | Stop loss in points |
TakeProfit_ | 2000 | Take profit in points |
Deviation_ | 10 | Max price slippage deviation |
BuyPosOpen | true | Allow buy position open |
SellPosOpen | true | Allow sell position open |
BuyPosClose | true | Allow close long positions |
SellPosClose | true | Allow close short positions |
InpInd_Timeframe | PERIOD_H4 | Indicator timeframe |
CfPeriod | 30 | Indicator calculation period |
SignalBar | 1 | Bar index for entry signal |
Similar Trend Following EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.