Dual CCI Indicator Forex Trend Strategy

Feb 19, 2021

The Commodity Channel Index (CCI) is an underrated momentum indicator that is often overshadowed by the RSI and MACD.
I’ll show you how to build a simple trend following strategy using a pair of CCI indicators!
The complete strategy can be downloaded in the Free Strategies section.

The CCI indicator was invented by Donald Lambert in 1980 to detect cyclical turns in commodities, and has since become one of the most popular momentum indicators.

In essence, it measures the current price relative to an average price over a given lookback period. Unlike most indicators, the CCI uses typical price instead of closing price. Some feel that typical price (TP), calculated as (high+low+close)/3, is more representative of price action. 

The formula for a default 20-period CCI is:

The mean deviation is calculated as follows:

With the 20-period lookback, Lambert selected a 0.015 constant for the denominator such that the CCI would fall within the ±100 range 70-80% of the time.

Shorter lookbacks will produce a more volatile CCI, with the indicator often exceeding the ±100 range. Unlike the RSI and Stochastic oscillators, the CCI is unbound, meaning there is no minimum or maximum CCI value.

How Do Traders Use the CCI Indicator?

1. Detecting Overbought/Oversold Conditions

With shorter lookback periods, the CCI is most commonly used as an overbought/oversold indicator.

The CCI +100 level is usually used to indicate an overbought condition, while -100 indicates an oversold condition.

The chart below shows the 20-period CCI applied to the USDCAD, a mostly ranging market.

2. Trend Detection

When a longer lookback period is used, the CCI can be used to detect trends. Values above +100 indicate an uptrend, while values below -100 indicate a downtrend.

Lookback periods in the 60-100 range are generally good for trend detection. I do not recommend anything below 50 for the CCI since it is particularly reactive to price changes.

The chart below shows the 80-period CCI indicating an uptrend in the GBPJPY.

The Dual CCI Trend Strategy

We need a way to exploit both of the CCI’s uses above.

How about a trend following strategy that enters the market on a short-term pullback?

An 80-period CCI will be used for trend detection. We’ll throw in a 5-period CCI to detect short-term overbought/oversold conditions during pullbacks. In this context, the CCI is also being used as a pullback filter.

So a long signal will occur when the 80-period CCI is above +100, and the 5-period CCI is below -100. Rules are symmetrical for the short side.

Wait, what if the pullback eventually turns into a trend reversal? Don’t catch a falling knife!

Since we want to focus on trends that display signs of continuation, we will place buy stops at the previous bar’s high. Sell stops will be placed at the previous low.

The strategy’s pseudocode is as follows:

IF the 80-period CCI is above +100
AND the 5-period CCI is below -100,

THEN Place a buy stop at the previous bar’s high. Order is valid for 3 bars. 

Rules are symmetrical on the short side.

I try not to overthink trade management when it comes to trend following strategies. Most successful trend strategies do not use much management; they simply let the trend run till it reverses.

I’ll just use a 200-pip stop loss and trailing stop for trade management.

The CCI strategy was programmed in AlgoWizard as shown:

Dual CCI Trend Strategy Results

I did a 10-year backtest on my favourite trend following market, the GBPJPY.

Seems like the CCI was put to good use! Results are decent for a single-indicator strategy.

Out of curiosity, I decided to optimize the long-term CCI’s lookback period. The lookback period of the entry indicator usually has the largest impact on strategy performance.

I optimized the lookback period from 20 to 200, in steps of 1.

It is encouraging that all 181 optimizations are profitable, and that the average profit is over 9000 pips. This indicates that the strategy parameters are likely stable.

With net profit as the performance metric, the 80-period lookback seems to be in the middle of a high plateau.

This confluence with the optimization results gives me confidence that the strategy is logically sound. In other words, the 5 and 80-period CCIs are likely effective at detecting pullbacks in long-term trends.

Wrapping Up

The versatile CCI deserves a place in the trader’s toolbox. It can be used to detect both trends and pullbacks; all you need to do is vary its lookback period.

One downside of the CCI is its high reactivity to prices. It’s common to see the CCI move from -100 to +100 within a few bars. To combat this, you may choose to apply a smoothing function to the CCI. I have found success using a 5-period SMA of the CCI.

The completely strategy can be downloaded in the Free Strategies section.

Powered By

Development Platform

Forex VPS

FXVM Forex VPS

Popular Posts

No Results Found

The page you requested could not be found. Try refining your search, or use the navigation above to locate the post.

Make your money work for you!

Get promotions, trading ideas and strategy development tips delivered to your inbox!

Comments

