# Spike and Channel

Spike and Channel is an indicator on [Vela](https://vela.luxalgo.com/chart), our next-generation charting platform, written in Pine Script®.

Detects Al Brooks' spike and channel trend: a spike of consecutive strong trend bars with little overlap, the pullback whose extreme starts the channel, and a channel of at least two legs at a shallower slope than the spike. A trendline break followed by a failed test of the trend extreme marks the channel end and plans the countertrend trade back to the channel start.

- Indicator in the LuxAlgo Library, by LuxAlgo, published Jul 9, 2026.
- Access: free.
- Concepts: [spike and channel](https://www.luxalgo.com/library/concept/spike-and-channel/) (primary)
- Open on Vela: https://vela.luxalgo.com/chart?pineScriptCodeId=z11qnqi0nvszt3hegf61bjyg
- Page: https://www.luxalgo.com/library/indicator/spike-and-channel/

The **Spike and Channel** indicator identifies powerful price action patterns characterized by an initial impulsive phase followed by a structured corrective channel. By automating the recognition of these trend exhaustion setups, the tool allows traders to visualize the transition from aggressive momentum to a measured, fading trend. It focuses on the mechanics of institutional price action, where a strong "spike" in price leads to a pullback and subsequent channel formation, ultimately providing a framework to identify high probability reversal entries when the channel structure breaks down.

## How to Trade the Spike and Channel?

The indicator monitors price action to identify potential trend reversals through a multi-stage process. First, it identifies a "spike," which consists of consecutive, strong trend bars with minimal overlap, indicating high urgency. After the spike, the indicator looks for a pullback and the formation of a "channel," where price moves in a series of legs that respect a trendline.

To trade this setup, wait for the following sequence:
1. **The Spike:** Observe the initial strong move. Do not jump in immediately; wait for the market to establish a clear trend.
2. **Channel Development:** Once the pullback is complete, a channel begins to form. The indicator will label the "Channel Start," which serves as the primary profit target for a potential counter-trend trade.
3. **Trendline Break:** A breach of the channel trendline serves as the first warning sign that the trend is losing steam.
4. **The Failed Test:** After the trendline breaks, watch for a test of the previous trend extreme. If the price fails to make a new extreme and subsequently breaks below (or above) the level of the test, it signals that the channel phase is over. 
5. **Entry:** Execute the trade in the opposite direction of the original trend, targeting the "Channel Start" level. Place your stop loss beyond the failed test extreme to protect against continued momentum.

## Spike and Channel Settings

### Spike
* **Minimum Spike (ATR):** The required travel of the spike in multiples of the 14-bar ATR.
* **Maximum Spike Bars:** The maximum number of consecutive bars that can form a valid spike.
* **Trend Bar Body (%):** The minimum percentage of the bar range that must be represented by the body for it to count as a trend bar.
* **Close Near Extreme (%):** The maximum distance from the bar extreme that the close must fall within to be considered a strong trend bar.
* **Maximum Overlap (%):** The maximum allowed overlap between consecutive bars within the spike.

### Channel
* **Maximum Pullback (% of Spike):** The maximum percentage of the spike range that a pullback can retrace.
* **Maximum Pullback Bars:** The maximum duration for a pullback before the trend must resume.
* **Minimum Channel Legs:** The number of distinct legs required to confirm a channel.
* **Maximum Channel Slope (% of Spike):** A filter ensuring the channel is significantly shallower than the initial spike.
* **Maximum Channel Bars:** The maximum age of a channel before it is considered expired.
* **Trendline Break Buffer (ATR):** The threshold for a price close to breach the trendline definitively.
* **Failed Test Window (Bars):** The number of bars allowed for the trend extreme test to fail.

### Channel End Trade
* **Trade the Channel End:** Toggles the visualization of potential counter-trend entries.
* **Stop Buffer (ATR):** The distance from the test extreme to place the stop loss.
* **Maximum Hold (Bars):** The trade duration limit before the position is closed as timed out.

### Dashboard
* **Show Dashboard:** Toggles the information panel.
* **Position & Size:** Configures the location and font size of the dashboard.

## Frequently Asked Questions

### What defines a valid spike?
A spike is defined by consecutive, high-momentum bars that move a significant distance relative to the recent ATR while maintaining minimal overlap between bars, reflecting institutional urgency in a single direction.

### How do I know when the channel is officially over?
The channel is considered over when the trendline is broken, and a subsequent attempt to re-test the trend extreme fails, followed by a price move through the trigger level of that failed test.

### What is the significance of the Channel Start?
The Channel Start represents the extreme of the initial pullback following the spike; it serves as a critical structural level and acts as the primary take-profit target for the counter-trend trade setup.

## Related indicators

- [Channel Continuation](https://www.luxalgo.com/library/indicator/channel-continuation/) (Chart & Candlestick Patterns): markdown at https://www.luxalgo.com/library/indicator/channel-continuation.md
- [Bull/bear Flag](https://www.luxalgo.com/library/indicator/bull-bear-flag/) (Chart & Candlestick Patterns): markdown at https://www.luxalgo.com/library/indicator/bull-bear-flag.md
- [Rectangle](https://www.luxalgo.com/library/indicator/rectangle/) (Chart & Candlestick Patterns): markdown at https://www.luxalgo.com/library/indicator/rectangle.md
- [Wolfe Wave Detector](https://www.luxalgo.com/library/indicator/wolfe-wave-detector/) (Rising/falling Wedge): markdown at https://www.luxalgo.com/library/indicator/wolfe-wave-detector.md
- [Pennant](https://www.luxalgo.com/library/indicator/pennant/) (Chart & Candlestick Patterns): markdown at https://www.luxalgo.com/library/indicator/pennant.md
- [Half Cup](https://www.luxalgo.com/library/indicator/half-cup/) (Cup & Handle): markdown at https://www.luxalgo.com/library/indicator/half-cup.md
- [Scallop](https://www.luxalgo.com/library/indicator/scallop/) (Chart & Candlestick Patterns): markdown at https://www.luxalgo.com/library/indicator/scallop.md
- [Measured-move Up/down](https://www.luxalgo.com/library/indicator/measured-move-up-down/) (Chart & Candlestick Patterns): markdown at https://www.luxalgo.com/library/indicator/measured-move-up-down.md

---

Source: https://www.luxalgo.com/library/indicator/spike-and-channel/ (LuxAlgo Library). Free to use with attribution: https://www.luxalgo.com/library/license/
