Trend & direction

Triangular Moving Average · TMA

A double-smoothed average that weights the middle of the window most for an extra-smooth line.

Works best in trending marketsEngine-computed on a fixed sample series
14512096Price above SMA 20 = strengthPrice below SMA 20 = weaknessSMA 20 acts as support / resistance
SMA 20SMA 50How to read TMA on the chart — the callouts mark what to look for.

The formula

Smooth price with a simple moving average, then smooth that result with another SMA of the same length. The two passes create a triangular set of weights that peaks in the centre of the window and tapers to each edge, so mid-window bars count most.

TMA = SMA( SMA(Price, n), n )
Worked example
PriceWeightPrice × Weight
10110
12224
14342
13226
16116
Total9118

TMA = 118 ÷ 9 = 13.11 — the centre bar (14) carries the most weight.

What it is

The Triangular Moving Average, or TMA, is a double-smoothed moving average that produces an unusually smooth, gently flowing line. It gets its name from the shape of its weighting: instead of weighting every bar equally like a simple moving average, it weights the middle of the lookback window most heavily and tapers off toward both ends, forming a triangle. To a beginner it answers: what is the underlying direction of this market, stripped of the short-term wiggles? Because it smooths the data twice, it filters out noise more thoroughly than a single average of the same length. That extra smoothness makes it excellent for seeing the dominant trend, but it comes at the cost of speed. The TMA is best thought of as a slow, steady compass rather than a fast trigger.

How it's calculated

The TMA is a moving average of a moving average — specifically, a simple moving average applied to another simple moving average. You first compute an SMA of price, then compute a second SMA of that first SMA's values, and the result is the triangular average. This double pass is mathematically equivalent to weighting the original prices in a triangular pattern, where the bar in the centre of the window receives the largest weight and the weights decline linearly toward the oldest and newest bars. For a given overall length, each of the two averaging passes uses roughly half that length, so the two stages combine to cover the full window. The centred, triangular weighting is what makes the line so smooth, because the noisy endpoints contribute least. The whole thing recomputes each bar as the window rolls forward, exactly like any moving average.

Reading it step by step

Read the TMA primarily through its slope: a rising line means the underlying trend is up, a falling line means down, and a flattening line means the trend is stalling. Its crossings with price are cleaner and less frequent than a single SMA's, but they arrive later, so treat them as confirmation rather than early warning. Because the line is so smooth, it filters out the minor swings that would generate false signals on a jumpier average, which is its whole purpose. When price pulls back to a rising TMA and resumes higher, the line is acting as dynamic support and confirming the trend. The distance between price and the TMA hints at how stretched a move is — price far above a slowly rising TMA is extended and may snap back toward it. Above all, use the TMA to identify direction, not to time precise entries and exits.

Reading the signals on the chart

14512096
SMA 20SMA 50The ▲/▼ marks flag where price most recently crossed the line — the cues a trend-follower would act on.

Best timeframes

  • ScalpingToo slowexcess lag
  • Day tradingSlow referenceas a filter
  • Swing1h – Daily
  • PositionDaily – Weeklyits strength

The TMA trades timeliness for smoothness — reserve it for defining the dominant trend or as the slow leg of a crossover pair, not for fast timing.

TMA vs other moving averages

TMASMAWMA
WeightingTriangular (centre)EqualLinear (recent)
SmoothnessVery smoothMediumMedium
LagHighMediumLower
Best forTrend filterGeneralFaster trend

Common price-action setups

How the signal typically plays out on the chart.

Price crosses TMA

Price closing above a turning-up TMA signals the smoothed trend shifting higher — buy the cross with a stop below the last swing low.

Buy the cross
Trend turns up
Ride the slope

While the TMA slopes steadily up and price stays above it, hold the trend and trail your stop beneath the line.

Trail above TMA
Bullish continuation
Rollover exit

Price closing below a flattening TMA warns the trend is done — exit or short with a stop above the line.

Sell the cross
Trend turns down

Best timeframes and settings

The TMA suits swing and position timeframes — daily and weekly charts — where its smoothness reveals the durable trend without the whipsaws of faster averages. It is a poor fit for scalping, where its lag would put you in and out far too late. A common length is 20 or more, and because the smoothing is doubled, a TMA of a given length behaves noticeably slower than an SMA of the same length. Shortening the length makes it more responsive but sacrifices the smoothness that is its main advantage; lengthening it makes it smoother and slower still, ideal for defining a major trend. The trade-off is stark and direct: every bit of added smoothness costs you timeliness. If you need speed, a different average is the right tool — the TMA is chosen precisely when you want to sacrifice speed for a clean read of direction.

