Open-source scriptindicator/v1
Triple Exponential Moving Average
Combine three EMA stages in a lag-reduced moving-average formula.
#moving-average#tema#trend
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
Source codempl-2.0View sourceHide 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
No comments yet. Start the discussion.