Appearance
Guppy Multiple Moving Average
Six short and six long EMAs: trader and investor groups.
Kind indicator · Drawn on the price pane
Try it
On the chart, press / and choose Guppy Multiple Moving Average under Moving averages. To change it, copy the source below into the AlphaScript editor.
Inputs
| Input | Type | Default |
|---|---|---|
| Source | source | "close" |
| Short-term color | color | "#00BCD4" |
| Long-term color | color | "#F23645" |
Source
From packages/alphascript/indicators/gmma.as.js.
js
indicator({ name: "Guppy Multiple Moving Average", shortTitle: "GMMA", overlay: true });
const src = input.source("Source", "close");
const shortColor = input.color("Short-term color", "#00BCD4", { group: "Style" }), longColor = input.color("Long-term color", "#F23645", { group: "Style" });
for (const n of [3, 5, 8, 10, 12, 15]) plot(ta.ema(src, n), { title: `Short ${n}`, color: shortColor });
for (const n of [30, 35, 40, 45, 50, 60]) plot(ta.ema(src, n), { title: `Long ${n}`, color: longColor });