Concept

TRAMA

TRAMA is a Trend concept. The Library holds 1 implementations, each one a working definition you can pull into Quant.

Trend Regularity Adaptive MA. LuxAlgo

Top TRAMA indicators

1 total

What is TRAMA?

TRAMA, the Trend Regularity Adaptive Moving Average, is an adaptive average introduced by LuxAlgo whose smoothing factor is driven by how regularly price prints new extremes. Each bar, the calculation checks whether price set a new highest high or lowest low for the lookback; the average of those events over the window, squared, becomes the smoothing constant of an exponential-style recursion. When a trend keeps making new highs or lows, the factor rises toward one and the average tracks price closely; in a flat range with no new extremes, it decays toward zero and the line flattens out.

The design goal is the classic adaptive-average trade-off: hug the trend while it is regular, go quiet when it is not, instead of whipsawing through a range the way a fixed-length EMA does. Because the flattened line tends to settle near consolidation equilibrium, traders also read it as dynamic support and resistance during trends.

How traders use it

  • As a trend filter: a rising TRAMA with price above it frames long bias, and its pronounced flattening warns that conditions have turned rangebound and trend entries lack the support of regular new extremes.
  • As dynamic support and resistance: pullbacks to a rising (or bounces to a falling) TRAMA are watched for reactions in the trend's direction, since the line stalls near recent equilibrium rather than chasing every fluctuation.
  • As a crossover component: paired with price or a faster average, it tends to fire fewer signals in flat conditions than fixed-length crossovers, though it remains a lagging, smoothed line and cannot call turns early.

Related concepts · Moving-average lineage

Concept family

Trend

100 concepts mapped · 88 in the Library

TRAMA FAQ

How is TRAMA different from KAMA or other adaptive moving averages?

The adaptation input differs. KAMA scales its smoothing with the efficiency ratio, net movement divided by total movement, and VIDYA scales with a volatility index. TRAMA instead counts how often price sets a new highest high or lowest low over the lookback, then squares the average of those events, so it responds specifically to trend regularity: repeated new extremes speed it up, and their absence flattens it.

What settings does TRAMA use?

One lookback length controls everything: the window for detecting new highest highs and lowest lows, and the window for averaging those events into the smoothing factor. Longer lengths make the line smoother and slower to re-engage after ranges; shorter lengths track price sooner but flatten less decisively. There is no universally best length, so match it to the timeframe and instrument you trade.

Build TRAMA your way.

Quant writes, tests, and refines it with you — then it runs on LuxAlgo charting or ports to TradingView.