← Script Marketplace
Open-source scriptindicator/v1

TRIX

by Kodexius·@kodexius·

Track the one-period rate of change of a triple-smoothed exponential moving average.

#momentum#oscillator#trix
TRIX chart preview

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
Release notes

Initial classic indicator release.

View current source ↓
Source codempl-2.0View 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

Loading…

No comments yet. Start the discussion.