Strategies we backtested CCI momentum breakout

Tested by BacktestingMax

CCI momentum breakout strategy backtest

Does the CCI momentum breakout strategy make money?

In most of our tests, no. The CCI momentum breakout buys when CCI crosses above +100 and sells short when it crosses below −100. CCI is an indicator that shows how far the price is from its recent average. We ran 30 backtests from 2019 to 2025, after trading costs: 10 markets, each on 15-minute, 1-hour and 4-hour charts. With these standard rules, 7 of the 30 tests made money. On 15-minute charts, all 10 markets lost money. On 1-hour charts, 4 markets made money in both 2019–2022 and 2023–2025: USD/JPY (+315.9%), the DAX (+177.9%), gold (+142.5%) and the Nasdaq 100 (+74.3%). But each of these accounts also fell 29.8% to 37.9% below its highest balance at some point. 10 candles after a cross above +100, price was higher about as often as after any other candle. We also tried three changes. The one that helped most was a filter from the next bigger chart: only buy when its CCI is above 0, and only sell when it is below 0. With it, 12 of the 30 tests made money. All 5 extra tests were on 4-hour charts, with the daily CCI as the filter: 8 of the 10 markets made money there, instead of 3.

30 backtests 2019–2025 Trading costs included Tested 9 November 2026

Where it worked 30 backtests
Made money
7
of 30 tests, with the standard rules
Made money in both periods
6
2019–2022 and again 2023–2025
Best backtest
+316%
USD/JPY, 1-hour chart: account growth 2019–2025
With a bigger chart CCI filter
7
tests made money in both periods, compared with 6 with the standard rules

Made money in both periods

  • USD/JPY, 1-hour
  • Gold, 1-hour
  • Gold, 4-hour
  • Silver, 4-hour
  • Nasdaq 100, 1-hour
  • DAX, 1-hour

Lost money on every market

  • 15-minute charts

The results

Results on every market

Each box shows one backtest of the CCI momentum breakout with the standard rules, from 2019 to 2025, after trading costs: the % result, and a small chart of the account balance. The solid line is the account balance and the dashed line is the starting balance. Green results made money; red results lost money. Under each result: whether it made money in both 2019–2022 and 2023–2025, or passed all four of our checks (see "How a test passes" further down).