7 Comments

  1. darrellgray100@yahoo.com

    GREAT STRATEGY. NEW AND EXPERIENCED TRADERS SHOULD BENEFIT FROM THIS STRATEGY. ALSO, CAN THIS STRATEGY BE USED ON ALL CURRENCY PAIRS AND TIME FRAMES?

    Reply
    • Wayne

      Hi Darrell, it’s very difficult to find a strategy that works well on all markets and timeframes. The strategy needs to suit the character of the market. In this case, your best bet is to trade a trending market on the higher timeframes.

      Reply
    • joomuatng

      thank you for providing the video. i am still learning how to do forex trading, profitably.

      i have questions on your strategy’s entry condition.

      for long entry, why not CCI (80) > +100 and CCI (5) crossover -100?

      is it because of the difficulties in writing the algorithm?

      If I use the entry condition
      CCI (80) > +100 and CCI (5) crossover -100,

      will it works similarly like yours?

      Reply
  2. Anonymous

    This is excellent for accurate price action

    Reply
    • Wayne

      Thanks, I agree!

      Reply
      • joomuatng

        thank you for providing the video. i am still learning how to do forex trading, profitably.

        i have questions on your strategy’s entry condition.

        for long entry, why not CCI (80) > +100 and CCI (5) crossover -100?

        is it because of the difficulties in writing the algorithm?

        If I use the entry condition
        CCI (80) > +100 and CCI (5) crossover -100,

        will it works similarly like yours?

        Reply
        • Wayne

          I replied in the Youtube video, please have a look.

          Reply

Submit a Comment

Your email address will not be published. Required fields are marked *

Trading Strategies

Ichimoku Trend Following Strategy

Ichimoku Trend Following Strategy

Like candlesticks, the Ichimoku indicator is a fine Japanese creation. Here I’ll explain how the Ichimoku is plotted, and use it to build a trend following strategy for the USDJPY.

Forex Trading With Volume – Does It Work?

Forex Trading With Volume – Does It Work?

Volume is seldom discussed in forex trading. But as a stock trader would tell you, volume provides insights into the underlying market sentiment. Here I’ll demonstrate the use of two simple volume filters to improve entry reliability.

What Is the Kaufman Adaptive Moving Average?

What Is the Kaufman Adaptive Moving Average?

The Kaufman Adaptive Moving Average is a unique indicator that automatically adapts to the market’s noise. Here I explain its inner workings and show you how to build a trend following strategy around it.

Awesome Oscillator Forex Trend Strategy

Awesome Oscillator Forex Trend Strategy

The Awesome Oscillator is one of Bill Williams’ fine creations. It is a simple yet effective momentum indicator that can be a valuable addition to your strategy. Here we’ll use it together with a moving average to fine-tune our trend following entries.

What is Fixed Ratio Money Management?

What is Fixed Ratio Money Management?

Have you heard of fixed ratio money management? How does it compare to the popular fixed fractional approach? Here I’ll explain how fixed ratio works, and see how it stacks up against fixed fractional money management.

What Is the Kaufman Efficiency Ratio?

What Is the Kaufman Efficiency Ratio?

Avoiding false breakouts is a common goal among trend traders. The Kaufman Efficiency Ratio provides a simple method of quantifying a market’s noise, helping traders focus on the smoothest trends. Let’s add the efficiency ratio to a simple trend following strategy and see whether its performance improves.

What Is the QQE Indicator?

What Is the QQE Indicator?

The QQE is a mysterious indicator that sometimes pops up in trading forums. Does it deserve a place alongside the more traditional momentum indicators like the RSI and CCI? Let’s add it to a trend following strategy to find out!

Do Bollinger Bands + Candlestick Patterns Work?

Do Bollinger Bands + Candlestick Patterns Work?

Bollinger Bands are great at detecting overbought and oversold conditions. Let’s use them to develop a countertrend strategy, and then refine our entries using limit entries and candlestick patterns.

How Good Are The Bollinger Bands’ Trailing Stops?

How Good Are The Bollinger Bands’ Trailing Stops?

Trailing stop losses are a popular feature in many trend following systems. Bollinger Bands, the ever-popular technical indicator among retail traders, actually contain two inbuilt trailing stops. Are these any good? Let’s find out!

Bollinger Bands vs. Keltner Channels

Bollinger Bands vs. Keltner Channels

Bollinger Bands are ubiquitous in the trading world, but there’s less discussion about their lesser-known cousin, the Keltner Channels. Do these perform as well as the Bollinger Bands? Let’s compare them over a broad range of input parameters.

Strategy Development

How to Select the Best Trading Strategy Entry

How to Select the Best Trading Strategy Entry

With an abundance of technical indicators available, selecting your strategy’s entry conditions can be overwhelming. This post will illustrate a method to graphically compare the profitability of different entries.

Live Trading

No Results Found

The page you requested could not be found. Try refining your search, or use the navigation above to locate the post.

Make your money work for you!

Make your money work for you!

 

Get trading ideas and strategy development tips delivered to your inbox!

Thanks for subscribing!

Pin It on Pinterest

Share This