//@version=3
study(title="Important Moving Averages", shorttitle="MA", overlay=true)
len1 = input(1408, minval=1, title="Length")
len2 = input(1356, minval=1, title="Length")
len3 = input(1481, minval=1, title="Length")
len4 = input(1258, minval=1, title="Length")
len5 = input(1211, minval=1, title="Length")
len6 = input(1127, minval=1, title="Length")
len7 = input(1167, minval=1, title="Length")
len8 = input(1309, minval=1, title="Length")
len9 = input(1643, minval=1, title="Length")
len10 = input(921, minval=1, title="Length")
len11 = input(1074, minval=1, title="Length")
len12 = input(1034, minval=1, title="Length")
len13 = input(989, minval=1, title="Length")
len14 = input(869, minval=1, title="Length")
len15 = input(812, minval=1, title="Length")
len16 = input(1550, minval=1, title="Length")
len17 = input(1986, minval=1, title="Length")
len18 = input(1840, minval=1, title="Length")
len19 = input(1771, minval=1, title="Length")
len20 = input(1704, minval=1, title="Length")
len21 = input(1908, minval=1, title="Length")
len22 = input(2104, minval=1, title="Length")
src = input(close, title="Source")
ma1 = sma(src, len1)
ma2 = sma(src, len2)
ma3 = sma(src, len3)
ma4 = sma(src, len4)
ma5 = sma(src, len5)
ma6 = sma(src, len6)
ma7 = sma(src, len7)
ma8 = sma(src, len8)
ma9 = sma(src, len9)
ma10 = sma(src, len10)
ma11 = sma(src, len11)
ma12 = sma(src, len12)
ma13 = sma(src, len13)
ma14 = sma(src, len14)
ma15 = sma(src, len15)
ma16 = sma(src, len16)
ma17 = sma(src, len17)
ma18 = sma(src, len18)
ma19 = sma(src, len19)
ma20 = sma(src, len20)
ma21 = sma(src, len21)
ma22 = sma(src, len22)
plot(ma1, color=#FF0000, title="MA1")
plot(ma2, color=#FF1100, title="MA2")
plot(ma3, color=#FF2200, title="MA3")
plot(ma4, color=#FF3300, title="MA4")
plot(ma5, color=#FF4400, title="MA5")
plot(ma6, color=#FF5500, title="MA6")
plot(ma7, color=#FF6600, title="MA7")
plot(ma8, color=#FF7700, title="MA8")
plot(ma9, color=#EE8800, title="MA9")
plot(ma10, color=#DD9900, title="MA10")
plot(ma11, color=#CCAA00, title="MA11")
plot(ma12, color=#BBBB00, title="MA12")
plot(ma13, color=#AACC00, title="MA13")
plot(ma14, color=#99DD00, title="MA14")
plot(ma15, color=#88EE00, title="MA15")
plot(ma16, color=#88EE00, title="MA16")
plot(ma17, color=#88EE00, title="MA17")
plot(ma18, color=#88EE00, title="MA18")
plot(ma19, color=#88EE00, title="MA19")
plot(ma20, color=#88EE00, title="MA20")
plot(ma21, color=#88EE00, title="MA21")
plot(ma22, color=#88EE00, title="MA22")
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.