Markets › Futures · NQ futures (5-minute bars, trades in the regular session)

Keltner Channel Breakout Strategy Backtest: NQ Futures, 5-Minute Bars

When a 5-minute bar of the Nasdaq-100 future closes outside its Keltner Channel, does it pay to follow the break? Almost seven years, 5,543 signals, two exits, longs and shorts, with costs and a control.

NQ futures · 5-minute bars, overnight session included in the indicator, trades in the regular session · Protocol v1.0 plus the 8 Oct 2026 rules

Buried · No proven edge

All four versions made money after costs, and the best beat all 500 random copies of itself. Its first four years were too weak to trust.

BornRules, versions, costs and gates frozen 24 Nov 2026 (keltner_spec.md), before any Keltner line was computed
Died24 Nov 2026

Variants tried: 4 · Passed every gate: 0 · Best: 4 of 6 · Holdout opened: yes (already used)

Short answer: not convincingly. On NQ futures 5-minute bars from 2020 to 2026, a close outside the 20-bar EMA ± 2 ATR(10) channel made money after costs in all four versions we tested (+$63 to +$126 a trade per contract), and the best beat all 500 runs of a random-day control; but in 2020 to 2023 the edge was too small to tell from zero, so all four were buried.

00The verdict in three lines

  • A Keltner Channel is a moving average with a line above and below it, set a multiple of the average true range away. We traded the most common setting (a 20-bar EMA, lines 2 × ATR(10) away) on NQ futures 5-minute bars from 2020 to September 2026: a close outside the channel, entry at the next minute, out on a close back at the middle line or at the session close, longs and shorts. 5,543 signals, $15.76 of costs a trade, rules, gates and a control fixed before the run.
  • All four versions made money after costs, from +$63.09 to +$125.97 a trade per contract, and three of them beat the control; the best, with the middle-line exit on both sides, beat all 500 runs of it.
  • None passed, because the first four years did not show a reliable edge: development t-statistics of 0.54 to 1.12 (2.5 needed) and validation profit factors just under 1.2 (1.127 to 1.195). Most of the money came after 2023, and three quarters of the best version's net came from its 10 best trades.

01Where the rule comes from

The original. Chester Keltner described the channel in his 1960 book How to Make Money in Commodities: a 10-day simple average of the typical price, (high + low + close) / 3, with lines one 10-day average of the daily range above and below it. A close above the upper line was read as a buy signal and a close below the lower line as a sell signal. We did not read the book; this is how StockCharts' ChartSchool and Wikipedia describe it.

The version on most charts today, which StockCharts credits to Linda Raschke in the 1980s, uses a 20-period exponential average of the closes, with lines two average true ranges (10 periods) above and below: StockCharts' default setting (20, 2.0, 10). ChartSchool calls it a trend-following indicator, where a break of the channel can signal a new trend, and warns that sometimes no trend follows a breakout and prices swing between the lines. Neither page gives test results. We tested the modern default; the original is a daily-chart rule and was not tested.

What we had tested before (disclosed). A Keltner Channel was part of our TTM Squeeze test on gold (best 5 of 6 gates, buried), but only as the squeeze filter, when the Bollinger Bands sit inside it; no trade was taken on a break of the channel. Other bands and channels: the Donchian channel breakout on ES (all four versions 1 of 6), the Bollinger Band reversal on ES, the opposite idea of fading a close outside the band (best 4 of 6), and the Standard Error Bands on ES (1 of 6). On this NQ file the only versions that passed every gate are the two New York-session versions of the noise area breakout (its forward test is running; the other noise area versions scored 1 to 3 of 6). Buried: the opening range breakout (best 3 of 6), the initial balance breakout (4), the first 5-minute candle with a fair value gap (2), the bull and bear flag (2), MACD + RSI + 200 EMA and the EMA 5/8/13 ribbon (4 each, both with indicators on the same continuous chart), and the 9 EMA (1), one of whose setups also exited on a close back through the average. In our guides the breakout family counts 24 tests and 112 versions, and only the two noise area versions passed; because the family is that crowded, the development t-statistic needed here is 2.5. That is a stricter bar, not a full correction for every test tried.