Market 15-minute 1-hour 4-hour
EUR/USD −100% Lost money. Account down 90% by Oct 2019 −87% Lost money −10% Lost money
GBP/USD −99% Lost money. Account down 90% by Nov 2019 −74% Lost money −26% Lost money
USD/JPY −98% Lost money. Account down 90% by Oct 2020 +316% Made money in both periods +18% Made money overall, lost in one period
Gold −98% Lost money. Account down 90% by Mar 2021 +143% Made money in both periods +56% Passed all four checks
Silver −98% Lost money. Account down 90% by Apr 2019 −76% Lost money +37% Passed all four checks
S&P 500 −89% Lost money. Account down 90% by Dec 2023 −57% Lost money −26% Lost money
Nasdaq 100 −33% Lost money +74% Made money in both periods −11% Lost money
Dow Jones −95% Lost money. Account down 90% by Oct 2024 −45% Lost money −16% Lost money
DAX −97% Lost money. Account down 90% by Oct 2022 +178% Made money in both periods −9% Lost money
FTSE 100 −99% Lost money. Account down 90% by Feb 2021 −91% Lost money. Account down 90% by Jul 2025 −22% Lost money
All the numbers, test by test
Market Chart Trades Win rate Profit factor Result Max drawdown 2019–2022 2023–2025 Monte Carlo drawdown Trading costs
EUR/USD 15-minute 3,691 25.6% 0.62 −99.6% −99.6% −99.3% −40.9% −99.7% $4,522
EUR/USD 1-hour 2,471 31.1% 0.82 −86.8% −86.8% −73.7% −49.7% −90.8% $3,296
EUR/USD 4-hour 562 34.9% 0.96 −9.9% −41.8% +16.6% −22.7% −41.0% $917
GBP/USD 15-minute 4,222 26.8% 0.69 −99.4% −99.5% −99.0% −40.6% −99.6% $4,721
GBP/USD 1-hour 2,415 31.8% 0.91 −73.7% −80.3% −34.6% −59.8% −83.9% $5,607
GBP/USD 4-hour 561 33.2% 0.89 −26.0% −48.0% +1.0% −26.7% −45.0% $839
USD/JPY 15-minute 8,428 28.8% 0.80 −98.4% −99.0% −95.5% −64.4% −99.3% $8,231
USD/JPY 1-hour 2,239 33.2% 1.19 +315.9% −37.9% +85.8% +123.9% −48.0% $9,442
USD/JPY 4-hour 558 31.9% 1.06 +18.0% −16.5% +31.1% −10.0% −34.3% $888
Gold 15-minute 4,444 27.5% 0.80 −97.8% −98.1% −97.0% −28.1% −98.6% $11,303
Gold 1-hour 2,179 31.9% 1.09 +142.5% −29.8% +87.2% +29.6% −51.5% $11,142
Gold 4-hour 528 33% 1.23 +55.6% −22.8% +1.5% +53.2% −27.8% $891
Silver 15-minute 705 16.3% 0.32 −98.4% −98.4% −98.4% 0.0% −98.5% $8,982
Silver 1-hour 2,144 29% 0.85 −76.4% −78.6% −48.5% −54.2% −84.8% $11,656
Silver 4-hour 536 33.2% 1.16 +36.7% −19.5% +7.1% +27.6% −27.8% $2,529
S&P 500 15-minute 8,633 29.8% 0.92 −89.2% −94.0% −74.2% −58.2% −97.4% $13,526
S&P 500 1-hour 2,268 32.1% 0.93 −57.2% −62.2% −17.0% −48.5% −77.6% $3,912
S&P 500 4-hour 550 33.1% 0.88 −26.1% −35.2% −18.8% −9.0% −45.6% $478
Nasdaq 100 15-minute 8,600 30.1% 0.99 −32.7% −71.1% −26.1% −8.8% −91.9% $24,385
Nasdaq 100 1-hour 2,228 34.2% 1.05 +74.3% −31.6% +71.5% +1.7% −54.7% $5,782
Nasdaq 100 4-hour 547 37.3% 0.95 −10.7% −15.2% −8.2% −2.7% −36.1% $437
Dow Jones 15-minute 7,875 28.8% 0.94 −94.6% −95.4% −62.0% −85.8% −97.8% $11,227
Dow Jones 1-hour 2,288 32.2% 0.95 −44.5% −60.2% −7.3% −40.1% −71.7% $2,500
Dow Jones 4-hour 562 34.5% 0.92 −15.8% −33.6% −21.2% +6.8% −38.4% $285
DAX 15-minute 7,098 29.6% 0.95 −96.6% −98.3% −89.4% −67.4% −98.6% $11,011
DAX 1-hour 2,185 33.9% 1.14 +177.9% −34.9% +21.2% +129.3% −47.0% $3,582
DAX 4-hour 582 31.6% 0.96 −9.0% −31.2% −12.5% +4.0% −40.6% $317
FTSE 100 15-minute 4,372 26.8% 0.83 −99.1% −99.2% −98.8% −28.2% −99.4% $7,253
FTSE 100 1-hour 2,265 29.4% 0.82 −91.1% −91.9% −62.4% −76.2% −93.4% $3,098
FTSE 100 4-hour 588 33% 0.90 −22.0% −32.9% −21.7% −0.4% −43.1% $741

Profit factor is the money won divided by the money lost. Above 1 means the test made money. Max drawdown is the biggest fall from the highest balance. 2019–2022 and 2023–2025 show the result in each period on its own. Monte Carlo drawdown: we shuffled the trades into a random order 1,000 times; in 95% of those runs, the worst drawdown was this number or less. Result is the change in the account, with the risk of each trade set to 1% of the account at that time.

The account balance

The best test and the middle test

Best test USD/JPY, 1-hour chart +315.9% from 2019 to 2025
Middle test (median): half of the 30 did better, half did worse Nasdaq 100, 15-minute chart −32.7% from 2019 to 2025

What we found

