← Script Marketplace
Open-source scriptindicator/v1

Momentum

by Kodexius·@kodexius·

Measure the absolute price difference from a configurable number of bars ago.

#momentum#oscillator
Momentum chart preview

Description

The Momentum indicator subtracts an earlier price from the current price. Readings above zero indicate a net advance over the lookback period and readings below zero indicate a net decline, while distance from zero shows the move size.

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 updatedMomentum · Aug 31, 2026
Release notes

Initial classic indicator release.

View current source ↓
Source codempl-2.0View source

indicator("Momentum", { overlay: false });
const length = input.int("Length", 10, { min: 1, max: 500 });
const source = input.source("Source", "close");
plot(mom(source, length), { title: "Momentum", color: "#00bcd4", lineWidth: 2 });
hline(0, { title: "Zero", color: "#78909c", style: "dotted" });
  

Community discussion

0 comments

Loading…

No comments yet. Start the discussion.