When and where to use it

Use the TMA in trending markets when your goal is to see the dominant direction clearly and to filter out the noise that clutters faster averages. It shines as a slow reference line in a crossover pair or as a trend backdrop against which you take signals from other tools. In choppy, ranging markets its lag makes it react late to every turn, so it is less useful there and can lag well behind a sideways market's swings. It applies to any liquid asset and is favoured by traders who prefer a calm, decluttered chart. Avoid it when you need prompt reversal signals, because by design it is among the last averages to turn. Reach for it when a smooth, reliable sense of trend direction matters more than catching the exact top or bottom. It is a strategic, big-picture instrument.

Strategies that use it

A slope-following strategy trades in the direction of the TMA's slope: go long while it rises and price holds above it, exit or reverse when the slope turns down, accepting the lag in exchange for staying on the right side of the major trend. A crossover strategy pairs a faster average with the TMA as the slow line, buying when the fast average crosses above the TMA and selling when it crosses below, with the TMA's smoothness cutting down on false crosses. A pullback strategy in an uptrend buys dips to a rising TMA that acts as dynamic support, with a stop below the line and a target at the prior high. Because the TMA lags, exits are often better handled by a faster tool or a price-based stop rather than waiting for the TMA itself to turn. In all cases the line defines the trend context the trade sits within.

Combining it with other indicators

The TMA's smoothness makes it a natural slow anchor, so pair it with a faster average — an EMA or a low-lag average like TEMA — for a crossover system where the TMA supplies stability and the fast line supplies timing. A momentum oscillator such as RSI or MACD compensates for the TMA's lag by flagging reversals earlier than the smooth line can. ADX or the Trend Intensity Index confirms whether a trend strong enough to justify a slow average is actually present. Volume validates the breakouts you take in the TMA's direction. Because the TMA is a member of the moving-average family, avoid stacking several similar slow averages, which only clutters the chart with redundant lines. A moving-average ribbon can incorporate a TMA as its smoothest, slowest strand for a layered view of trend.

Where it fails

The TMA's central weakness is lag: the centred, double-smoothed weighting makes it among the slowest averages to signal a reversal, so it confirms turns well after they happen and can keep you in a fading trend too long. Its smoothness comes at the direct cost of timeliness, and traders who expect prompt signals from it will be repeatedly late. In ranging markets the lag causes it to react behind each swing, offering little edge. Shortening the length to speed it up simply undermines the smoothness that is its reason for existing, defeating the purpose. The classic mistake is using the TMA as a timing trigger rather than a direction filter, then blaming it for late entries and exits. Avoid this by pairing it with a faster tool for timing, using price-based stops for exits, and reserving the TMA for the job it does well — showing the dominant trend.

A worked example

Suppose you plot a 20-period TMA on a daily chart of a stock trending up from 80 to 100. Because the 20-period TMA stacks two roughly 10-period SMAs, one smoothing the other, its line is far smoother than a single 20-period SMA and rounds off the minor swings, sitting near 95 while price is at 98 and the single SMA is at 96. The steady upward slope of the TMA confirms the trend is intact, and when price dips to 95 and touches the rising TMA before turning back up, you read the line as dynamic support and add to your long, placing a stop at 92 below the TMA. Price advances to 104, then stalls, and over the next two weeks the TMA slope flattens near 99 even as price chops between 98 and 101 — the flattening is your signal the trend has lost momentum. Because the TMA lags, you rely on a faster RSI turn and a break of 98 to exit rather than waiting for the smooth line to actually roll over, banking the gains before the lagging TMA catches up.

Common mistakes

  • Expecting timely reversal signals — the centred weighting makes TMA one of the slower averages to turn.
  • Using it for scalping or fast entries, where its lag guarantees you are late.
  • Pairing it with a similarly slow average, so crossovers arrive far too late.
  • Forgetting it is double-smoothed, so a given length reacts much slower than the same-length SMA.
  • Trading its cross in a choppy range where any smooth line whipsaws.
  • Following the line mechanically while ignoring the underlying price structure.