What the 30 backtests show

  1. With the standard rules, 6 of the 30 tests made money in both 2019–2022 and 2023–2025, after trading costs. 4 of the 6 were on 1-hour charts: USD/JPY (+315.9% from 2019 to 2025), the DAX (+177.9%, see 'DAX and FTSE 100 data'), gold (+142.5%) and the Nasdaq 100 (+74.3%). The other 2 were gold (+55.6%) and silver (+36.7%) on 4-hour charts. These 2 accounts fell less on the way: at most 22.8% and 19.5% below their highest balance, compared with 29.8% to 37.9% for the 4 on 1-hour charts. On 15-minute charts, all 10 markets lost money, and 9 of the 10 accounts fell by 90% at some point. There, the spread cost a trade 6.0% of the money it risked, on average, compared with 1.5% on 4-hour charts.

  2. A cross above +100 did not make a rise more likely. We looked at every cross on the 10 markets, and at the price 10 candles later, about as long as a typical trade lasted. On 1-hour charts, price was higher 10 candles after 52.2% of the crosses above +100. After any candle, it was higher 52.9% of the time. After a cross below −100, price was lower 10 candles later 46.1% of the time, compared with 47.1% after any candle. On the other charts, the gaps were also small (see 'After the cross' below). So the 1-hour profits came from a few trades that caught long trends and stayed open for days. We measure results in R: 1R is the money a trade risked, 1% of the account when the trade opened. On each of the 4 markets that made money on 1-hour charts, the best 1% of the trades made more than all the trades together. On USD/JPY, the best 22 out of 2,239 trades made +194.3R, and all the trades together made +168.0R.

  3. The bigger chart filter helped on 4-hour charts, but not on 1-hour charts. The filter means: only buy when CCI on the next bigger chart is above 0, and only sell when it is below 0. For a 4-hour chart, that is the daily CCI. In the 4-hour tests with the standard rules, 2,487 trades went the same way as the daily CCI: a buy when it was above 0, or a sell when it was below 0. Together they made +147.9R. 3,036 trades went against it, and together they lost 150.5R. With the filter, 8 of the 10 markets made money on 4-hour charts. Of those 8, 4 made money in both periods: gold (+54.6%), the Nasdaq 100 (+41.0%), silver (+36.4%) and the Dow (+3.7%). On 1-hour charts, 3 markets made money in both periods with the filter, compared with 4 without it.

  4. Daily charts give fewer trades, so we tested them on more years, from 2014 to 2025 (see 'Daily charts' below). With the standard rules, 3 of the 10 markets made money, and the 1,600 trades on daily charts lost 36.4R together. With the weekly CCI as the filter, 8 of the 10 markets made money, and the trades made +47.0R together. But the filter left only 74 to 96 trades per market in 12 years, so each of these results rests on few trades.

After the cross

After a cross above +100, price rose about as often as after any other candle

For every cross on the 10 markets, we compared the price at the open of the next candle, where a trade would open, with the close 10 candles after the cross. As a comparison, we did the same after every candle. The 15-minute, 1-hour and 4-hour charts cover 2019 to 2025, and the daily charts cover 2014 to 2025. All numbers are before trading costs.

Chart Crosses a year on each market (above +100 and below −100 together) Cross above +100: price higher 10 candles later Any candle: price higher 10 candles later Cross below −100: price lower 10 candles later Any candle: price lower 10 candles later
15-minute 2,118 to 2,406 50.4% 51.9% 46.0% 48.1%
1-hour 528 to 581 52.2% 52.9% 46.1% 47.1%
4-hour 135 to 149 54.0% 54.1% 45.9% 45.9%
Daily 23 to 26 57.9% 56.3% 42.9% 43.7%

A cross above +100 is a candle where CCI went from +100 or below to above +100. A cross below −100 is the same in the other direction. Most of the 10 markets rose over these years, so after any candle, price was higher more often than lower. We left out the same candles as the strategy: tiny candles after the Friday close, and candles with no price change.

The bigger chart

On 4-hour charts, trades in the direction of the daily CCI made money, and trades against it lost

All trades with the standard rules from 2019 to 2025, after trading costs, with the 10 markets of each chart together. We split them by the CCI of the last closed candle on the next bigger chart when the signal came. 'With' means this CCI was above 0 for a buy, or below 0 for a sell. Each number is the average result of one trade, in R. We left out the trades at the start of each test, before the bigger chart had 20 candles for its CCI: 51 trades on 4-hour charts and 30 on 1-hour charts.

4-hour trades with the daily CCI
+0.059R
2,487 trades, 36.2% made money
4-hour trades against the daily CCI
−0.050R
3,036 trades, 31.2% made money
1-hour trades with the 4-hour CCI
−0.007R
10,397 trades, 32.0% made money
1-hour trades against the 4-hour CCI
−0.018R
12,255 trades, 31.7% made money

On 4-hour charts, the trades with the daily CCI did better than the trades against it on 9 of the 10 markets. On 1-hour charts, they did better on 7 of the 10, but both groups lost money. On 15-minute charts, both groups lost more: −0.026R per trade with the 1-hour CCI, and −0.078R against it. On daily charts from 2014 to 2025, the trades with the weekly CCI made +0.079R per trade, and the trades against it lost 0.084R per trade.

Daily charts

Daily charts from 2014 to 2025: the standard rules and the three changes

Each result is the change in the account from January 2014 to December 2025, after trading costs, risking 1% of the account on each trade. The last row adds up all 10 markets in R.

