# Trend Rails

<figure><img src="/files/CzDIpIG97kaHVgLygLRC" alt=""><figcaption></figcaption></figure>

**Trend Rails** is a sophisticated momentum-tracking component designed to identify high-energy price movements while filtering out market noise. It utilizes an **Adaptive Engine** that adjusts its sensitivity in real-time based on market efficiency.

### The Concept

Unlike static moving averages that remain equally sensitive regardless of market conditions, Trend Rails uses **Efficiency Ratio (ER)** logic.

* **Efficient Markets**: When price is moving strongly in one direction (high efficiency), the rails tighten and the baseline hugs the price to capture the trend early.
* **Inefficient Markets**: When price is choppy and moving sideways (low efficiency), the rails widen and the baseline slows down to prevent "whipsaws" (fake signals).

### How It Works

#### 1. Adaptive Baseline

The core of the Trend Rails is an **Adaptive Exponential Moving Average (AEMA)**. It calculates the direction of price over a lookback period and divides it by the total noise (volatility). The resulting efficiency score dictates how fast the baseline reacts to new price data.

#### 2. Volatility Corridors (The Rails)

Two dynamic bands are projected above and below the baseline using **Average True Range (ATR)**. These bands form the "Rails":

* **Upper Rail**: Acts as a breakout trigger for bullish momentum.
* **Lower Rail**: Acts as a breakout trigger for bearish momentum.

#### 3. Dynamic Normalization

The corridors are not just fixed ATR bands; they are **normalized**. When volatility spikes suddenly, the rails expand proportionally to ensure the trend signal remains valid and isn't triggered by a single news spike.

### Signals & Interpretation

Trend Rails provides clear visual cues for trend transitions:

* **Bullish Flip (▲)**: Triggered when the price breaks above the **Upper Rail**. This indicates that momentum has exceeded the volatility threshold. The baseline then switches to support mode.
* **Bearish Flip (▼)**: Triggered when the price breaks below the **Lower Rail**. This indicates that selling pressure has dominated the current range. The baseline then switches to resistance mode.

**Icon Placement**: The triangle signals are anchored directly to the breakout rails, providing a precise point of reference for where the trend transition occurred.


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.candelacharts.com/toolkits/trend-concepts-tm/trend-rails.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
