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)