Market Standard rules: trades Standard rules: result Exit at 100 instead of 0 With the weekly CCI filter CCI 14
EUR/USD 166 −7.3% −4.8% +2.7% −10.0%
GBP/USD 177 −9.9% −9.0% +7.4% −8.6%
USD/JPY 160 +7.5% +0.6% +6.0% +10.4%
Gold 155 +8.4% +13.3% +11.8% +11.3%
Silver 158 −2.8% +7.8% +6.0% +3.5%
S&P 500 161 +0.9% −3.2% +16.7% −4.6%
Nasdaq 100 160 −3.9% −2.7% +9.2% −0.7%
Dow 125 −5.1% −7.5% +5.2% +1.2%
DAX 166 −13.3% −0.6% −7.2% −8.5%
FTSE 100 172 −15.5% +0.6% −11.8% −16.3%
All 10 markets, in R 1,600 −36.4R −1.8R +47.0R −17.4R

With the weekly CCI filter, the markets made 74 to 96 trades each, 884 in total. With the exit at 100, they made 224 to 307 trades each, and with CCI 14, 171 to 224. On the Dow, the standard rules skipped 65 of 190 signals, because a trade that risked 1% was smaller than the smallest trade size.

The strategy

What the CCI momentum breakout is

CCI (Commodity Channel Index) is an indicator that shows how far the price is from its recent average. For each candle, it takes the typical price, (high + low + close) ÷ 3, and compares it with the average typical price of the last 20 candles. CCI is high when the price is far above that average, and low when it is far below. Donald Lambert, who created CCI in 1980, set its scale so that most values fall between −100 and +100. He read a move above +100 as the start of a strong move up, and a move below −100 as the start of a strong move down. The momentum breakout trades these moves. In our data, CCI was above +100 or below −100 on about 4 candles in 10. So the two levels are crossed often: on 1-hour charts, about 530 to 580 times a year on each market.

