Indicators: advanced averages and trend (DEMA, KAMA, Supertrend)

Eleven price-based studies extend the Averages & volatility group: DEMA, TEMA, ZLEMA, VWMA, KAMA, ALMA, McGinley Dynamic, LSMA, Linear Regression Channel, SuperTrend and Price Envelopes. All are overlays computed on the close, with no session reset and no tick-size dependency.

Senzoukria · Documentation · Updated September 2026


Where to find it

Where
Chart toolbar → Indicators → group "Library · Averages & volatility"
Studies
DEMA, TEMA, ZLEMA, VWMA, KAMA, ALMA, McGinley Dynamic, LSMA, Linear Regression Channel, SuperTrend, Price Envelopes
Target
All overlays on the price chart
Source
Close only; VWMA also reads bar volume, SuperTrend reads high/low/close

What it does

This second wave completes the base averages without overlapping them. There is no Source select here: every study is defined on the close (or on high/low/close for SuperTrend). DEMA is 2·EMA − EMA(EMA); TEMA is 3·e1 − 3·e2 + e3; both use the catalog EMA (SMA seed, alpha = 2/(N+1)) and each extra EMA stage runs on the defined suffix of the previous one, so DEMA is defined from index 2(N−1) and TEMA from 3(N−1).

ZLEMA de-lags the close with adj = 2·close − close[i − lag], lag = floor((N−1)/2), then applies an EMA. VWMA is Σ(close·volume)/Σ(volume) over N bars and returns no value when the window volume is zero. KAMA follows Kaufman: efficiency ratio over N, smoothing constant squared between the fast and slow EMA constants, seeded with the raw close. ALMA applies a Gaussian window shifted by offset with width N/σ. McGinley Dynamic uses the TradingView/ATAS variant without the 0.6 factor, seeded with the SMA. LSMA is the end point of a least-squares fit over N bars.

Linear Regression Channel is the rolling version: at each bar the fit is redone and the terminal point ± k·σ of residuals (population σ) is emitted as a band. SuperTrend uses Wilder ATR on hl2 with the usual ratchet; it draws two lines, the lower one in an uptrend and the upper one in a downtrend, each empty outside its trend. Price Envelopes draw SMA(N) × (1 ± p/100).

Settings

Parameters declared for each study (defaults from the catalog)
StudySettingDefault (range)What it changes
DEMA / TEMA / ZLEMA / VWMA / ALMA / Price EnvelopesPeriod20 (1–500)Window length
KAMAER period10 (1–200)Efficiency-ratio window
KAMAFast EMA / Slow EMA2 (1–50) / 30 (2–200)Bounds of the adaptive smoothing constant
ALMAOffset0.85 (0–1, step 0.05)1 = reactive, 0 = smooth
ALMASigma6 (1–50, step 0.5)Width of the Gaussian window
McGinley DynamicPeriod14 (1–200)Adaptive tracking length
LSMAPeriod25 (2–500)Least-squares window
Linear Regression ChannelPeriod100 (2–500)Fit window
Linear Regression Channelσ multiplier2 (0.5–5, step 0.1)Channel half-width in residual σ
SuperTrendATR period10 (1–200)Wilder ATR length
SuperTrendATR multiplier3 (0.5–10, step 0.1)Distance of the bands from hl2
SuperTrendUp color / Down colorgreen / redLine colors per trend
Price EnvelopesDeviation %2.5 (0.1–25, step 0.1)Envelope distance in percent of the SMA

How to use it

Enable a study from the Library groups of the Indicators panel; the same search field filters by label and group. Every study writes on the price scale, so several can be stacked on the same chart. SuperTrend flips are visible as one line stopping and the other starting; no vertical connector is drawn at the flip, because continuity only exists inside a trend.

Trend start for SuperTrend is chosen at the first defined ATR: uptrend if close ≥ hl2, downtrend otherwise. This differs from platforms that always start bullish, which avoids a first bar drawn against the price.

Limits and pitfalls

  • Warm-up compounds: TEMA(20) has no value before bar 57, and ZLEMA(20) before lag + N − 1 = 28.
  • VWMA returns no point when the window volume is zero (placeholder bars without trades); 0/0 is treated as missing, not as zero.
  • McGinley skips its update when the adaptive denominator is not finite or not positive, which needs a zero or non-positive price or basis; the previous value is then kept.
  • The regression channel is a rolling series, not a static channel redrawn over the window. It traces the right edge of the channel through time.
  • None of these studies read the session anchor or the tick size; an unknown tick size does not change their output.

This page in other languages

Frequently asked questions

Why is there no separate HMA in this group?
Hull MA already exists in the base averages with id hull and the same formula. The catalog forbids duplicate ids and labels, so it was not re-shipped here.
Does SuperTrend repaint?
No. The ratchet only uses closed bars and the previous close; each bar keeps its computed line once the bar is closed. The trend seed is deterministic from the first defined ATR.
What happens to the regression channel σ convention?
Residual σ is the population standard deviation (÷N), consistent with the Bollinger convention of the catalog.

Keep reading