Appearance
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
| Input | Type | Default |
|---|---|---|
| WMA length | int | 10 |
| Long RoC length | int | 14 |
| Short RoC length | int | 11 |
| Source | source | "close" |
| Color | color | "#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" });