CCI
20 candles, with +100 and −100 as the levels. 20 is the setting Donald Lambert used and the default on TradingView. We worked out CCI with the usual formula, the one TradingView and MetaTrader use. CCI = (typical price − its 20-candle average) ÷ (0.015 × the average distance of the last 20 typical prices from that average).
Stop-loss
2 × ATR(14) from the close of the candle that gave the signal. ATR (average true range) is how far price moves in an average candle, here over the last 14 candles. The stop-loss does not move.
Exit
When CCI falls back below 0 (for a buy) or rises back above 0 (for a sell). The trade closes at the next candle's open.
Take-profit
None
Risk per trade
1% of the account, which started at $10,000. The trade size is worked out at the close of the signal candle, but the trade opens at the next candle's open. So a loss at the stop-loss was usually close to 1%, but not exactly 1%. When price jumped past the stop-loss, for example overnight or over a weekend, the loss was bigger. With the standard rules, 190 trades on 15-minute charts, 21 on 1-hour charts and 3 on 4-hour charts lost more than 1.5% of the account. No trade on daily charts did. The biggest loss, 10.9%, was a DAX trade on the 15-minute chart on 23 October 2020, at one of the wrong DAX prices explained under 'DAX and FTSE 100 data'.
Trading costs
Every trade pays the spread: the gap between the buy price and the sell price. These rules use only market orders and stop-losses, so a trade pays half the spread when it opens and half when it closes. There is no commission. The spread is 0.8 pips on EUR/USD, 1.2 on GBP/USD and 0.9 on USD/JPY (a pip is 0.0001 on EUR/USD and GBP/USD, and 0.01 on USD/JPY). It is $0.30 an ounce on gold and $0.020 on silver. On the indices, it is 0.4 points on the S&P 500, 1.5 on the Nasdaq 100, 2.0 on the Dow, and 1.0 on the DAX and the FTSE 100. For silver, the Nasdaq 100, the Dow, the DAX and the FTSE 100, these are wider than our backtest engine's own spreads, to match a typical retail broker. With the standard rules, the spread cost a trade 6.0% of the money it risked, on average, on 15-minute charts. It cost 3.1% on 1-hour charts, 1.5% on 4-hour charts and 0.6% on daily charts.
Smallest trade size
Some signals were skipped, because a trade that risks 1% would have been smaller than the smallest trade size the market allows. The smallest sizes are 1,000 units of a currency pair, 1 ounce of gold, 50 ounces of silver and 0.1 of an index contract. With the standard rules, 211 signals were skipped on 1-hour charts: 188 on silver, 14 on the Dow and 9 on the FTSE 100. Of the 188 on silver, 162 came in 2025, when the silver account had fallen below $2,500 and silver's price moves had grown. 12 signals were skipped on 4-hour charts, and 94 on daily charts, 65 of them on the Dow (about 1 signal in 3 there). On 15-minute charts, 56,587 signals were skipped, almost all after the account had lost more than half of its starting balance. A very close stop-loss can also need a bigger trade than our backtest engine allows, 30 times the account balance. Then the trade uses the biggest size allowed and risks less than 1%. This happened in 43 trades, all on 15-minute charts, and 2 more trades could not open.
Price data
CFD prices: the prices a broker quotes for a CFD (contract for difference), the product most brokers outside the US offer for trading these markets. The rules leave out two kinds of candle, and these candles don't count for CCI or the ATR: tiny candles after the Friday close, and candles with no price change. The tiny candles come from a few minutes of prices after the weekly close at 17:00 New York time on some Fridays. Our data has them on the S&P 500, the Nasdaq 100, the DAX, the FTSE 100 and silver. Candles with no price change (the high equals the low) come, for example, on market holidays. In the 30 tests from 2019 to 2025, the two kinds together were less than 1% of the candles in every test except the FTSE 100, where they were 1.4% to 2.0%. In the daily tests from 2014 to 2025, they were 5.7% of the S&P 500 candles and 5.3% of the Nasdaq 100 candles, most of them tiny Friday candles from 2014 to 2018. They were 3.8% of the FTSE 100 candles and 2.6% of the DAX candles.
DAX and FTSE 100 data
Our DAX and FTSE 100 data has some wrong prices, and the results on this page include them. They come at times with no trading, mostly between 22:00 and 23:00 German time, and they are usually about 1% away from the last real price. From 2019 to 2025, they appear on 44 days on the DAX and 9 days on the FTSE 100. The daily tests also cover 2014 to 2018, with 49 more of these days on the DAX and 38 on the FTSE 100. We test on our price data as it is, but we ran these tests again without the wrong prices to see what they change. Every DAX test on 15-minute, 1-hour and 4-hour charts did better without them. With the standard rules, the 1-hour DAX test made +238.4% instead of +177.9%. 2 DAX tests with one of the changes went from a loss to a profit. These were the bigger chart filter on 15-minute charts (−52.5% to +10.7%) and CCI 14 on 4-hour charts (−1.0% to +1.7%). The FTSE 100 results and the daily DAX results changed by 2 percentage points or less. The one exception was the FTSE 100 daily test with the exit at 100, which went from +0.6% to −2.6%.
Overnight fees
Not included. Brokers charge a fee (a swap), or sometimes pay one, for each night a trade stays open. With the standard rules, half of the trades were open for 2.5 hours or less on 15-minute charts, and for 12 hours or less on 1-hour charts. On 4-hour charts, half were open for more than 2.7 days, and on daily charts for more than 15 days. So half of the 4-hour trades and half of the daily trades would pay or earn fees for at least 2 nights.

The rules we tested

  1. Work out CCI over the last 20 candles.
  2. Buy when CCI crosses above +100: it was at +100 or below on the candle before, and it is above +100 when this candle closes. The trade opens at the next candle's open.
  3. Sell (go short) when CCI crosses below −100 in the same way.
  4. Close a buy when CCI falls back below 0, and close a sell when CCI rises back above 0. The trade closes at the next candle's open.
  5. Sometimes the candle that closes a buy also takes CCI below −100. Then a sell opens one candle after the buy closes, if CCI is still below −100. For a sell, it works the same way with +100.
  6. ATR is an indicator of how far price moves in an average candle, measured over the last 14 candles. Put the stop-loss 2 times the ATR away from the close of the candle that gave the signal. The stop-loss does not move.
  7. Size every trade so that, if the stop-loss is hit, the trade loses about 1% of the account. Only one trade is open at a time.

The method

How we tested it

The test

Markets
EUR/USD, GBP/USD, USD/JPY, Gold, Silver, S&P 500, Nasdaq 100, Dow Jones, DAX and FTSE 100
Charts
15-minute, 1-hour and 4-hour candles
Dates
January 2019 to December 2025
Account
$10,000, risking 1% of the account on each trade
Trading costs
Included. Every trade pays that market's normal trading cost: the spread, which is the gap between the buy price and the sell price.

How a test passes

We call a test passed only if it meets all four checks. A strategy can make money in one backtest and still fail one of these checks.

  • At least 100 trades. With fewer trades, a good result could be luck.
  • It made money from 2019 to 2022 and again from 2023 to 2025. This shows whether the strategy kept working in the newer years, not only in the older ones.
  • A profit factor (the money won divided by the money lost) of at least 1.2 from 2023 to 2025, after trading costs.
  • In 95% of 1,000 random shuffles of the trades, the account must not fall more than 30% from its highest point.

