MarcoValente

Willams% Fisher transformed confermated by BB%

270
Using the Willams% sharped by Fisher tranformer , it s easy to find the bottom and top, and the BB% conferm the minimum. I plot as colored columns : yellow when the price touch the BB , and red or green when price move out from the bands, if the line of Willams also reach the top or bottom, that's the moment to act. In all indicator can change the setting as you like
開源腳本

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

免責聲明

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

想在圖表上使用此腳本?
//by Marco
study(title=" Willams% Fisher transform confermated by BB%", shorttitle=" W% & BB%")
length = input(20, minval=1,title="BB period")
src = input(close, title="Source")
mult = input(2.0, minval=0.001,step=0.05, maxval=50)
useCurrentRes = input(true, title="Use Current Chart Resolution?")
resCustom = input(title="Use Different Timeframe? Uncheck Box Above", type=resolution, defval="60")
res = useCurrentRes ? period : resCustom
len = input(14, minval=1, title="Length Willams")
high_ = highest(len)
low_ = lowest(len)
round_(val) => val > .99 ? .999 : val < -.99 ? -.999 : val
value = round_(.6+ ((close - high_) / max(high_ - low_, .001))+ .33 * nz(value[1]))
fish1 = .5 * log((1 + value) / (1 - value))
co=fish1>1.1? red : fish1 <-0.2?green : blue
out1 = security(tickerid, res, fish1)
ff=plot(out1, color=co,histbase=.5, linewidth=2,title="Willams%")

basis = sma(src, length)
dev = mult * stdev(src, length)
upper = basis + dev
lower = basis - dev
bbr =(src - lower)/(upper - lower)
del=upper-high
ded=low-lower
uu= del>del[1]? 1:0
ud=ded>ded[1]? 1:0
out2 = security(tickerid, res, bbr)
col=high>upper or low<lower? yellow :high[1]>upper[1] and close<upper and uu?red :low[1]<lower[1] and close >lower and ud? green : teal
plot(out2, style=columns,title="BB%",histbase=0.5,color=col,transp=40)
band1 = hline(1.1, color=gray, linestyle=dashed)
band2=hline(1.5)
band0 = hline(-0.2, color=gray, linestyle=dashed)
banda=hline(-.7)
fill(band1, band2, color=red,transp=90)
fill(band0, banda, color=green,transp=90)