This is the hands-on lesson for the Keltner channel, and the last lesson of the strategy library. You'll replay the same 20 days with both rule sets, breakout and fade, and log every trade. By the end, you'll have one sheet that shows where each approach lost. TradingView is the example, and the screens are simple drawings, so yours will look a bit different. Other platforms have similar tools.
1 of 10
What you'll learn
- Write both rule sets first. Add a number for when the middle line counts as flat.
- Check every input. Match the Keltner settings in TradingView to your rule.
- Run both on the same days. Replay 20 days in a row with both approaches.
- Log each trade in R. Note whether the middle line was flat or sloping.
- Sort the losses by slope. See where each approach lost.
Exercise
- Write both rule sheets and your definition of flat.
- Replay 20 trading days of 15-minute MES1!, logging every breakout and fade trade with its result in R and the middle line's slope.
- Then count where each approach lost.
Quick check
1. Why run both approaches on the same 20 days?
2. Most breakout losses came on flat days. What's the honest next step?
3. Which row records a trade under these rules?
0 of 3 answered.
Finished this lesson?
Tick it off and keep your place
Read the full notes
To test a Keltner channel yourself, write breakout and fade rules plus a definition of a flat middle line, replay the same 20 trading days with both, log every trade with its result and slope, and count where each approach lost.
- Write it first: MES1!, 15-minute, New York time, Lines above and below a moving average, set a number of average true ranges away. First described by Chester Keltner in 1960.More in the glossary (20, 2, ATR 10), signals 9:30 am to 4 pm; both rule sets from Common rules: Keltner channel; flat means the middle line moved less than 3 points over the 10 candles before the signal.
- On TradingView: click Replay, then Select bar and Select date; add Keltner Channels from Indicators and check every input (Length, Multiplier, Source, Use Exponential MA, Bands Style, ATR Length); click Forward one candle at a time. A chart feature that hides the candles after a point you choose, then shows them again one at a time, so you can practise on past prices without seeing ahead.More in the glossary on each timeframe depends on your plan; other platforms have similar tools.
- Log one row per trade, for both approaches: day, time, approach, entry, stop, exit, result in A result measured in units of the amount at risk. If a trade risks 4 points, 1R is 4 points and a 6-point gain is +1.5R.More in the glossary, and flat or sloping.
- Run 20 trading days in a row, both approaches on every day, so they face the same market.
- Sort the losses by slope to see where each approach lost. 20 days is a small How many trades a test is based on. A small sample can look very different from a larger one just by chance.More in the glossary before costs; Level 4 covers proper tests.
Worked example
Made-up numbersReading the finished sheet
Made-up numbers · 20 trading days · MES1! · 15-minute · before costs
- Breakout: 26 trades, 17 losses, 12 on flat days
- Fade: 34 trades, 15 losses, 11 on sloping days
- 12 ÷ 17 ≈ 71% · 11 ÷ 15 ≈ 73%
Each approach lost mostly on the kind of day that suits the other. That's an idea to test on new dates, not a result.
Your turn
DrillBreakout: 17 losses · 12 of them on flat days
Read more
Opening bar replay, When a filter helps and when it overfits, and the trading guide Backtest sample size.
Trading is risky. You can lose money. This lesson explains how a strategy is built and tested. It isn't advice, and it doesn't say the strategy works.