Backtests

Can Keltner Channel Breakouts Beat Buy-and-Hold? A 3-Year Test on Tech Equities & QQQ

September 17, 2026
Share: Post Share Reddit
ResultsBreakdownRiskMonthly ReturnsSetup & Replication

What Did We Test?

This strategy uses a Keltner Channel with a 20-period EMA as the center line and bands set 2.0 times the 10-period ATR. It enters a long position when the close breaks above the upper band and the 14-period ADX is above 25, indicating strong trend confirmation. Positions are exited when the close drops below the 20-period EMA center line.

The combination of a Keltner Channel breakout and ADX trend confirmation seeks to capture significant price movements while limiting false signals during weaker trends.

Component Description
Indicator Keltner Channel (20-period EMA, 2.0 x 10-period ATR); ADX (14-period)
Signal Breakout above upper band and ADX above 25
Rule Enter long at the next bar’s open; exit when close crosses below the 20-period EMA

What Happened?

The strategy achieved a 29% total return over three years, increasing the initial $100,000 to approximately $129,239. This performance lagged significantly behind both the equal-weight buy-and-hold basket, which returned 166%, and the Nasdaq-100 ETF (QQQ) with a 93% gain. The strategy’s max drawdown was 7%, notably smaller than the 29% and 23% drawdowns of the benchmarks.

The strategy’s Sharpe ratio of 1.02 indicates moderate risk-adjusted returns. However, its results were concentrated, with the largest five trades making up a substantial portion of the profits, highlighting a potential dependency on a few key trades.

Strategy
+29.2% (CAGR: +8.9%)
Worst decline: -7.0% | Risk-adjusted: 1.02 Sharpe
Equal-weight buy & hold basket (6 symbols)
+166.3% (CAGR: +38.7%)
Worst decline: -28.9%
Buy & hold QQQ
+93.1% (CAGR: +24.6%)
Worst decline: -22.8%

How Did It Compare With the Benchmarks?

Side-by-Side Comparison
Benchmark CAGR and drawdown are computed from daily closes over the same window; Sharpe is omitted because the methodologies differ
Metric Strategy Equal-weight buy & hold basket (6 symbols) Buy & hold QQQ
Total return +29.2% +166.3% +93.1%
Annualized return (CAGR) +8.9% +38.7% +24.6%
Max drawdown -7.0% -28.9% -22.8%
Ending equity $129,239 $266,324 $193,129
Backtest Summary
Every figure computed from this run’s saved results
Metric Value
Starting capital $100,000
Ending capital $129,239
Total return +29.24%
Annualized return (CAGR) +8.94%
Closed trades 48 (+1 still open at the end)
Win rate (closed trades) 47.9%
Profit factor (closed trades) 2.66
Sharpe ratio (annualized) 1.02
Calmar ratio 1.29
Max drawdown -6.99%
Equal-weight buy & hold basket (6 symbols) +166.32%
Strategy vs. Equal-weight buy & hold basket (6 symbols) -137.08 pp
Buy & hold QQQ +93.13%
Strategy vs. Buy & hold QQQ -63.89 pp

Out of 37 months, it recorded 12 positive months, with an average gain of 4%, and 16 negative months, with smaller average losses of 1%.

At the trade level, the strategy closed 48 trades (+1 open), achieving a 48% win rate and a profit factor of 2.66. The average closed-trade P&L was $611. Profitability was significantly concentrated; removing the five largest winners results in a negative net profit. The impact of a few large trades is crucial, as they drive the overall positive performance despite smaller, frequent losses.

Risk-Adjusted Return Metrics
Metric Value
Annualized Return (CAGR) 8.94%
Annualized Volatility 8.86%
Sharpe Ratio 1.02
Sortino Ratio 1.66
Calmar Ratio 1.29

Risk-Adjusted Returns

Sortino (1.66) sits above Sharpe (1.02), so more of the volatility came from gains than from losses. Calmar (1.29) rests on a single worst drawdown of 7%, so it moves with that one episode. Benchmark Sharpe, Sortino and Calmar are not shown in this article, so these three ratios are not compared with buy-and-hold here.

