> For the complete documentation index, see [llms.txt](https://docs.candelacharts.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.candelacharts.com/toolkits/trend-concepts-tm/surge-waves.md). Agents can also search and read this documentation through its [MCP server](https://docs.candelacharts.com/~gitbook/mcp).

# Surge Waves

<figure><img src="https://3870127617-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCBVnUk5c5TVytimjy972%2Fuploads%2FDsAtrBv3xaa6OMmiKZtm%2Fdocs-trend-concepts-026.png?alt=media&amp;token=b3cd2d60-1f6d-41fe-bc65-492b4b4a6e9c" alt=""><figcaption></figcaption></figure>

**Surge Waves** uses a two-pole filter to smooth price action and detect sustained momentum runs. It identifies when price is making strong directional moves by tracking consecutive bars in the same direction, making it ideal for catching momentum-based trading opportunities.

### How It Works

Surge Waves applies a two-pole filter (a type of low-pass filter) to price data, which:

* Smooths out noise and minor price fluctuations
* Preserves the underlying trend direction
* Tracks consecutive rising or falling bars
* Detects sustained runs of 5+ bars in the same direction

The filtered line is displayed within a filled tube envelope that provides visual context for momentum direction.

#### Key Features

### Two-Pole Filter

The filter smooths price action using a mathematical approach that:

* Reduces lag compared to simple moving averages
* Maintains responsiveness to trend changes
* Filters out market noise effectively

### Filled Tube Envelope

A colored tube surrounds the filter line:

* **Green tube**: Bullish momentum (filter is rising)
* **Red tube**: Bearish momentum (filter is falling)

The tube width is adjustable and based on ATR, making it adaptive to market volatility.

### Sustained Run Detection

Surge Waves tracks consecutive bars:

* **Rising bars**: Counts how many consecutive bars the filter is rising
* **Falling bars**: Counts how many consecutive bars the filter is falling

When a run reaches 5+ consecutive bars, it's considered a sustained momentum move.

### Visual Markers

* **Square shape**: Marks sustained rising runs (bullish momentum)
* **Diamond shape**: Marks sustained falling runs (bearish momentum)
* **Small diamond signals**: Confirmation signals when runs begin (appear on the bar where the run reaches 5 bars)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.candelacharts.com/toolkits/trend-concepts-tm/surge-waves.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
