OPEN-SOURCE SCRIPT

Z-Score Support & Resistance [SS}

Hello everyone,

This is the Z-Score Support and Resistance (S/R) indicator.

How it works:

The trouble with most indicators and strategies that rely on distributions is that they are constantly moving targets.
To combat this, what I have done is anchored the assessment of the normal distribution to the period open price and dropped the data from the current day.
This provides us with a static assessment of the current distribution and static target levels.
It then plots out an assessment of what would be neutral (0 Standard Deviations) all the way up to +3 Standard Deviations and all the way down to -3 Standard Deviations.

It can plot out this assessment on any timeframe, from the minutes to the months to the years, simply select which desired timeframe you want in the settings menu (default is 9 which seems to work well for most generic tickers and indicies).

The indicator will also count the number of times a ticker has closed within each designated period. To do this, please make sure that you have the assessment timeframe opened on the chart. So if you want to look at the instances on the daily timeframe, ensure you have the daily timeframe opened. If you want to look on the monthly, ensure you have the monthly opened, etc. (See below):

스냅샷

How to Use:

To use the indicator, its pretty simple.
Simply select the desired timeframe you want to use as S/R and use it!

You can adjust the period lookback from the defaulted 9 period based on:

a) The degree of normality in the dataset (you can use a kurtosis indicator to help you ascertain this); or
b) The back-test results of closes within a desired range.

For the later, you can see an example below:

This is TSLA with a 9 period lookback:

스냅샷

We can see that 50% of closes are happening within 0.5 and -0.5 standard deviations. If we extend this to a 15 period lookback:

스냅샷

Now over 60% of closes are happening in this area.

Why does this matter? Well, because now we know our prime short and long entries (see below):

스냅샷

The green arrows represent prime long setups and the red prime short setups.
This is because we know, 61% of the time the ticker will close between 0.5 and -0.5 standard deviations, so we can trade the ticker back to this area.

Further instructions:

Because it is somewhat of a complex indicator, I have done a tutorial video that I will link below here:




And that is the indicator my friends! Hopefully you enjoy :-).

As always, leave your comments and suggestions / Questions below!

Safe trades!
statistics

오픈 소스 스크립트

진정한 TradingView 정신에 따라, 이 스크립트의 저자는 트레이더들이 이해하고 검증할 수 있도록 오픈 소스로 공개했습니다. 저자에게 박수를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰에 의해 관리됩니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

차트에 이 스크립트를 사용하시겠습니까?


For real-time updates and premium indicators, consider joining my group at: patreon.com/steversteves
또한 다음에서도:

면책사항