Where Did the Result Come From?

AMD and NVDA produced the largest gains, $17,795 and $11,960. AMZN lost $4,083 and AAPL lost $742. Excluding the single largest winner reduces net profit to $17,226, and excluding the five largest winners turns it into a loss of $5,090.

The mean return per trade was about 4%, with a 95% confidence interval from about -1% to +8% (exact figures in the table above) and a p-value of 0.1055. That is not strong evidence of a positive average trade. With 48 closed trades (plus 1 open), and overlapping trades that are not independent, the test is only indicative.

Performance by Symbol
6 symbols, closed trades only
Symbol Trades Net P&L Win rate Profit factor
AMD 8 +$17,795 75.0% 6.67
NVDA 7 +$11,960 42.9% 4.92
QQQ 8 +$2,603 62.5% 3.46
MSFT 6 +$1,769 50.0% 2.58
AAPL 10 -$742 40.0% 0.83
AMZN 9 -$4,083 22.2% 0.21
Profit Concentration
How much of the result depends on the largest winning trades (closed trades only)
Scenario Net profit Total return Profit removed
Headline result +$29,239 +29.2% –
Excluding the single largest winner +$17,226 +17.2% $12,013
Excluding the 5 largest winners -$5,090 -5.1% $34,330

Is the Average Trade Different From Zero?
One-sample t-test on per-trade returns; overlapping trades are not independent, so treat the p-value as indicative
Statistic Value
Closed trades tested 48
Mean return per trade +3.66%
Standard error 2.22 pp
95% confidence interval for the mean -0.80% to +8.12%
t-statistic (H0: mean = 0) 1.65
p-value (two-sided) 0.1055

How Bad Did It Get?

The 7% maximum drawdown ran from July 2024 to March 2025, taking 181 trading days to reach its trough and a further 69 trading days to recover. That is 21.94 percentage points shallower than the equal-weight basket’s worst decline and 15.78 points shallower than QQQ’s. Across the whole window the strategy spent 87% of trading days below a prior equity peak, with the longest stretch lasting 249 trading days.

What Stood Out

  • The profit factor was 2.66 even though the win rate was below 50%.
  • Excluding the five largest winners turns the net result into a loss.
  • The maximum drawdown was far shallower than both benchmarks, yet the strategy closed below a prior equity peak on most trading days.

Limits of This Backtest

  • The window is three years, so it covers a limited range of market conditions.
  • With 48 closed trades the sample is small and the trade-level test (p-value 0.1055) does not show a positive average trade.
  • One position was still open at the end of the window.
  • The result is in-sample: the rules were fixed in advance and not tuned, but no out-of-sample period was tested.

Monthly Returns

Monthly Returns Matrix (%)
Month2023202420252026
Jan–0.95%-0.43%0.00%
Feb–5.99%0.00%-0.81%
Mar–1.44%-1.82%0.00%
Apr–-1.43%0.00%3.94%
May–-0.06%0.41%9.20%
Jun–3.03%6.40%-2.26%
Jul–-0.06%7.67%-0.88%
Aug0.00%-1.00%-3.54%-0.85%
Sep0.00%0.00%-0.39%–
Oct0.00%0.00%2.43%–
Nov1.01%-0.60%-2.66%–
Dec2.80%-0.72%-0.66%–
YTD3.83%7.56%7.02%8.13%

The period recorded 12 positive months versus 16 negative months. The standout was May 2026, with a return of 9%, contrasting sharply with August 2025, which saw a 4% decline.

Conclusions

This backtest produced a positive return with a much shallower drawdown than buy-and-hold, but it trailed both the equal-weight basket and QQQ by a wide margin. The result depends on a handful of large winners: without the five largest, it is a loss. This is an educational walkthrough of one backtest, not investment advice, and backtested performance does not predict future results.

Ideas to Test Next

The reliance on a few large trades indicates profitability could be fragile. Incorporating a trailing stop could help lock in gains from those significant winners while providing downside protection.

