Triangular Moving Average (TMA)

TMA
Indicator

TrendOn the price chartFree on ChartLabs

The Triangular Moving Average is a simple moving average of a simple moving average. It weights the middle of its window most, so it is very smooth and slow.

A classic double-smoothed average. Reviewed by the ChartLabs team, updated Nov 2026.

Example market1hIndicatorsAtlas AITMAchartlabs.co/charts
Atlas reads it

Price is under a falling TMA 15. Short-term trend points down.

TMA 15 67,618.2 · Close 65,677.1

Atlas reads it

Price is under a falling TMA 15. Short-term trend points down.

TMA 15 67,618.2 · Close 65,677.1

Illustration on simulated data.

Triangular Moving Average (TMA)What is the TMA indicator?

TMA draws one grey line on the price chart. With the default length of 15 it takes an 8-bar SMA of the close, then an 8-bar SMA of that.

Averaging twice gives the bars in the middle of the window the most weight and the oldest and newest bars the least, in the shape of a triangle. The result ignores most small wiggles.

The price of that smoothness is lag. TMA turns well after price does, so traders mostly use it to read the broad direction rather than to time entries.

Odd and even lengths

An odd length n uses two SMAs of (n + 1) / 2 bars: 8 and 8 for 15. An even length uses n / 2 and n / 2 + 1.

From the first bar

While fewer bars exist, each SMA averages the bars so far, so the line starts on the first bar.

TMA signalsFour patterns to know.

1Bullish

Price above a rising TMA

Closes stay above a line that climbs steadily.

2Bearish

Price under a falling TMA

Closes stay under a line that falls steadily.

3Bearish lean

Close crosses below

After a long run above, price closes under the line and stays there.

Flat line, many crosses
4Inconclusive

Flat TMA

The line goes sideways and price crosses it in both directions.

TMA formulaHow it is calculated.

TMA=SMA8(SMA8(close))
STEP 1

Split the length

For 15, both averages are (15 + 1) / 2 = 8 bars.

STEP 2

First average

Take an 8-bar SMA of the close.

STEP 3

Second average

Take an 8-bar SMA of the first. The middle bars of the 15 end up with the most weight.

TMA settingsEvery setting, explained.

SettingDefaultRangeWhat it changes
Length151 to 2,000The total span of the two averages. Longer is smoother and slower.
SourceCloseAny priceWhich values feed the calculation.
LineGrey #787B86, 1 pxAny colour and widthColour and width of the line.
Setting
Length
Default
15
Range
1 to 2,000
What it changes
The total span of the two averages. Longer is smoother and slower.
Setting
Source
Default
Close
Range
Any price
What it changes
Which values feed the calculation.
Setting
Line
Default
Grey #787B86, 1 px
Range
Any colour and width
What it changes
Colour and width of the line.
1516 price crosses in view
70,20866,82563,44360,06164,803.7

Drag to see how the setting changes the lines and how many signals you get. Illustration on simulated data.

TMA strategiesUse it in 3 setups.

Trend filter

Only long whileprice is aboveTMAandTMArises

A smooth line makes a steady filter. Traders often time entries with a faster tool on the side it allows.

Crosses the TMA 40

TMA crosses a slower TMA

IfTMA 15crosses aboveTMA 40exit whenit crosses back

A slower TMA, drawn here in orange for illustration, confirms that the broad direction has changed.

Exit on a close below

Ifprice closes underTMAaftera long run abovethenclose the long

After a long advance, a close under a slow line is a common reason to step aside.

Test a rule in the Strategy TesterFree with 1 year of history. Past results do not guarantee future results.

TMA mistakesCommon mistakes.

The lowThe cross comes later

Expecting a fast signal

TMA is one of the slowest averages for its length. Here the cross came several bars after the low.

Flat line, many crosses

Trading every cross of a flat TMA

A flat line in a range still gets crossed again and again.

Through the line and straight back

Trusting the first cross

Here price crossed the line and came straight back the next bar.

TMA combinationsPair it with these.

TMA FAQQuestions traders ask.

What are the default TMA settings?

Length 15 on the close: an 8-bar SMA of an 8-bar SMA.

How is TMA calculated?

It is a simple moving average of a simple moving average, with the length split between the two.

Why is it called triangular?

Averaging twice gives the bars a triangle of weights: highest in the middle of the window, lowest at both ends.

TMA or SMA?

TMA is smoother and turns later. An SMA of the same length reacts sooner and wiggles more.

TMA or EMA?

An EMA favours the newest bars and turns sooner. TMA favours the middle and turns later.

Why does my TMA differ from another platform?

Platforms split the length differently and some start only after a full window. ChartLabs uses 8 and 8 for 15 and starts from the first bar.

Does TMA work on crypto?

Yes. It works on any market with prices.

Is TMA leading or lagging?

Lagging, and more than most averages of the same length.

Does TMA repaint?

No. Values on closed bars never change. The live bar moves until it closes.

Related indicatorsMore trend tools.

All trend indicators

Try TMA on a live chart.
Free. No download.

Works in your browser and on iPhone too.

Example market1h
TMA (15, close)