Triple Exponential Moving Average (TEMA)TEMA

The triple exponential moving average, also by Patrick Mulloy, combines a single, double and triple smoothed EMA to cut lag further than DEMA. It follows price very closely, which helps in trends but adds noise in sideways markets.

Patrick Mulloy built the triple exponential moving average shortly after his double exponential moving average of 1994.1 Both were published in Technical Analysis of Stocks & Commodities magazine.2 TEMA mixes three EMAs: one of price, one of that EMA and one of the second EMA, weighting them so that most of their lag cancels out.1 The result hugs price more tightly than DEMA and crosses earlier, which is useful in trends and noisy in ranges.1 This entry explains the formula, walks through a calculation and shows where the speed helps and where it hurts. It is not the same indicator as TRIX, which turns a triple-smoothed EMA into a rate-of-change oscillator.

Category
Indicators and Tools
Reading time
6 min
Also called
Triple EMA
Updated

TEMA in plain words

Each time you smooth an EMA again, the new line falls a little further behind price. TEMA uses three such lines and combines them so that the extra delays offset each other.1

The formula gives the most weight to the EMA with the least lag, takes away the double-smoothed line and adds back the triple-smoothed one.1 The result is a single line that stays very close to the price bars.1

How to build and read TEMA, step by step

  1. Pick a look-back period N

    StockCharts uses 20 as its default.1 A shorter period tracks price more closely; a longer one shows the broader trend.3

  2. Calculate three EMAs

    EMA1 is an EMA of price, EMA2 is an EMA of EMA1 and EMA3 is an EMA of EMA2, all with the same period.3 The EMA multiplier is 2 ÷ (N + 1).4

  3. Combine them

    TEMA = (3 × EMA1) − (3 × EMA2) + EMA3.1 MetaTrader reaches the same formula by adding an EMA of the gap between price and DEMA to the DEMA.2

  4. Read the slope

    A rising TEMA points to rising prices and a falling one to falling prices.3 See Trend.

  5. Read price against the line

    Price above TEMA suggests an uptrend and price below it a downtrend.3

  6. Watch crossovers

    Price crossing TEMA, or a short TEMA crossing a long one such as 20 over 50, are the usual signals; they tend to come earlier than DEMA or EMA crosses.1

Worked examples

Example 1 — One update of a 3-period TEMA

Formula

A hypothetical stock closes at $42.00. Yesterday’s values were EMA1 $40.00, EMA2 $39.00 and EMA3 $38.40. The 3-period multiplier is 2 ÷ (3 + 1) = 0.5.

Example 1 — One update of a 3-period TEMA — calculation
New EMA1$40.00 + 0.5 × $2.00 = $41.00
New EMA2$39.00 + 0.5 × $2.00 = $40.00
New EMA3$38.40 + 0.5 × $1.60 = $39.20
3 × EMA13 × $41.00 = $123.00
3 × EMA23 × $40.00 = $120.00
TEMA$123.00 − $120.00 + $39.20 = $42.20

Each EMA is updated from the line before it: EMA2 moves towards the new EMA1 ($41.00 − $39.00 = $2.00) and EMA3 towards the new EMA2 ($40.00 − $38.40 = $1.60).

Example 2 — EMA, DEMA and TEMA side by side

Comparison

Same hypothetical numbers as Example 1: close $42.00, EMA1 $41.00, EMA2 $40.00, EMA3 $39.20.

Example 2 — EMA, DEMA and TEMA side by side — calculation
EMA1$41.00 (lag $1.00)
DEMA = 2 × EMA1 − EMA2$82.00 − $40.00 = $42.00
TEMA$42.20 (above the close)

In this hypothetical run of rising prices the EMA trails by $1.00, DEMA matches the close and TEMA has moved slightly past it. The faster the line, the more it reacts to the latest move, which is why TEMA can also produce more noise.1

Example 3 — Small crosses in a range

Whipsaw

A hypothetical stock drifts sideways. A trader goes long each time price closes above a 10-period TEMA and exits when it closes below. Over a month, five trades lose $0.30 a share and two make $0.70.

Example 3 — Small crosses in a range — calculation
Losses5 × −$0.30 = −$1.50
Gains2 × +$0.70 = +$1.40
Net per share−$1.50 + $1.40 = −$0.10

Price can cross a TEMA on smaller moves than it needs to cross a simple average, so sideways markets produce false signals that shake traders out.3

TEMA compared with DEMA and TRIX

AspectWhat it isFormula
DEMALow-lag average on the price chart5(2 × EMA1) − EMA25
TEMALower-lag average on the price chart1(3 × EMA1) − (3 × EMA2) + EMA31
TRIXMomentum oscillator in its own panelRate of change of a triple-smoothed EMA

How traders use TEMA

  • Trend confirmation

    Price above a rising TEMA supports long positions; below a falling TEMA supports shorts.3 See Trend Following.

  • Early crossovers

    A short TEMA crossing a longer one gives an earlier signal than the same cross on DEMAs or EMAs.1

  • A cleaner price line

    Some traders watch the TEMA line instead of the bars to cut noise.3

  • Smoothing other indicators

    TEMA can replace a normal moving average and can be applied to other indicators.2 See Technical Indicator.

Advantages and disadvantages

Advantages

  • Less lag than a single, double or triple EMA on its own.2
  • Crosses earlier than DEMA and normal EMAs.1
  • One setting, the look-back period, controls everything.3
  • Can be used on price or on other indicators.2

Disadvantages

  • Less lag means more noise.1
  • False signals in sideways or unclear markets.3
  • Lag is reduced, not removed, so very fast moves still register late.3
  • Strategies designed for slower averages may need adjusting.1

Going deeper

Read as far as you need. Each level builds on the one before it.

One fast line

Beginner

You can read TEMA like any moving average: direction shows the trend and crosses show possible changes.3 Just expect it to turn sooner, and more often, than the averages you are used to.

Where the weights come from

Intermediate

(3 × EMA1) − (3 × EMA2) + EMA3 can be read as DEMA plus a further correction. MetaTrader shows this step by step: TEMA is DEMA plus an EMA of the gap between price and DEMA.2 Each layer of correction cancels some of the lag left by the one before.

Overshoot and warm-up

Advanced

Because the corrections project the recent trend forward, TEMA can sit beyond the latest close, as in Example 2. EMA3 also depends on a run of EMA2 values, which depend on EMA1, so the first stretch of a TEMA after a chart starts is less reliable. Longer look-back periods slow it down again.3

Common mistakes

  1. Confusing TEMA with TRIX

    TEMA is a price overlay. TRIX measures the rate of change of a triple-smoothed EMA and is plotted as an oscillator.

  2. Multiplying the wrong lines

    Both EMA1 and EMA2 are multiplied by three; EMA3 is added once.1

  3. Taking every cross in a range

    TEMA crosses on small moves, so sideways markets bring false signals.3 See Whipsaw.

  4. Expecting zero lag

    Lag is reduced but not removed.3

Check your understanding

Test yourself before moving on. Each answer comes with an explanation.

Q1EMA1 = $30.00, EMA2 = $29.50, EMA3 = $29.10. What is TEMA?
Q2Which signal does StockCharts describe as the most common for TEMA?

Key points to remember

  1. TEMA was created by Patrick Mulloy shortly after DEMA.
  2. TEMA = (3 × EMA1) − (3 × EMA2) + EMA3, with each EMA built from the one before.
  3. It sits closer to price than DEMA and crosses earlier.
  4. Less lag means more noise and more false signals in ranges.
  5. TEMA is a price overlay, unlike the TRIX oscillator.

Frequently asked questions

Is TEMA faster than DEMA?

Yes. Its extra correction keeps it closer to price, and its crosses usually come before DEMA crosses.1

What is a good TEMA setting?

StockCharts defaults to 20 periods.1 Shorter settings track price more closely and longer ones show the bigger trend.3

Is TEMA the same as triple exponential smoothing in TRIX?

No. Both start from repeated EMAs, but TEMA combines them into a price line, while TRIX shows the percentage change of a triple-smoothed EMA as an oscillator.

Further learning

Sources

This article is written in our own words. The sources below support the specific facts, rules and figures marked with a number in the text. Links open the original publisher’s page.

  1. StockCharts ChartSchool. Triple Exponential Moving Average (TEMA) (opens in a new tab) Checked .
  2. MetaQuotes (MetaTrader 5 Help). Triple Exponential Moving Average (opens in a new tab) Checked .
  3. TradingView. Triple EMA (TEMA) – Help Center (opens in a new tab) Checked .
  4. StockCharts ChartSchool. Moving Averages - Simple and Exponential (opens in a new tab) Checked .
  5. StockCharts ChartSchool. Double Exponential Moving Average (DEMA) (opens in a new tab) Checked .

Educational content, not financial advice. Examples use hypothetical prices and simplified costs; actual fees, margin rules and regulations vary by broker, market and country. We are not affiliated with any publisher linked above. Last reviewed . Report an error or request a source credit.