Trade QQQ, NVDA, AAPL, MSFT, AMD, and AMZN using a Keltner Channel Volatility Breakout strategy. The channel is a 20-period EMA center line with upper and lower bands set 2.0 x the 10-period ATR away from it. Enter long when the close breaks above the upper band and the 14-period ADX is above 25. Use a trailing stop set at 2 x the 10-period ATR to exit the position.

More Backtests

Strategy Specifications & Replication Code

Backtest Setup
Read from this run’s saved configuration
Parameter Setting / Value
Asset universe 6 symbols (QQQ, NVDA, AAPL, MSFT, AMD, AMZN)
Time window 2023-08-29 to 2026-08-27 (3.0 years)
Starting equity $100,000
Benchmarks Equal-weight buy & hold basket (6 symbols) (+166.3%); Buy & hold QQQ (+93.1%)
Position size (as executed) 26 to 345 units per trade
Execution model Orders fill at the next bar’s open after the signal bar
Transaction cost 5 bps of traded value on every fill (entry and exit)
Commission None modelled beyond the 5 bps cost
Position sizing One equal dollar slot per symbol (starting equity divided by the number of symbols), whole shares, long-only, no leverage and no adding to open positions
Full per-symbol trade statistics ▾
Trade Statistics by Symbol
Detailed performance and risk metrics breakdown per traded asset
Symbol Trades Realised Net P&L Win Rate Loss Rate Max Equity Min Equity Gross Profits Gross Losses Max Drawdown Transactions Avg Trade P&L Ending Equity (incl. open) Largest Winner Largest Loser Profit Factor Avg Winning Trade Avg Losing Trade Median Trade P&L Trade P&L Std Dev Avg Win/Loss Ratio Median Losing Trade Median Winning Trade Median Win/Loss Ratio Profit / Max Drawdown
QQQ 8 $2,603 62.5% 37.5% $3,348 -$141 $3,753 -$1,084 -$1,360 16 $334 $2,603 $1,864 -$436 3.46 $751 -$361 $196 $793 2.08 -$410 $428 1.05 1.91
NVDA 7 $11,960 42.9% 57.1% $14,272 -$729 $15,088 -$3,070 -$3,563 14 $1,717 $11,960 $8,996 -$1,140 4.92 $5,029 -$767 -$559 $3,819 6.55 -$685 $4,793 6.99 3.36
AAPL 10 -$742 40.0% 60.0% $4,305 -$767 $3,192 -$3,851 -$5,073 20 -$66 -$742 $2,725 -$1,127 0.83 $798 -$642 -$278 $1,087 1.24 -$605 $225 0.37 -0.15
MSFT 6 $1,769 50.0% 50.0% $2,861 -$683 $2,983 -$1,156 -$1,735 13 $304 $1,706 $2,620 -$610 2.58 $994 -$385 -$116 $1,178 2.58 -$289 $338 1.17 0.98
AMD 8 $17,795 75.0% 25.0% $21,203 -$1,537 $21,013 -$3,151 -$5,811 16 $2,233 $17,795 $12,022 -$2,018 6.67 $3,502 -$1,576 $712 $4,585 2.22 -$1,576 $1,108 0.70 3.06
AMZN 9 -$4,083 22.2% 77.8% $848 -$4,158 $1,094 -$5,103 -$5,006 18 -$445 -$4,083 $708 -$1,060 0.21 $547 -$729 -$558 $636 0.75 -$672 $547 0.81 -0.82

Strategy Code & Replication

The strategy code behind every number in this article is published as standalone, pre-executed research reports. Each one re-runs the backtest end to end against freshly downloaded market data when rendered.

R · quantstrat
View the Full R Research Report →
Backtest, benchmarks and risk diagnostics. Every code block has a copy button.
Python · VectorBT
View the Full Python Research Report →
Same strategy built on VectorBT. Every code block has a copy button.
Interactive Web Backtester

Clone and test this strategy in the web app

Launch the audited recipe in our web backtester. Tweak indicators, adjust thresholds, and test alternative parameters with 1 click.

Clone & Test Strategy →
← Back to all backtests