Open-source scriptindicator/v1
Coppock Curve
Smooth the sum of long-term rates of change to examine broad momentum cycles.
#coppock#momentum#oscillator
Description
The Coppock Curve adds two longer-horizon rate-of-change series and smooths their sum with a weighted moving average. It was designed for long-term momentum analysis and is generally interpreted around its direction and zero line.
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 updatedCoppock Curve · Aug 31, 2026
Source codempl-2.0View sourceHide source
indicator("Coppock Curve", { overlay: false });
const longRoc = input.int("Long ROC", 14, { min: 1, max: 200 });
const shortRoc = input.int("Short ROC", 11, { min: 1, max: 200 });
const smooth = input.int("WMA Length", 10, { min: 1, max: 200 });
const first = roc(close, longRoc);
const second = roc(close, shortRoc);
const sum = first.map((v, i) => v + second[i]);
plot(wma(sum, smooth), { title: "Coppock", color: "#7c4dff", lineWidth: 2 });
hline(0, { title: "Zero", color: "#78909c", style: "dotted" });
Community discussion
0 comments
No comments yet. Start the discussion.