Based on "Willy" Indicator.
Red = overbought, Green = oversold, White = Crossover
Added MACD for visualisation of crossovers. May also be usefull for spotting divergences.

Happy about any feedback = ]
開源腳本

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

免責聲明

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

想在圖表上使用此腳本?
study(title="Willy Signals", shorttitle="WillySIG_[MTG]")
length = input(21, minval=1)
upper = highest(length)
lower = lowest(length)
out = (close - lower) / (upper - lower)
src = out, len = input(13, minval=1, title="Length")
out2 = ema(out,1)
out3 = ema(out,12)
macd = ema(out2-out3,1)
crs = cross(out2,out3) and ((out3 >= 0.75) or (out3 <= 0.25))?((out3 <= 0.25)?lowest(macd,100):highest(macd,100)):na
sig1 = (out3 <= 0.25)?lowest(macd,100):na
sig2 = (out3 >= 0.75)?highest(macd,100):na

plot(sig1, color=lime, style = area,transp=50)
plot(sig2, color=red, style = area, transp=50)
plot(crs, color=white, style = area, transp=64, linewidth=1)
plot(wma(macd,3), title="EMA", color=aqua, transp=72, style = area, linewidth=2)
hline(0,color=teal)