ChrisMoody

Custom Indicator--Interesting Thought Process!

I was asked to create this Indicator by TV user Drat. In the 1st Post I go into Specific Details of the Indicator. The Concept is Valid and the 1st Post is Worth Reading.

開源腳本

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

免責聲明

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

想在圖表上使用此腳本?
//Created by ChrisMoody on 5/5/2014 by request from Drat
//Reference Article with Specifics and Trade Patterns.  http://www.forexfactory.com/showthread.php?t=37111

study(title="CM_Stochastic_Threads", shorttitle="CM_Stoch_Threads")
//length = input(14, minval=1)
smoothK = input(3, minval=1, title="SmoothK - Keep at Setting 3")
smoothD = input(3, minval=1, title="SmoothD - Keep at Setting 3")
//k = sma(stoch(close, high, low, length), smoothK)
//d = sma(k, smoothD)

k6 = sma(stoch(close, high, low, 6), smoothK)
k7 = sma(stoch(close, high, low, 7), smoothK)
k8 = sma(stoch(close, high, low, 8), smoothK)
k9 = sma(stoch(close, high, low, 9), smoothK)
k10 = sma(stoch(close, high, low, 10), smoothK)
k11 = sma(stoch(close, high, low, 11), smoothK)
k12 = sma(stoch(close, high, low, 12), smoothK)
k13 = sma(stoch(close, high, low, 13), smoothK)

k14 = sma(stoch(close, high, low, 14), smoothK)

k15 = sma(stoch(close, high, low, 15), smoothK)
k16 = sma(stoch(close, high, low, 16), smoothK)
k17 = sma(stoch(close, high, low, 17), smoothK)
k18 = sma(stoch(close, high, low, 18), smoothK)
k19 = sma(stoch(close, high, low, 19), smoothK)
k20 = sma(stoch(close, high, low, 20), smoothK)
k21 = sma(stoch(close, high, low, 21), smoothK)
k22 = sma(stoch(close, high, low, 22), smoothK)
k23 = sma(stoch(close, high, low, 23), smoothK)
k24 = sma(stoch(close, high, low, 24), smoothK)


plot(k6, title="%K 6 Lower Time Frame Stoch", style=line, linewidth=1, color=aqua)
plot(k7, title="%K 7 Lower Time Frame Stoch", style=line, linewidth=1, color=aqua)
plot(k8, title="%K 8 Lower Time Frame Stoch", style=line, linewidth=1, color=aqua)
plot(k9, title="%K 9 Lower Time Frame Stoch", style=line, linewidth=1, color=aqua)
plot(k10, title="%K 10 Lower Time Frame Stoch", style=line, linewidth=1, color=aqua)
plot(k11, title="%K 11 Lower Time Frame Stoch", style=line, linewidth=1, color=aqua)
plot(k12, title="%K 12 Lower Time Frame Stoch", style=line, linewidth=1, color=aqua)
plot(k13, title="%K 13 Lower Time Frame Stoch", style=line, linewidth=1, color=aqua)

plot(k14, title="***%K 14 Base Stoch***(Keep Thick Line)", style=line, linewidth=4, color=red)

plot(k15, title="%K 15 Higher Time Frame Stoch", style=line, linewidth=1, color=red)
plot(k16, title="%K 16 Higher Time Frame Stoch", style=line, linewidth=1, color=red)
plot(k17, title="%K 17 Higher Time Frame Stoch", style=line, linewidth=1, color=red)
plot(k18, title="%K 18 Higher Time Frame Stoch", style=line, linewidth=1, color=red)
plot(k19, title="%K 19 Higher Time Frame Stoch", style=line, linewidth=1, color=red)
plot(k20, title="%K 20 Higher Time Frame Stoch", style=line, linewidth=1, color=red)
plot(k21, title="%K 21 Higher Time Frame Stoch", style=line, linewidth=1, color=red)
plot(k22, title="%K 22 Higher Time Frame Stoch", style=line, linewidth=1, color=red)
plot(k23, title="%K 23 Higher Time Frame Stoch", style=line, linewidth=1, color=red)
plot(k24, title="%K 24 Higher Time Frame Stoch", style=line, linewidth=1, color=red)

//plot(d, color=orange)
h0 = hline(80)
h1 = hline(20)
fill(h0, h1, color=silver, transp=75)