Z-Score Buy and Sell Signals

Hello everyone!

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!


TradingViewの精神に則り、このスクリプトの作者は、トレーダーが理解し検証できるようにオープンソースで公開しています。作者に敬意を表します!無料で使用することができますが、このコードを投稿で再利用するには、ハウスルールに準拠する必要があります。 お気に入りに登録してチャート上でご利用頂けます。