02The rule, mechanically

  • The chart: 5-minute bars built from every minute of the file, overnight session included, as on the default continuous futures chart of most platforms (and as in our MACD + RSI and EMA ribbon NQ tests). The 13:00 holiday sessions stay on the chart, but no trade is taken on them.
  • The channel: middle line = the 20-bar EMA of the closes; upper and lower lines = the middle line plus and minus 2 × ATR(10), Wilder's average of the true range. Each bar's own close and range are in its lines, as on a chart.
  • The signal: a 5-minute bar closes above the upper line while the bar before it closed inside the channel (or on the line): a long. A close below the lower line after a close inside: a short. So a run of closes outside the channel gives one signal, at its first bar. Only bars ending between 09:35 and 15:30 New York count (12:45 on a 13:15 early close).
  • The trade: entry at the open of the next minute. One position at a time; a signal while a position is still open is ignored, including on the bar that ends it. No stop and no target.

The four versions (two exits, two directions):

  • KC-MID-LS and KC-MID-L: out when a 5-minute bar closes back at or through the middle line, at the open of the next minute; otherwise at the session close (16:00, or 13:15). Long and short, or long only.
  • KC-CL-LS and KC-CL-L: held to the session close. At most one trade a session.

Every trade closes the same session. Long only is its own version because NQ rose strongly in these years; in the long-and-short versions both sides are reported but not gated separately. Not tested: other lengths or multipliers, Keltner's original rule, the opposite band as an exit and a trailing stop.

03Data and costs

Data: NQ 1-minute bars from 2020 to 25 September 2026, the NinjaTrader back-adjusted export of all our NQ tests; prices are not republished. An automated check of the file came before any indicator was computed (section 13). Costs: $15.76 a round trip per contract ($20 a point), as in every NQ test. Engine check: the trades were computed twice. Our engine (keltner_lib.js) and a separate re-implementation (keltner_ref.js), with its own file reader, its own exchange calendar, its own bars, averages and a single pass through the bars, agree on every one of the 5,543 signals and on every trade of the four versions (2,962, 1,460, 1,599, 1,116). The re-implementation was written by the same author (an AI, Claude), not by an independent person or agent. keltner_selftest.js runs 54 checks (keltner_selftest_result.txt): the averages by hand, every signal and exit rule on hand-built days, a look-ahead test that cuts the data at 50 random minutes and finds every earlier signal and trade unchanged, and seven deliberate rule changes that it must catch. Its first run failed two checks, on a hand-built day of the test itself that put a bar at the wrong time; the day was fixed and no engine code changed.

04Results

Results in dollars per contract. The 95% range is the Wilson interval for the win rate. The drawdown is on closed trades; every trade is closed the same session.

VariantExit and directionTradesNet after costsNet per tradeGross per tradeWinners (95% range)Profit factorDrawdown on closed tradesVerdict
KC-MID-LSout on a close back at the middle line; long and short2,962+$186,884+$63.09+$78.8539.8% (38% to 42%)1.11-$57,298Buried
KC-MID-Lout on a close back at the middle line; long only1,460+$123,815+$84.81+$100.5742.8% (40% to 45%)1.17-$30,755Buried
KC-CL-LSheld to the session close; long and short1,599+$201,425+$125.97+$141.7354.4% (52% to 57%)1.11-$60,752Buried
KC-CL-Lheld to the session close; long only1,116+$133,022+$119.20+$134.9657.5% (55% to 60%)1.12-$37,298Buried
$0$100,000$200,000202120222023202420252026validationholdout*KC-MID-LSKC-MID-LKC-CL-LSKC-CL-L

Cumulative net result by month, dollars per contract.

By period

VariantDevelopment 2020-2023 (trades)Validation 2024 to Mar 2025 (trades)Holdout* Apr 2025 to Sep 2026 (trades)Development tValidation PF
KC-MID-LS+$32,645 (1,836)+$59,936 (532)+$94,304 (594)0.541.195
KC-MID-L+$44,257 (912)+$23,746 (255)+$55,812 (293)1.121.182
KC-CL-LS+$65,160 (960)+$57,757 (293)+$78,507 (346)0.751.178
KC-CL-L+$61,681 (689)+$22,028 (200)+$49,312 (227)0.891.127

* The holdout was already used: these months had been seen in our earlier NQ tests, so its result cannot count as clean out-of-sample evidence. The validation profit factors are shown to three decimals because the best, 1.195, rounds to 1.20 but is below the 1.2 the gate needs.

Every version was positive in all three periods, but not by the same amount. The middle-line exit on both sides made +$17.78 a trade in development, +$112.66 in validation and +$158.76 in the holdout: 83% of its net came after 2023.

05How the trades ran

VariantOut at the middle lineOut at the session closeMedian holding timeSignals ignored (position open)Trades per trading sessionMedian best / worst move inside a trade (points)A close beyond the opposite line before the close
KC-MID-LS87.1%12.9%60 min2,5811.8543.50 / -33.5034.4%
KC-MID-L85.8%14.2%69 min1,3871.3141.50 / -29.7534.0%
KC-CL-LS–100.0%369 min3,9441.0085.25 / -75.5045.2%
KC-CL-L–100.0%339 min1,7311.0070.25 / -62.5038.9%