Improvements

Can the CCI momentum breakout be improved?

We tried three changes that traders often make to the CCI momentum breakout: a different exit, a filter from a bigger chart, and a shorter CCI. We tested each one on its own, on the same 30 tests. A change chosen on the same years it is judged on will almost always look good. So we picked the change with the most tests that made money in 2019–2022, and then checked it on 2023–2025, the years we did not use to pick it.

Version Made money 2019–2022years used to pick the best version Made money 2023–2025years not used to pick it Made money in both periods Passed all four checks
Standard rules The rules under 'The rules we tested', with nothing added. 9 of 30middle test −21.4% 8 of 30middle test −24.7% 6 2
Exit at 100 instead of 0 Close a buy when CCI falls back below +100, and a sell when it rises back above −100, instead of waiting for CCI to reach 0. This is the exit in Donald Lambert's own rules. 5 of 30middle test −36.5% 7 of 30middle test −20.8% 4 1
With a bigger chart CCI filterBest on 2019–2022 Only buy when CCI on the next bigger chart is above 0, and only sell when it is below 0. Traders call this a higher timeframe filter. The test uses the CCI of the last candle that has closed on that chart. That is the 1-hour CCI for a 15-minute chart, the 4-hour CCI for a 1-hour chart, and the daily CCI for a 4-hour chart. 11 of 30middle test −6.9% 12 of 30middle test −5.0% 7 3
CCI 14 instead of CCI 20 Work out CCI over the last 14 candles, the default setting in MetaTrader, instead of 20. 10 of 30middle test −20.3% 10 of 30middle test −16.6% 7 0

On 2019–2022, the years we used to pick, the bigger chart CCI filter made money in the most tests: 11 of 30. CCI 14 made money in 10, and the standard rules in 9. On 2023–2025, the years we kept for the check, it made money in 12 tests, compared with 8 with the standard rules. 7 tests made money in both periods with the filter, compared with 6 with the standard rules. From 2019 to 2025 as a whole, 12 tests made money with the filter, and 7 with the standard rules. The difference was on 4-hour charts: 4 tests made money in both periods there, compared with 2. On 1-hour charts, it was 3, compared with 4. CCI 14 also made money in both periods in 7 tests, 4 of them on 1-hour charts. Lambert's exit at 100 made money in both periods in only 4 tests, the fewest. It closes trades sooner, so it made more trades: 117,048 across the 30 tests, compared with 86,324 with the standard rules, and every trade pays the spread.

Passed all four checks with a bigger chart CCI filter

  • Gold, 4-hour
  • Silver, 4-hour
  • Nasdaq 100, 4-hour

Questions

Questions traders ask

Does the CCI momentum breakout work?

In most of our tests, no. From 2019 to 2025, after trading costs, the standard rules made money in 7 of 30 tests. These rules use CCI over 20 candles. They buy when CCI crosses above +100, sell short when it crosses below −100, and close the trade when CCI comes back across 0. Of those 7 tests, 6 made money in both 2019–2022 and 2023–2025: USD/JPY, the DAX, gold and the Nasdaq 100 on 1-hour charts, and gold and silver on 4-hour charts. With a filter from the next bigger chart, 12 of 30 tests made money.

Is CCI above 100 overbought, or a sign to buy?

In our data, neither. Lambert read a move above +100 as the start of a strong move up. Many traders read it as overbought: a sign that price will fall back. 10 candles after a cross above +100, price was higher about as often as after any other candle. On 1-hour charts, it was higher after 52.2% of the crosses, compared with 52.9% after any candle. On the other charts, the two numbers were within 2 percentage points of each other. On 1-hour charts, the breakout still made money on 4 markets, because a few of its trades caught long trends and made more than all the other trades lost together.

What is the best timeframe for a CCI breakout?

With the standard rules, 1-hour charts had the most tests that made money in both 2019–2022 and 2023–2025: 4 of the 10 markets, compared with 2 on 4-hour charts. But those 2, gold and silver, fell less on the way, and they were the only tests that passed all four of our checks. With the bigger chart filter, 4-hour charts did best: 8 of the 10 markets made money, and 4 in both periods. On 15-minute charts, all 10 markets lost money with the standard rules. There, the spread cost a trade 6.0% of the money it risked, compared with 1.5% on 4-hour charts. On daily charts, tested from 2014 to 2025, 3 of the 10 markets made money with the standard rules.

