Z-Score Buy and Sell Signals

Happy Holidays, Merry/Happy Christmas!
Here is my Christmas gift to you to show my appreciation of your support and engagement over the past year!
This is the Z-Score Buy and Sell Signal indicator!
How it works:
It works by looking at the Z-Score of an equities close price and looking for previous areas over reversals over the defined period of time.
It also looks at areas that are overbought or oversold (manifested by Z-Scores greater than or less than 2 Standard Deviations away) and displays them as bar colour changes.
Historic reversals are signaled with buy and/or sell signals.
Oversold is signaled with a green bar colour change (colour can be customaized).
Overbought is signaled with an orange bar colour change.
How to use it:
You can use it with support resistance or other indicators. You can use this on both the larger and small timeframes, depending on the style of trader you are.
You can modify the input length to look back on shorter or longer periods.
As a general rule from my experience using it, if you are using the shorter timeframes (i.e. 1 minute tfs), its best to look back between 50 and 75 candles for most equities.
If you are looking at the larger timeframes (i.e. Daily, 1 to 2 hour, etc.) its best to set the input value to between 500 to 800.
But, as always, you should check to ensure the indicator is providing correct signals by reviewing the previous signals to ensure that they adequate identified reversals.
It is also best not to use this alone as your sole indicator. It is meant to be supplementary to other indicators/support resistance/chart patterns you are using to guide your trades. This will not replace good TA and a good understand of the stock and its likely trajectory.
As always, please feel free to share your comments/feedback/questions and recommendations below.
As always, I do customary tutorial videos for my indicators, so please see below for an in-depth video tutorial should you want to see it in action:

Otherwise, happy holidays everyone! And all of the best over this Christmas weekend to you and your loved ones!
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Untuk akses pantas pada carta, tambah skrip ini kepada kegemaran anda — ketahui lebih lanjut di sini.
Get:
- Live Updates,
- Discord access,
- Access to my Proprietary Merlin Software,
- Access to premium indicators,
patreon.com/steversteves
Penafian
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Untuk akses pantas pada carta, tambah skrip ini kepada kegemaran anda — ketahui lebih lanjut di sini.
Get:
- Live Updates,
- Discord access,
- Access to my Proprietary Merlin Software,
- Access to premium indicators,
patreon.com/steversteves