Where the signals came from: on the whole chart, overnight included, the price closed outside the channel after a close inside 19,871 times. 6,068 of those breaks were on bars of the regular session, 525 of them after 15:30, which left 5,543 signals (2,847 long, 2,696 short), 3.28 a session. 431 came on the first bar of the session, 09:31 to 09:35, when the channel still reflects the quiet overnight hours. At the signal the median channel half-width (2 × ATR) was 48.73 points, and the median close was 5.64 points beyond the line.

The last column shows how often the opposite band was reached: in about a third of the middle-line trades a bar closed beyond the other side of the channel before the session ended. Such a close is also a close beyond the middle line, so by then the middle-line exit had already taken the trade out. Our specification left the opposite band out as an exit on the guess that it would almost never be reached within a session; that guess was wrong.

06Costs were not the problem

VariantGross per tradeCosts per tradeNet per tradeNet at 1.5× costsNet at 2.5× costsMedian channel half-width (points)
KC-MID-LS+$78.85-$15.76+$63.09+$55.21+$39.4547.20
KC-MID-L+$100.57-$15.76+$84.81+$76.93+$61.1744.20
KC-CL-LS+$141.73-$15.76+$125.97+$118.09+$102.3347.26
KC-CL-L+$134.96-$15.76+$119.20+$111.32+$95.5645.96

$15.76 is 0.79 point a round trip, under 2% of the median channel half-width at the signal. At 2.5 times the costs every version still made +$39.45 a trade or more. What decides this test is not the costs but how much the result moved from period to period and how much of it came from a few days.

07By year and by hour of entry

YearKC-MID-LS tradesKC-MID-LS netKC-MID-L tradesKC-MID-L netKC-CL-LS tradesKC-CL-LS netKC-CL-L tradesKC-CL-L net
2020483-$40,752236-$2,914241+$11,812177-$2,055
2021445+$26,747222+$21,636240-$10,212172+$17,199
2022463+$42,153216+$14,786245+$46,524162+$29,077
2023445+$4,497238+$10,749234+$17,037178+$17,460
2024425+$59,677205+$36,144236+$31,046163+$20,961
2025404+$42,348195+$14,857235+$54,761153+$17,904
2026297+$52,214148+$28,558168+$50,457111+$32,476

2026 runs to 25 September. Each version lost in one of the seven years: 2020 for three of them, 2021 for the session-close version on both sides. By the time of entry (New York; the first bar of the session on its own row):

EntryKC-MID-LS tradesKC-MID-LS netKC-MID-L tradesKC-MID-L netKC-CL-LS tradesKC-CL-LS netKC-CL-L tradesKC-CL-L net
The 09:35 bar431+$78,677210+$57,030431+$72,522210+$39,505
09:40 to 09:59502+$33,623244+$42,410490+$89,803242+$116,386
10:00 hour464-$18,313224-$58,740333+$9,687205-$51,766
11:00 hour284-$1,581144+$15,911124+$18,316116+$32,387
12:00 hour277+$30,289142+$15,26278-$27,17495-$7,177
13:00 hour399+$55,712188+$47,47773+$19,060107-$2,036
14:00 hour382-$14,490193-$3,48746+$13,380101-$6,752
15:00 hour223+$22,966115+$7,95324+$5,83240+$12,475

The signals of the session's first bar were positive in all four versions, and in the best version they made 42% of the net; entries in the 10:00 hour lost in three of the four. These splits are descriptive: keeping only the first bar, or dropping the 10:00 hour, after seeing them would be a new test with a new chance of luck.

08Longs, shorts and the best trades

VariantLongs: trades / netShorts: trades / net10 best tradesNet without themDevelopment net (share)
KC-MID-LS1,459 / +$126,4011,503 / +$60,483+$143,572 (77% of the net)+$43,311+$32,645 (17%)
KC-MID-L1,460 / +$123,815–+$104,727 (85% of the net)+$19,088+$44,257 (36%)
KC-CL-LS802 / +$163,840797 / +$37,584+$152,507 (76% of the net)+$48,917+$65,160 (32%)
KC-CL-L1,116 / +$133,022–+$121,412 (91% of the net)+$11,609+$61,681 (46%)

