OPEN-SOURCE SCRIPT
Updated Multi Z Score [DW]

This is an experimental study using z scores of multiple sampling periods to analyze price trends.
Z score measures the number of standard deviations price is from its mean.
In this study, z scores are calculated over a Fibonacci sequence of sampling periods from 3 to 4181.
The scores are then averaged with equal weighting, resulting in a display of long term trend with short term sensitivity.
Custom bar colors are included. The color scheme is based on the perceived trend from the average z score.
Z score measures the number of standard deviations price is from its mean.
In this study, z scores are calculated over a Fibonacci sequence of sampling periods from 3 to 4181.
The scores are then averaged with equal weighting, resulting in a display of long term trend with short term sensitivity.
Custom bar colors are included. The color scheme is based on the perceived trend from the average z score.
Release Notes
Updates:Added dynamic weightings to the script based on a request @mcbw_.
There are four weigting methods to choose from:
-> Equal Weights - The original method.
-> Volume Weights - Weights each Z score by its cumulative volume
-> Length Weights - Weights each Z score by its sampling period
-> Volatility Weights - Weights each Z score by its standard deviation of price over its respective sampling period
Added exponential smoothing to the script for a noise reduced result
Made some changes to the aesthetic:
-> Average Z Score is now plotted as columns
-> Individual Z Scores are now plotted as circles
Release Notes
Updates:-> Migrated to v4.
-> Rebuilt script and reorganized the structure.
-> Main calculations have been converted to functions.
-> Z-scores now have adjustable periods and toggle switches so you can customize your experience.
-> Fixed an issue with volume detection. Now, when volume weigths are being used, tick volume will automatically be used when real volume is NaN.
-> Added an option to invert the weights for average Z-score. Enabling this will place heavier weighting on shorter term data. This does not affect the output when equal weights are used.
-> Revamped color scheme.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
For quick access on a chart, add this script to your favorites — learn more here.
For my full list of premium tools, check the blog:
wallanalytics.com/
Reach out on Telegram:
t.me/DonovanWall
wallanalytics.com/
Reach out on Telegram:
t.me/DonovanWall
Disclaimer
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
For quick access on a chart, add this script to your favorites — learn more here.
For my full list of premium tools, check the blog:
wallanalytics.com/
Reach out on Telegram:
t.me/DonovanWall
wallanalytics.com/
Reach out on Telegram:
t.me/DonovanWall
Disclaimer
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.