All indicators

Whittaker Envelope

By LuxAlgoFeb 16, 2026

Static chart image

The Whittaker Envelope fits a smooth, non-linear envelope around price using Whittaker–Eilers smoothing combined with asymmetric least squares (ALS). Instead of offsetting a moving average, it solves for three curves over the last N bars: an upper band weighted toward peaks, a lower band weighted toward troughs, and a midline tracing the structural path between them. Because the fit is recomputed over the window as new bars arrive, the envelope repaints: a research tool, not a real-time signal generator.

How to Trade the Whittaker Envelope?

  • Widening envelope: growing distance between the bands signals expanding volatility and stronger directional movement.
  • Narrowing envelope: compression points to consolidation or range-bound conditions.
  • Midline direction: a rising midline frames a bullish structural bias, a falling one bearish pressure.
  • Extrapolated slope: the projection extends the bands' trajectory forward, a reference against live action, not a prediction.

Under the hood sits a penalized fit from the family of the Whittaker–Henderson smoother; ALS asymmetry pushes each band toward one side of price, so no standard-deviation multiplier is needed.

Whittaker Envelope Settings

  • Length: bars in the calculation window. Shorter is more reactive, longer gives broader structure.
  • Lambda (λ): smoothing intensity; higher values produce stiffer, straighter bands.
  • Lower Asymmetry (p): how strongly the lower band hugs troughs, typically very low (e.g. 0.001).
  • Upper Asymmetry (p): how strongly the upper band tracks peaks, typically very high (e.g. 0.999).
  • Iterations: ALS refinement passes; more passes fit tighter at extra computational cost.
  • Extrapolation: how many bars of slope projection to draw.
  • Source (default Close): the price series being fitted.

Frequently Asked Questions

Free on Vela

Run it on Vela. Go further with a paid plan.

  • Up to 500 strategy alerts, with webhook automation
  • Up to 10× the chart history of Free
  • Orderflow lookback up to full history
  • More Quant usage to customize it, plus extra usage when you need it
  • Futures data alongside crypto, stocks, forex and commodities
See plans

Also works on

TradingView
Original indicatorBuilt in-house by LuxAlgo

Run it on Vela. Make it yours with Quant.

Open this indicator free on Vela, our next-generation charting platform. Then ask Quant, our coding agent built into Vela, to retune it or turn it into a backtested strategy of your own.