traderUS180

SMA 3-987 Fibonacci

808
SMA 3-987 - line of the Fibonacci series
SMA -Simple Moving Average
A simple moving average (SMA) is an arithmetic moving average calculated by adding the closing price of the security for a number of time periods and then dividing this total by the number of time periods.

開源腳本

本著真正的TradingView精神,該腳本的作者將其開源發布,以便交易者可以理解和驗證它。為作者喝彩吧!您可以免費使用它,但在出版物中重複使用此代碼受網站規則的約束。 您可以收藏它以在圖表上使用。

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。

想在圖表上使用此腳本?
// @author traderUS180

study(title="SMA 3-987", overlay=true)
src = input(close, title="Source")
len0 = input(3, minval=1, title="Length")
out0 = sma(src, len0)
len1 = input(5, minval=1, title="Length")
out1 = sma(src, len1)
len2 = input(8, minval=1, title="Length")
out2 = sma(src, len2)
len3 = input(13, minval=1, title="Length")
out3 = sma(src, len3)
len4 = input(21, minval=1, title="Length")
out4 = sma(src, len4)
len5 = input(34, minval=1, title="Length")
out5 = sma(src, len5)
len6 = input(55, minval=1, title="Length")
out6 = ema(src, len6)
len7 = input(89, minval=1, title="Length")
out7 = sma(src, len7)
len8 = input(144, minval=1, title="Length")
out8 = sma(src, len8)
len9 = input(233, minval=1, title="Length")
out9 = sma(src, len9)
len10 = input(377, minval=1, title="Length")
out10 = sma(src, len10)
len11 = input(610, minval=1, title="Length")
out11 = sma(src, len11)
len12 = input(987, minval=1, title="Length")
out12 = sma(src, len12)



plot(out0, linewidth=2, color=white, transp=0)
plot(out1, linewidth=2, color=green, transp=0)
plot(out2, linewidth=2, color=yellow, transp=0)
plot(out3, linewidth=2, color=orange, transp=0)
plot(out4, linewidth=3, color=red, transp=0)
plot(out5, linewidth=3, color=maroon, transp=0)

plot(out6, linewidth=3, color=yellow, transp=0)
plot(out7, linewidth=3, color=orange, transp=0)
plot(out8, linewidth=4, color=green, transp=0)
plot(out9, linewidth=4, color=maroon, transp=0)
plot(out10, linewidth=4, color=blue, transp=0)
plot(out11, linewidth=4, color=white, transp=0)
plot(out12, linewidth=4, color=red, transp=0)