OPEN-SOURCE SCRIPT

MAs 50/99/200

You can have more than one MA in a single indicator. Just copy and paste this into a MA script:

study(title="MA 50/99/200", overlay=true)

short = sma(close, 50)
longer = sma(close, 99)
longest = sma(close, 200)

plot(short, color = orange)
plot(longer, color = aqua)
plot(longest, color = blue)

Moving Averages

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer