CCI and ATR Based Trend Following Strategy
Overview
This strategy identifies price trends by combining Average True Range (ATR) and Commodity Channel Index (CCI), and uses overbought/oversold levels as entry and exit signals. ATR calculates the upper and lower bands, while CCI determines the trend direction. It goes short when CCI crosses below overbought level, and goes long when CCI crosses above oversold level, thus following trends.
Strategy Logic
- Calculate ATR, here 2-period ATR is used
- Calculate CCI value, here 10-period CCI is used
- Determine trend direction based on current CCI value
- CCI >= 0, Defines as Uptrend
- CCI < 0, Defines as Downtrend
- Calculate Upper Band and Lower Band
- Upper Band = Highest High + ATR * Multiplier
- Lower Band = Lowest Low - ATR * Multiplier
- Under different trend directions, save and update Upper and Lower Bands
- When CCI >= 0, if Upper Band < previous Upper Band, reset it; When CCI < 0, if Lower Band > previous Lower Band, reset it
- This avoids channels moving reversely with price
- Enter at Upper or Lower band based on CCI value as entry signal
- Exit when CCI crosses 0 as exit signal
- Set stop loss and take profit exit
Advantages
This strategy combines trend identification and channel breakout, which effectively follows trends.
- Using CCI to determine price trend direction for quick judgment of long/short trends
- ATR channel sets stop loss and take profit to control risks
- Channels can quickly adjust direction when price reverses, avoiding being trapped in original trend channel
- Exiting on CCI's 0 cross follows trends and avoids whipsaws
Risks and Improvements
- CCI and ATR parameters need optimization for best results across periods and parameters
- Although channel adjustment avoids congestion, severe reversals may still cause insufficient profit or loss
- Stop loss placement needs optimization, relax stops to avoid excessive stops
- Additional filters on entry signal can optimize entry opportunities
- Combining with higher timeframe trend indicator can avoid trading against higher trend
Summary
Overall this is a simple and practical trend following strategy. Its advantage is clear logic and ease of implementation for quickly capitalizing on trends. But parameters like stop loss range require optimization based on market conditions. Combining with other indicators can further enhance the strategy. As a beginner trend following strategy, it is worth learning and referencing.
- 1
