# Coral Trend

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

The Coral Trend filter built clean: six cascaded exponential smoothing stages recombined with lag-compensating weights, a 21-period cascade and Constant D at 0.4 by default. The line colors itself by slope (rising or falling is the whole signal) with an optional gradient fill showing price's stretch from the curve, flip markers and four alerts. For trend followers who want one calm line.

- Indicator in the LuxAlgo Library, by LuxAlgo, published Apr 25, 2026.
- Access: free.
- Concepts: [Coral Trend](https://www.luxalgo.com/library/concept/coral-trend/) (primary)
- Open on Vela: https://vela.luxalgo.com/chart?pineScriptCodeId=q6pfv3imsu999l3uozjbdhk2
- Page: https://www.luxalgo.com/library/indicator/coral-trend/

**Coral Trend** is the definitive clean build of the [Coral Trend](https://www.luxalgo.com/library/concept/coral-trend/) filter: six identical one-pole exponential smoothing stages run in series, then recombined with weights built from one lag-compensation constant so much of the stacked lag cancels out. What remains is a deliberately unhurried curve that rounds through turns instead of chattering, painted in its bullish shade while climbing and its bearish shade while sinking. The color, standing in for slope, is the entire signal.

## How to Trade the Coral Trend?

- **Color flip**: the line's slope turning up or down is the trend call; both directions carry alerts, with optional dot markers at the flip.
- **Pullback to the line**: the gradient fill makes stretch from the curve visible, so a return toward a still-rising line reads as a trend-joining spot rather than a change of regime.
- **Price cross**: crossings of the line itself fire separate bullish and bearish alerts for traders who want an earlier, noisier trigger.
- **Clustered flips**: several color changes stacked close together warn of a range: the filter has nothing to grip.

## Coral Trend Settings

- **Source** (default close): the series fed through all six smoothing stages.
- **Smoothing Period** (default 21): sets the single pole shared by the cascade. Longer periods give a rounder line with fewer, later color flips; shorter ones flip earlier but more often.
- **Constant D** (default 0.4): the lag-compensation weight. Higher values make the line livelier but overshoot around sharp turns; at 0 the compensation switches off and the output collapses to the bare triple-smoothed stage.
- Style inputs set the rising, falling and flat colors, line width, the price gradient fill and the optional flip markers.

## Frequently Asked Questions

### How does the Coral Trend compare to T3?

They are close relatives. [T3](https://www.luxalgo.com/library/indicator/t3/) uses the same design trick (cascaded exponential stages recombined through polynomial weights of one constant), while Coral chains six stages and presents its output as slope color rather than a line to cross.

### Which settings should I start with?

The defaults, a 21-period cascade with Constant D at 0.4, sit where popular versions of the filter ship, though implementations disagree, so treat any pair as a starting point. Lengthen the period or lower D on noisy charts and accept later flips as the price of the calm.

### Why did the line overshoot at a sharp turn?

Overshoot is the cost of lag compensation: the same recombination weights that claw back lag let the curve swing past price briefly when direction snaps. Lowering Constant D reduces the effect in exchange for a slower, later-turning line.

## Related indicators

- [Trend Regularity Adaptive Moving Average](https://www.luxalgo.com/library/indicator/trend-regularity-adaptive-moving-average/) (TRAMA): markdown at https://www.luxalgo.com/library/indicator/trend-regularity-adaptive-moving-average.md
- [Machine Learning Moving Average](https://www.luxalgo.com/library/indicator/machine-learning-moving-average/) (Adaptive-lookback MA): markdown at https://www.luxalgo.com/library/indicator/machine-learning-moving-average.md
- [ZLEMA](https://www.luxalgo.com/library/indicator/zlema/) (Trend): markdown at https://www.luxalgo.com/library/indicator/zlema.md
- [Moving Average Converging](https://www.luxalgo.com/library/indicator/moving-average-converging/) (EMA): markdown at https://www.luxalgo.com/library/indicator/moving-average-converging.md
- [MLMA](https://www.luxalgo.com/library/indicator/mlma/) (Trend): markdown at https://www.luxalgo.com/library/indicator/mlma.md
- [Volume-adjusted MA](https://www.luxalgo.com/library/indicator/volume-adjusted-ma/) (Trend): markdown at https://www.luxalgo.com/library/indicator/volume-adjusted-ma.md
- [JMA](https://www.luxalgo.com/library/indicator/jma/) (Trend): markdown at https://www.luxalgo.com/library/indicator/jma.md
- [T3](https://www.luxalgo.com/library/indicator/t3/) (Trend): markdown at https://www.luxalgo.com/library/indicator/t3.md

---

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