Ehlers Instantaneous Trendline
The Ehlers Instantaneous Trendline is a low-lag smoother introduced by John Ehlers, built on the idea that price can be modeled as trend plus cycle. It is a Trend concept. The Library holds 1 implementation, ready to run on Vela.
Top Ehlers Instantaneous Trendline indicator
The top custom implementation, built on the original standard Ehlers Instantaneous Trendline formula.
1 total
From studying Ehlers Instantaneous Trendline to trading it: open the implementation below on Vela, then build a strategy on it with Quant and backtest it.
What is the Ehlers Instantaneous Trendline?
The Ehlers Instantaneous Trendline is a low-lag smoother introduced by John Ehlers, built on the idea that price can be modeled as trend plus cycle. If the dominant cycle is measured, averaging price over exactly one full cycle period makes the cyclical ups and downs cancel, and what remains is the trend. The original construction therefore measures the dominant cycle with Hilbert Transform techniques and continuously adapts its averaging window to the measured period; the 'instantaneous' name reflects the aim of near-zero lag, the window tracking the current cycle length rather than a fixed lookback.
Ehlers later published a simplified version that approximates the same behavior with a compact recursive filter governed by a single alpha coefficient, typically plotted with a faster trigger line (a lag-reduced copy of the trendline) whose crossings mark trend changes. Read it like a moving average: slope, and which side of it price holds. The honest caveats: in cyclic, sideways conditions the line flattens through the middle of the range by design, and the adaptivity is only as good as the dominant cycle measurement feeding it, which on noisy data is an estimate, not a fact.
The two versions have distinct pedigrees. The full construction appeared in Ehlers' Rocket Science for Traders, where the Hilbert machinery measures the period bar by bar and the average resizes itself accordingly; the simplified recursion, published in his later work, fixes alpha around 0.07 and trades the adaptive machinery for robustness and portability, which is why most platform ports, including the widely used LazyBear version, implement the simplified form. The trigger line in the common presentation is a two-bar forward projection of the trendline itself, twice the current value minus the value two bars back, a cheap lag-reduction trick that leads the parent line just enough to cross usefully.
In the Ehlers toolkit the line's identity is its premise: it treats sideways markets as cycles to be canceled rather than noise to be smoothed, which produces its distinctive flat behavior mid-range, a feature doubling as a range detector. Against a fixed EMA it promises comparable smoothness with less lag when the cycle estimate is right, and roughly EMA behavior when it is not. Trigger-crossing systems build directly on the pair, and its flattening makes it a natural input for a trend regime read, the line's own posture reporting whether trend tactics currently have anything to work with.
How to identify the Instantaneous Trendline
Most charts run the simplified version; its parts are quick to verify.
- 1Check the input: a single alpha coefficient, around 0.07 in the published default, rather than a bar-count length.
- 2Confirm the recursion: a compact filter blending the last few prices with prior outputs, approximating a one-cycle average of price.
- 3Find the trigger: a lag-reduced companion, commonly twice the trendline's current value minus its value two bars back.
- 4Read the pair: trendline slope and price's side for bias, trigger crossings for timing events.
- 5Use the flat state: the line going horizontal through the middle of a range is the design working, a message to stand trend tactics down rather than a malfunction.
How traders use it
- As a trend bias line: slope and price's side of the trendline define direction, with less lag than a fixed average of comparable smoothness when the cycle estimate is on target.
- As a signal pair: crossings between the trendline and its trigger line are the classic entry and exit events in Ehlers' own presentation of the tool.
- As a drop-in replacement for a conventional moving average in baseline or crossover roles where lag is the main complaint.
- As a range detector: the line's deliberate flattening in cyclic conditions is itself a read, gating trend systems off exactly where their setups degrade.
- In multi-timeframe stacks: a higher-timeframe instantaneous trendline supplies the governing bias while the trading timeframe uses the trigger pair for execution, the standard division between regime and timing.
Instantaneous Trendline vs related smoothers
EMA: The EMA smooths over an arbitrary fixed memory; the Instantaneous Trendline aims its averaging at the measured cycle so the oscillation cancels out. When the cycle estimate is good the result is comparable smoothness with visibly less lag; when it is poor, the two lines behave much alike.
Ehlers SuperSmoother: Same author, different philosophy: the SuperSmoother is a fixed-cutoff filter that rejects everything faster than a chosen period, while the Instantaneous Trendline adapts to cancel the current dominant cycle specifically. One is a designed filter, the other a model-based average.
Adaptive-lookback MA: The generic adaptive family varies its window by volatility or efficiency; the Instantaneous Trendline varies its effective window by measured cycle period, a narrower and more specific adaptation. Cycle-aware markets reward the specificity; trending, cycle-free ones erase the difference.
Ehlers Instantaneous Trendline FAQ
Turn Ehlers Instantaneous Trendline into a trading strategy.
Open the implementation from this page in Vela. Quant, our coding agent, builds the strategy with you and backtests it on real data.
Browse this familyTrend104 concepts mapped · 104 in the Library
- Adaptive-lookback MA
- ADX / DMI System
- Alligator
- ALMA
- Anchored MA
- Andrews' Pitchfork
- Aroon
- ATR Trailing Regime
- Bessel Filter
- Breakout
- Butterworth Filter
- Chande Kroll Stop
- Chandelier Stop
- Chebyshev Filters
- Climactic Moves
- Continuation
- Coral Trend
- Correlation Trend Indicator
- Death Cross
- DEMA
- Displaced MA
- Donchian Trend Rules
- Dynamic S/R Via MA
- Ehlers Instantaneous Trendline
- Ehlers SuperSmoother
- Elastic Volume-weighted MA
- Elliptic Filter
- EMA
- Fan Principle
- FRAMA
- Gann Box
- Gann Fan & Angles
- Gann HiLo Activator
- Gann Method
- Gann Square of 9
- Gaussian Filter
- Geometric MA
- Golden Cross
- Guppy GMMA
- Halftrend
- Harmonic MA
- Higher-timeframe Trend Filter
- HMA
- Ichimoku Signals
- Ichimoku System
- Ichimoku Theories
- JMA
- KAMA
- Kaufman Efficiency Ratio
- Laguerre Filter
- Linear-regression Channel
- LSMA
- MA Envelope
- MA of MA
- MA Ribbon
- MA Slope Filter
- MAMA/FAMA
- McGinley Dynamic
- MLMA
- Moving Average Crossovers
- NRTR
- Order-statistic Filters
- Parabolic SAR
- Parallel Channel
- Polynomial Regression Band
- Pullback
- R-squared Trend Fit
- Rainbow MA Stack
- Random Walk Index
- Range Filter
- Retest
- Reversal
- RMA
- Savitzky-Golay Filter
- Sine-weighted MA
- SMA
- Speed Resistance Lines
- Standard-error Channel
- Supertrend
- Swiss Army Knife Filter
- SWMA
- T3
- TEMA
- TRAMA
- Trend Acceleration/inflection
- Trend Exhaustion
- Trend Intensity Index
- Trend Magic
- Trend Regime Label
- Trend-quality Composites
- Trendline
- Triangular MA
- UHL Adaptive MA
- Ultimate Smoother
- Vertical Horizontal Filter
- VIDYA
- Volume-adjusted MA
- Vortex
- VWMA
- Weinstein Stage Analysis
- Whittaker–Henderson Smoother
- Windowed FIR Smoothing
- WMA
- ZLEMA