Is CCI 14 or CCI 20 better?

They made money in about the same number of tests. With CCI 14, 8 of 30 tests made money, and 7 made money in both periods. With CCI 20, the standard rules, 7 made money and 6 in both periods. On 1-hour charts, the same 4 markets made money in both periods with both settings. But 2 tests passed all four of our checks with CCI 20, and none with CCI 14. On daily charts from 2014 to 2025, CCI 14 made money on 4 of the 10 markets, and CCI 20 on 3.

The strategy code we ran

This is the exact code from the BacktestingMax strategy engine. Paste it into the strategy editor in the app to run it on any market.

class CciMomentumBreakout(Strategy):
    """The CCI +/-100 momentum breakout, the way Donald Lambert meant his indicator to be used
    for new trends, plus three changes traders often make.
    CCI (Commodity Channel Index) of a candle, over the last N candles (N = 20):
      typical price  = (high + low + close) / 3
      average        = the simple average of the last N typical prices
      mean deviation = the average distance of those N typical prices from that average
      CCI            = (typical price - average) / (0.015 x mean deviation)
    This is the standard formula, the one TradingView and MetaTrader use. It is worked out
    here, on the candles the strategy uses, instead of with a built-in indicator.
    Standard (all switches off):
      Buy at the next open when CCI crosses above +100 (it was at or below +100 on the candle
      before). Sell short at the next open when CCI crosses below -100.
      Exit at the next open after the first candle whose CCI is on the other side of zero:
      below 0 for a buy, above 0 for a sell. If that candle also crosses the opposite level
      (below -100 for a buy), the opposite trade opens one candle later, once the old trade
      has closed, if CCI is still beyond that level.
      Stop-loss: 2 x ATR(14) from the close of the signal candle. It does not move. ATR is
      Wilder's average true range, as the built-in ATR.
      Size: 1% of the account lost at the stop. When that is less than the smallest trade
      size the market allows, the signal is skipped. One trade at a time.
    Skipped candles: a candle that opens on a Friday at 17:00 New York time or later (some
    index and silver data has a few minutes of prices after the weekly close, which make a
    tiny extra candle), and a candle with no range (high = low, a market holiday). The
    strategy ignores them: they don't go into the CCI or the ATR, and they give no signal
    and no exit. On a market that trades at the weekend, remove the Friday rule.
    The changes, one at a time:
      exit_level = 1   exit when CCI crosses back through the level it crossed to enter:
                       below +100 for a buy, above -100 for a sell (Lambert's own exit)
      htf_filter = 1   only buy when the CCI of the last closed candle on the next higher
                       chart is above 0, only sell when it is below 0 (15-minute -> 1-hour,
                       1-hour -> 4-hour, 4-hour -> daily, daily -> weekly). That CCI is
                       worked out the same way, from the higher chart's own candles, and it
                       skips the same candles
      cci_period = 14  a 14-candle CCI (MetaTrader's default) instead of 20
    """
    params = {"cci_period": Param(type=int, default=20, min=2, max=200),
              "level": Param(type=float, default=100.0, min=1.0, max=500.0),
              "atr_period": Param(type=int, default=14, min=2, max=100),
              "atr_mult": Param(type=float, default=2.0, min=0.5, max=10.0),
              "exit_level": Param(type=int, default=0, min=0, max=1),
              "htf_filter": Param(type=int, default=0, min=0, max=1)}
    lookback = 5
    def init(self, ctx):
        self.ny = ctx.clock("America/New_York")
        self.tps = []            # typical prices of the candles used, newest last
        self.cci_prev = None     # CCI of the previous candle used
        self.prev_close = None
        self.first_trs = []      # the first true ranges, until the ATR can start
        self.atr = None
        self.reverse_to = None   # "long" / "short": open this once the closing trade is gone
        self.htf = None
        self.htf_ms = 0
        self.htf_tps = []
        self.htf_cci = None      # CCI of the last closed candle on the higher chart
        self.htf_bar = -1
        self.behind = None       # hours New York was behind UTC on the previous chart candle
        if ctx.params.htf_filter == 1:
            higher = {"M1": "M15", "M5": "M30", "M15": "H1", "M30": "H4", "H1": "H4",
                      "H4": "D1", "D1": "W1"}[ctx.timeframe]
            self.htf = ctx.tf(higher)
            self.htf_ms = self.htf.timeframe_minutes * 60_000
    @staticmethod
    def cci(tps):
        n = len(tps)
        average = sum(tps) / n
        deviation = sum(abs(x - average) for x in tps) / n
        if deviation <= 0:
            return None
        return (tps[-1] - average) / (0.015 * deviation)
    def skipped(self, weekday, hour, high, low):
        """A tiny candle after the Friday close, or a candle with no range."""
        return (weekday == 4 and hour >= 17) or weekday == 5 or high <= low
    def update_higher_chart(self, ctx, n, behind):
        k = self.htf.bar_index
        if k < 0 or k == self.htf_bar:
            return
        self.htf_bar = k
        high, low, close = self.htf.high[0], self.htf.low[0], self.htf.close[0]
        if high is None or low is None or close is None:
            return
        # The higher candle's open time on the New York clock (the view gives its close time).
        opened = self.htf.bar_time - self.htf_ms - behind * 3_600_000
        if self.skipped((opened // 86_400_000 + 3) % 7, (opened // 3_600_000) % 24, high, low):
            return
        self.htf_tps.append((high + low + close) / 3.0)
        del self.htf_tps[:-n]
        if len(self.htf_tps) == n:
            self.htf_cci = self.cci(self.htf_tps)
    def on_bar(self, ctx):
        n = ctx.params.cci_period
        if self.htf is not None:
            # New York is 4 or 5 hours behind UTC. A higher candle is checked with the clock of
            # the chart candle before this one: it is on the same side of a clock change (those
            # happen on Sunday nights, when these markets are closed).
            behind = ((ctx.bar_time // 3_600_000) - self.ny.hour) % 24
            self.update_higher_chart(ctx, n, behind if self.behind is None else self.behind)
            self.behind = behind
        high, low, close = ctx.high[0], ctx.low[0], ctx.close[0]
        if self.skipped(self.ny.weekday, self.ny.hour, high, low):
            return
        # ATR: Wilder's average of the true range, started with the simple average.
        if self.prev_close is None:
            true_range = high - low
        else:
            true_range = max(high - low, abs(high - self.prev_close), abs(low - self.prev_close))
        self.prev_close = close
        p = ctx.params.atr_period
        if self.atr is None:
            self.first_trs.append(true_range)
            if len(self.first_trs) == p:
                self.atr = sum(self.first_trs) / p
        else:
            self.atr += (true_range - self.atr) / p
        # CCI of this candle and of the candle before.
        self.tps.append((high + low + close) / 3.0)
        del self.tps[:-n]
        c1 = self.cci_prev
        c0 = self.cci(self.tps) if len(self.tps) == n else None
        self.cci_prev = c0
        if c0 is None or c1 is None or self.atr is None:
            return
        level = ctx.params.level
        cross_up = c1 <= level < c0        # CCI crosses above +100
        cross_down = c1 >= -level > c0     # CCI crosses below -100
        exit_at = level if ctx.params.exit_level == 1 else 0.0
        pos = ctx.position
        if pos is not None:
            if pos.is_long and c0 < exit_at:
                ctx.close_position()
                self.reverse_to = "short" if cross_down else None
            elif pos.is_short and c0 > -exit_at:
                ctx.close_position()
                self.reverse_to = "long" if cross_up else None
            return
        # A reversal waits one candle for the close to fill. Drop it if CCI came back.
        pending, self.reverse_to = self.reverse_to, None
        go_long = cross_up or (pending == "long" and c0 > level)
        go_short = cross_down or (pending == "short" and c0 < -level)
        if not ctx.gate("cci_crosses_level", go_long or go_short):
            return
        if self.htf is not None:
            agrees = self.htf_cci is not None and (self.htf_cci > 0 if go_long else self.htf_cci < 0)
            if not ctx.gate("higher_chart_cci_agrees", agrees):
                return
        entry = close
        distance = ctx.params.atr_mult * self.atr
        stop = entry - distance if go_long else entry + distance
        size = ctx.size_by_risk_pct(0.01, stop=stop, entry=entry)
        if size <= 0:
            return  # 1% of the account is less than the smallest trade size: skip the signal
        if go_long:
            ctx.buy(size=size, sl=stop, tag="cci_long")
        else:
            ctx.sell(size=size, sl=stop, tag="cci_short")

Your turn

Test the CCI momentum breakout yourself

Change the settings, the market or the stop-loss and see the result in seconds. Ask the BacktestingMax AI: Backtest a CCI 20 breakout above +100 and below −100 on gold, 4-hour chart, only in the direction of the daily CCI.

Try it free in BacktestingMax

Free account. No credit card needed.

See every strategy we tested Browse strategies shared by traders

Backtest on historical data with trading costs, run by BacktestingMax. Past results do not guarantee future results, and nothing here is financial advice. Updated 9 November 2026.