Both sides made money in the long-and-short versions, the longs more. The profit sat in few trades: in every version the 10 best trades made three quarters of the net or more. The single best trade of the middle-line version was a long on 9 April 2025, the day the US announced a 90-day pause on most new tariffs and the Nasdaq-100 jumped, worth +$31,119 a contract; the session-close version took the same day for +$36,309. Without their 10 best trades all four stayed positive, so the result does not hang on a single day, but most of it came from days with very large moves.

09Is it the channel or the clock?

The benchmark is a moved-entry control: every trade keeps its entry time of day, its direction and its exit rule (the middle-line exit on the new day's own chart, or the session close), and all trades move together to other sessions by one random offset of at least 5% of the sessions; on the new day each trade enters at the market at the same time. 500 runs with fixed seeds; the bar is the 95th percentile of the average net result per trade. It asks whether the Keltner break picks better moments than the same trades on other days.

VariantTradesReal average per tradeControl medianControl 5th to 95thPercentile (95 needed)
KC-MID-LS2,962+$63.09+$0.97-$28.53 to +$30.82100.0
KC-MID-L1,460+$84.81+$8.22-$32.75 to +$54.8399.2
KC-CL-LS1,599+$125.97-$19.92-$171.83 to +$106.3297.0
KC-CL-L1,116+$119.20+$31.29-$68.95 to +$142.9689.8

The middle-line version on both sides beat all 500 runs: on other days, the same entries and exits made about +$0.97 a trade. Three versions passed this gate; the session-close long-only version did not (89.8th percentile). So the breaks did pick better moments than random days over the whole sample, but this gate looks at all seven years together; in the first four the edge was too small to be told from zero (section 04).

10The gates

VariantTrades1. PF ≥ 1.2 in validation2. ≥ 50 trades in each period3. t ≥ 2.5 on development4. Above the 95th percentile of the control5. Positive without the 10 best trades6. Holdout net positive (already used)
KC-MID-LS2,962fail (1.195)passfail (0.54)pass (100.0)passpass
KC-MID-L1,460fail (1.182)passfail (1.12)pass (99.2)passpass
KC-CL-LS1,599fail (1.178)passfail (0.75)pass (97.0)passpass
KC-CL-L1,116fail (1.127)passfail (0.89)fail (89.8)passpass

11Verdict by variant

VariantCauseGates failedVerdict
KC-MID-LSNo proven edge1, 3Buried
KC-MID-LNo proven edge1, 3Buried
KC-CL-LSNo proven edge1, 3Buried
KC-CL-LNo proven edge1, 3, 4Buried

The causes follow the protocol's definitions. No proven edge marks all four: each made money, but none had a reliable first period (development t from 0.54 to 1.12, 2.5 needed) or a validation profit factor of 1.2. Rule 3 (trades near suspect data, section 13) changed no verdict; without its 36 flagged trades the best version passed five gates, still not the development t. Buried means that a convincing edge was not shown here; it does not prove that none exists. We had planned to run any version that passed every gate on NQ data from 2010 to 2019; none passed, so those years were not touched.

TWhat this shows, and what to take into your own tests

What the results show

  • All four versions made money after costs, in every period, from +$63.09 to +$125.97 a trade per contract, and costs were small: $15.76 a trade against a channel half-width of about 49 points.
  • The best version, with the middle-line exit, beat all 500 runs of the control: the same trades placed on other days at the same time made about +$0.97 a trade, against +$63.09.
  • But the development years did not show it: +$17.78 a trade from 2020 to 2023 (t 0.54, where 2.5 is needed). 83% of that version's net came after 2023, and 77% of it from its 10 best trades.

What remains unknown

  • Other settings: a 1.5 or 3 ATR channel, other averages, or Keltner's original 10-day rule. None was tried, on purpose.
  • Other charts (15-minute, daily) and other markets such as ES.
  • The years 2010 to 2019. We had planned to run them only if a version passed every gate; none did, so they were not touched.
  • Whether the strong 2024 to 2026 stretch, much of it in our already-used holdout, carries on.

Why it was buried

Two gates failed in every version. The development t-statistics ran from 0.54 to 1.12, with 2.5 needed: in 2020 to 2023 the average trade was too small next to its spread to be told from zero. And the validation profit factors ran from 1.127 to 1.195, just under the 1.2 needed. Most of the money came later and from a handful of days with very large moves, such as 9 April 2025.

What you can apply to your own tests

  • Beating a control is not enough on its own: check that the first period shows the edge too, not only the last ones.
  • Look at where the profit sits: by year and in the best ten trades. Here three quarters of it was in ten trades.
  • Split results by entry time. Here the first bar of the session carried a large part of the result; choosing it after the run would be a new test.

A note on the numbers: drawdown figures are measured on closed trades unless a table says it includes open losses. Open losses inside a trade are not counted in a closed-trade drawdown, so real account risk is higher, especially for systems with no stop. Backtests are not live trading.

FAQCommon questions

What is a Keltner Channel?

A moving average with a line above and below it, set a multiple of the average true range away. The common setting today is a 20-period EMA with lines 2 ATR(10) away. Chester Keltner's 1960 original used a 10-day average of the typical price, with lines one 10-day average of the daily range away.

Does the Keltner Channel breakout strategy work on NQ futures?

Not well enough to pass our test. On 5-minute bars from 2020 to September 2026 (5,543 signals), all four versions made money after costs, and three beat the same trades placed on other days. But the development t-statistics were only 0.54 to 1.12, where 2.5 is needed, and the validation profit factors were just under 1.2 (1.127 to 1.195). Most of the profit came after 2023, and three quarters or more of each version's net came from its ten best trades.

Should you exit a Keltner breakout at the middle line or hold it?

In our test both made money. Holding to the session close made more per trade (+$126 against +$63 for long and short), but it held about six hours instead of one and beat its control by less (the 97th percentile against all 500 runs for the middle-line exit).

What are the best Keltner Channel settings?

We did not search for them. We tested only the common default, a 20-bar EMA with lines 2 ATR(10) away, because settings chosen after seeing the results tend to look better on old data than they will on new data. Other lengths or multipliers would each be a new test.

How was the Keltner Channel strategy tested?

On NQ 1-minute bars from 2020 to 2026, with the channel on 5-minute bars that include the overnight session and trades only in the regular session, $15.76 of costs a trade and rules written and dated before the data was run, costs included on every trade, results split into development, validation and holdout periods, a random-entry control as the benchmark, and every variant reported. Read the protocol.

12Check our arithmetic

Frozen specificationRules, versions, costs, periods, gates and control, dated before any Keltner line was computed, with the run log (the data check, the self-test and the run).
keltner_spec.md
CodeThe engine, the separate re-implementation, the self-test, the run and the data check.
keltner_lib.js · keltner_ref.js · keltner_selftest.js · keltner_run.js · keltner_datacheck.js
Shared code and data filesThe file reader and session list of our flag test, the exchange calendar, statistics and control helpers, the futures roll dates that the shared period file reads, and the record of suspect gaps.
control_audit_lib.js · em_lib.js · flag_lib.js · gh_lib.js · hourly_lib.js · ma_lib.js · rb_lib.js · rsi2_protocol.js · gc_rolls.json · data_holes.json
ResultsThe data check, the self-test result, the console output of the run and all numbers as one file.
keltner_datacheck.txt · keltner_selftest_result.txt · keltner_results.txt · keltner_summary.json
Trade logs (CSV)Every trade: date, direction, the signal bar, entry and exit times and prices, the channel half-width and the distance to the middle line at the signal, the result before and after costs, the exit reason, the holding time, the best and worst move inside the trade, whether the opposite line was closed beyond, and the rule-3 flag.
KC-MID-LS · KC-MID-L · KC-CL-LS · KC-CL-L

To rerun it: place NQ_1min.csv (New York time, close stamps, with volume) one folder above, then run node keltner_datacheck.js, node keltner_selftest.js and node keltner_run.js, in that order; the outputs go to a subfolder named keltner_out. Code provenance: code written for this test.

13Data notes

The data check (keltner_datacheck.txt), before any indicator: 2,373,779 minutes, every price on the 0.25 grid, no duplicate stamp, and 1,689 regular sessions (12 of them ending at 13:15) whose calendar matches an independent list of stock market holidays and early closes, apart from three trading days with no regular-hours data in the file. The 46 market holidays on which the futures trade until 13:00 are on the chart but are not sessions here. The continuous chart has 475,280 five-minute bars, 343,979 of them outside regular hours (a median of 186 overnight bars before each session). Ten gaps of 10 or more minutes fall inside regular hours. Longer gaps in the overnight hours, such as nights in March 2020 and 22 to 25 January 2026, are in our record of suspect gaps. One fault in the file: in the week of 19 to 22 October 2020 the time stamps are shifted, with only 4.5% to 6.5% of each day's volume inside regular hours. Rule 3: trades in that week, on 18 thin sessions (11 of them roll days, when the file takes the thin contract), or with a suspect gap between 20 bars before the signal and the exit were flagged (36, 11, 22, 13 in the four versions) and the gates recomputed without them; no verdict changed. From the run log: the specification's guess of the trade count held (the middle-line version averaged 1.85 trades a trading session).

14Corrections

None since publication.

+More tests and guides