# Ehlers Instantaneous Trendline

The simplified single-alpha recursion John Ehlers published for his low-lag trendline, computed on the bar midpoint with Alpha 0.07 and paired with a trigger line projected two bars ahead of it. Line, trigger and gradient fill share the cross-state color, and alerts cover trigger crosses and slope reversals. A faithful low-lag alternative to a fixed moving average.

- Indicator in the LuxAlgo Library, by LuxAlgo, published Apr 25, 2026.
- Access: free.
- Concepts: [Ehlers Instantaneous Trendline](https://www.luxalgo.com/library/concept/ehlers-instantaneous-trendline/) (primary)
- Open on Vela: https://vela.luxalgo.com/chart?pineScriptCodeId=qhzd5y9iuxdl6v7v5diqs646
- Page: https://www.luxalgo.com/library/indicator/ehlers-instantaneous-trendline/

**Ehlers Instantaneous Trendline** plots the compact recursion John Ehlers published as the simplified form of his low-lag smoother, computed on the bar midpoint, together with its trigger, a lag-reduced projection: twice the current trendline value less the reading from two bars earlier. The pair keeps the promise of the original [Instantaneous Trendline](https://www.luxalgo.com/library/concept/ehlers-instantaneous-trendline/): trend following with far less delay than a comparable fixed average. Both lines and the fill between them hold the bullish color while the trigger sits above the trendline, and the bearish color below.

## How to Trade the Ehlers Instantaneous Trendline?

- **Trigger above the trendline**: long bias; **trigger below**: short bias, the conventional read of the pair.
- **Trigger crossings**: the classic entry and exit events, covered by alerts and optional circle markers.
- **Slope reversals**: the trendline turning up or down is the slower, moving-average-style bias read, with its own pair of alerts.
- **Fill width**: a wide, glowing fill marks trending separation; a tight braided pair warns that crossings are churn.

Because the recursion needs history, the first bars of a chart use Ehlers' FIR warm-up average: the trendline appears a few bars in, the trigger two bars after that.

## Ehlers Instantaneous Trendline Settings

- **Source** (default hl2): the price series the trendline is computed on; the published construction uses the bar midpoint.
- **Alpha** (default 0.07): the smoothing coefficient, Ehlers' published default. Smaller is smoother and slower; larger hugs price more closely.
- **Style toggles**: Gradient Fill defaults on; Crossover Markers default off, with the crossover alerts firing regardless.

## Frequently Asked Questions

### How does this compare to the Ehlers SuperSmoother?

Both are Ehlers recursions, read differently. The [Ehlers SuperSmoother](https://www.luxalgo.com/library/indicator/ehlers-supersmoother/) is a low-pass filter specified by a cutoff period and traded as a single smoothed line, while this build is a trendline-plus-trigger pair whose crossings are the primary event. Pick the smoother for filtering, the pair for timing.

### What does Alpha actually control?

How much of each new bar enters the recursion. At the published 0.07 the line is smooth enough for swing work; raising Alpha tightens it toward price for faster crossings at the price of extra noise; lowering it does the opposite.

### Why does the line start a few bars into the chart?

The recursion is seeded empty rather than with a guess, so nothing plots until enough source history exists; early bars then use the FIR warm-up average before the full recursion takes over. The first plotted values stay honest instead of anchoring to an arbitrary seed.

## Related indicators

- [Chebyshev Filters](https://www.luxalgo.com/library/indicator/chebyshev-filters/) (Trend): markdown at https://www.luxalgo.com/library/indicator/chebyshev-filters.md
- [Laguerre Filter](https://www.luxalgo.com/library/indicator/laguerre-filter/) (Trend): markdown at https://www.luxalgo.com/library/indicator/laguerre-filter.md
- [Elliptic Filter](https://www.luxalgo.com/library/indicator/elliptic-filter/) (Trend): markdown at https://www.luxalgo.com/library/indicator/elliptic-filter.md
- [Gaussian Filter](https://www.luxalgo.com/library/indicator/gaussian-filter/) (Trend): markdown at https://www.luxalgo.com/library/indicator/gaussian-filter.md
- [Swiss Army Knife Filter](https://www.luxalgo.com/library/indicator/swiss-army-knife-filter/) (Trend): markdown at https://www.luxalgo.com/library/indicator/swiss-army-knife-filter.md
- [Ehlers SuperSmoother](https://www.luxalgo.com/library/indicator/ehlers-supersmoother/) (Trend): markdown at https://www.luxalgo.com/library/indicator/ehlers-supersmoother.md
- [Whittaker Envelope](https://www.luxalgo.com/library/indicator/whittaker-envelope/) (Whittaker–Henderson Smoother): markdown at https://www.luxalgo.com/library/indicator/whittaker-envelope.md
- [Percentile Nearest Rank Using Arrays](https://www.luxalgo.com/library/indicator/percentile-nearest-rank-using-arrays/) (Order-statistic Filters): markdown at https://www.luxalgo.com/library/indicator/percentile-nearest-rank-using-arrays.md

---

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