TradingView
valleybomb
13 Ara 2017 06:38

Triple Moving Averages 

Neo / BitcoinBittrex

Açıklama

Very basic, just allows for 3 different moving averages in one indicator. Set the defaults to 50, 100 and 200 day, but numbers and colors can be adjusted to taste. Mashed this together from what I found online for a few people who were interested in having this in a community I belong to. Shout out to the Data Dash community!
Yorumlar
aichtae
thanks for the script. build on it further.

added three more averages as well as EMA for the same.

study(title="Moving Averages", shorttitle="6MA", overlay=true)

len1 = input(9, title="Length")
len2 = input(21, title="Length")
len3 = input(50, title="Length")
len4 = input(100, title="Length")
len5 = input(150, title="Length")
len6 = input(200, title="Length")

src = input(close, title="Source")

AmaOut = sma(src, len1)
BmaOut = sma(src, len2)
CmaOut = sma(src, len3)
DmaOut = sma(src, len4)
EmaOut = sma(src, len5)
FmaOut = sma(src, len6)

AemaOut = ema(src, len1)
BemaOut = ema(src, len2)
CemaOut = ema(src, len3)
DemaOut = ema(src, len4)
EemaOut = ema(src, len5)
FemaOut = ema(src, len6)

plot(AmaOut, color=#ff00ff, title="9 day MA")
plot(BmaOut, color=#4985E7, title="21 day MA")
plot(CmaOut, color=#3FE641, title="50 day MA")
plot(DmaOut, color=#3FE641, title="100 day MA")
plot(EmaOut, color=#3FE641, title="150 day MA")
plot(FmaOut, color=#3FE641, title="200 day MA")

plot(AemaOut, color=#ff00ff, title="9 day EMA")
plot(BemaOut, color=#4985E7, title="21 day EMA")
plot(CemaOut, color=#3FE641, title="50 day EMA")
plot(DemaOut, color=#3FE641, title="100 day EMA")
plot(EemaOut, color=#3FE641, title="150 day EMA")
plot(FemaOut, color=#3FE641, title="200 day EMA")

hope someone would like this
Daha Fazla