← Script Marketplace
Open-source scriptindicator/v1

Triple Exponential Moving Average

by Kodexius·@kodexius·

Combine three EMA stages in a lag-reduced moving-average formula.

#moving-average#tema#trend
Triple Exponential Moving Average chart preview

Description

The Triple Exponential Moving Average uses one, two, and three stages of EMA smoothing in a weighted combination. The result aims to preserve smoothness while responding more quickly than a conventional exponential moving average.

Open-source script. Everyone can inspect the source code, use the script on a chart, and save an editable copy.

Release notes

Version history · 1 published version

Version 1CurrentChart updatedTriple Exponential Moving Average · Aug 31, 2026
Release notes

Initial classic indicator release.

View current source ↓
Source codempl-2.0View source

indicator("Triple Exponential Moving Average", { overlay: true });
const length = input.int("Length", 9, { min: 1, max: 500 });
const source = input.source("Source", "close");
const first = ema(source, length);
const second = ema(first, length);
const third = ema(second, length);
const line = first.map((v, i) => 3 * v - 3 * second[i] + third[i]);
plot(line, { title: "TEMA", color: "#7c4dff", lineWidth: 2 });
  

Community discussion

0 comments

Loading…

No comments yet. Start the discussion.