Files
ai/gateway/knowledge/trading/strategies/stocks/channel.md
Tim Olson 47471b7700 Expand model tag support: add GLM-5.1, simplify Anthropic IDs, scan tags anywhere in message
- Flink update_bars debouncing
- update_bars subscription idempotency bugfix
- Price decimal correction bugfix of previous commit
- Add GLM-5.1 model tag alongside renamed GLM-5
- Use short Anthropic model IDs (sonnet/haiku/opus) instead of full version strings
- Allow @tags anywhere in message content, not just at start
- Return hasOtherContent flag instead of trimmed rest string
- Only trigger greeting stream when tag has no other content
- Update workspace knowledge base references to platform/workspace and platform/shapes
- Hierarchical knowledge base catalog
- 151 Trading Strategies knowledge base articles
- Shapes knowledge base article
- MutateShapes tool instead of workspace patch
2026-04-28 15:05:15 -04:00

61 lines
3.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
description: "Buys at the channel floor and shorts at the ceiling (mean-reversion), or follows breakouts through channel boundaries (trend-following), using a Donchian Channel defined by T-period price extremes."
tags: [stocks, technical-analysis, channel, donchian, trend-following, mean-reversion]
---
# Channel
**Section**: 3.15 | **Asset Class**: Stocks | **Type**: Technical Analysis (Mean-Reversion or Trend-Following)
## Overview
A channel (band) strategy uses a price range bounded by a ceiling and a floor within which the stock price fluctuates. The most common definition is the Donchian Channel, where the ceiling is the T-period maximum price and the floor is the T-period minimum price. The trader can either fade moves to the channel extremes (mean-reversion) or follow breakouts through channel boundaries (trend-following).
## Construction / Signal
**Donchian Channel** (Donchian, 1960):
```
B_up = max(P(1), P(2), ..., P(T)) (329)
B_down = min(P(1), P(2), ..., P(T)) (330)
```
where P(t) is the stock price, t=1 is the most recent day, and T is the channel lookback period.
**Mean-reversion signal** (fade the extremes):
```
Signal = { Establish long / liquidate short if P = B_down
{ Establish short / liquidate long if P = B_up (331)
```
The expectation is that if the price touches the floor or ceiling, it will bounce back toward the center of the channel.
**Trend-following variant**: If the price breaks through B_up (ceiling), the trader may interpret this as the start of a new uptrend and go long instead of shorting; if it breaks through B_down, go short.
## Entry / Exit Rules
**Mean-reversion mode**:
- **Long entry**: Price reaches channel floor B_down.
- **Short entry**: Price reaches channel ceiling B_up.
- **Exit**: Close when price moves toward the center, or at a fixed time horizon.
**Trend-following mode (breakout)**:
- **Long entry**: Price breaks above B_up (new trend upward).
- **Short entry**: Price breaks below B_down (new trend downward).
- **Exit**: Wait for channel break in the opposite direction.
## Key Parameters
- **Channel period T**: Number of trading days for computing the min/max (typically 1055 days)
- **Channel width**: Wider channels (longer T) reflect higher volatility; narrower channels = tighter bands
- **Mode**: Mean-reversion (fade) vs. trend-following (breakout)
- **Volume confirmation**: Signal robustness improves when price extremes coincide with increased traded volume
## Variations
- **With volume filter**: Signal is more robust when a price reversal or breakout occurs alongside increased traded volume
- **Bollinger Bands**: Channel defined by moving average ± N standard deviations (alternative to fixed min/max)
- **Keltner Channels**: MA ± N * ATR (average true range)
## Notes
- The wider the channel, the higher the implied volatility of the underlying stock.
- The channel indicator is typically used together with other signals (e.g., volume) rather than in isolation.
- Mean-reversion mode assumes the price will bounce off extremes; trend-following mode assumes a breakout signals a new trend.
- The strategy can be applied single-stock or across a universe; with a large universe, near-dollar-neutral portfolios are possible.
- Donchian Channels are a classic component of the "Turtle Trading" trend-following system.