The z-score (also known as the standard score) measures how many standard deviations a data point is from the mean of a dataset. It helps determine whether a data point is typical or unusual compared to the dataset.
The formula for the z-score is:
z = \frac{x - \mu}{\sigma}
Where: • x = the value being evaluated • \mu = the mean of the dataset • \sigma = the standard deviation of the dataset
Interpretation: • A positive z-score indicates the data point is above the mean. • A negative z-score indicates the data point is below the mean. • A z-score of 0 means the data point is exactly at the mean.
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publications is governed by House rules. You can favorite it to use it on a chart.
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.