Skip to content

Coppock Curve ​

WMA of two rates of change, a long-term momentum gauge.

Kind indicator · Drawn in its own pane

Try it ​

On the chart, press / and choose Coppock Curve under Oscillators. To change it, copy the source below into the AlphaScript editor.

Inputs ​

InputTypeDefault
WMA lengthint10
Long RoC lengthint14
Short RoC lengthint11
Sourcesource"close"
Colorcolor"#2962FF"

Source ​

From packages/alphascript/indicators/coppock.as.js.

js
indicator({ name: "Coppock Curve", shortTitle: "Coppock", overlay: false, precision: 2 });
const wmaLength = input.int("WMA length", 10, { min: 1 });
const longRoc = input.int("Long RoC length", 14, { min: 1 }), shortRoc = input.int("Short RoC length", 11, { min: 1 });
const src = input.source("Source", "close");
plot(ta.wma(ta.calc([ta.roc(src, longRoc), ta.roc(src, shortRoc)], (a, b) => a + b), wmaLength), { title: "Coppock Curve", color: input.color("Color", "#2962FF", { group: "Style" }) });
hline(0, { title: "Zero", color: "rgba(120,123,134,0.5)", style: "dashed" });

AlphaScript language v0.1 · runtime 0.2.0