ZLu

[ZL]Z-score Indicator

208 3 26
The Z-indicator is popular in the statistics. What if we use it to identify the tops and bottoms. Very simple indicator.
Remove from Favorite Scripts Add to Favorite Scripts
//@version=2
study("[蘆田资產]Z-score Indicator")
length=input(20,"Length")
smooth1=input(3,"Smooth")
smooth2=input(5,"Smooth")
upStd=input(2, "Up Standard Deviation")
downStd=input(-2, "Down Standard Deviation")

z = stdev(close, length) != 0 ? (close - sma(close, length))/stdev(close, length) : na
ind1 = sma(z, smooth1)
ind2 = sma(ind1, smooth2)
plot(ind1, "Ind Fast", color = purple, linewidth=3)
plot(ind2, "Ind Slow", color = blue, linewidth=3)
plot(upStd, "Up Std Dev", color = lime, linewidth=3)
plot(downStd, "Down Std Dev", color = red, linewidth=3)
snapshot


I've worked with Z score quite a lot. Not a commonly known tool. I like the fact you've added the smoothing factors. Nice!
Reply
ZLu PRO coondawg71
a year ago
Thanks. I am so glad that you like it.
Reply
snapshot


Good to use in conjunction with cycle indicators and the Linear Regression, so that traders trade "In Phase".
Reply
Ideas Scripts Chart
United States
United Kingdom
India
España
Italia
Brasil
Россия
Türkiye
日本
한국
Home Stock Screener Economic Calendar How It Works Chart Features House Rules Moderators For the WEB Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Private Messages Chat Ideas Published Followers Following Priority Support Public Profile Profile Settings Billing Sign Out