Open-source scriptindicator/v1
TRIX
Track the one-period rate of change of a triple-smoothed exponential moving average.
#momentum#oscillator#trix
Description
TRIX filters price through three exponential averages before calculating its rate of change. This removes much of the shortest-term fluctuation and produces a zero-centered oscillator for examining changes in trend momentum.
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 updatedTRIX · Aug 31, 2026
Source codempl-2.0View sourceHide source
indicator("TRIX", { overlay: false });
const length = input.int("Length", 18, { min: 1, max: 200 });
const source = input.source("Source", "close");
const triple = ema(ema(ema(source, length), length), length);
plot(roc(triple, 1), { title: "TRIX", color: "#2962ff", lineWidth: 2 });
hline(0, { title: "Zero", color: "#78909c", style: "dotted" });
Community discussion
0 comments
No comments yet. Start the discussion.