EA-1355 · Trend Following

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

RiskMedium
Rating★★☆☆☆
TypeTrading EA
TimeframesH1, H4, D1
IndicatorsColorTrend_CF
AuthorCopyright © 2012, Nikolay Kositsin

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

Code quality3.0
Strategy logic3.0
Risk management2.0
Robustness2.0
Innovation2.0
Documentation2.0
Overall2.3

Parameters

ParameterDefaultDescription
MM-0.1Money management: controls lot size or ratio
StopLoss_1000Stop loss in points
TakeProfit_2000Take profit in points
Deviation_10Max price slippage deviation
BuyPosOpentrueAllow buy position open
SellPosOpentrueAllow sell position open
BuyPosClosetrueAllow close long positions
SellPosClosetrueAllow close short positions
InpInd_TimeframePERIOD_H4Indicator timeframe
CfPeriod30Indicator calculation period
SignalBar1Bar index for entry signal

Similar Trend Following 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.