OPEN-SOURCE SCRIPT

Asset Valuation Comparison

99
This indicator calculates and visualizes z-scores to compare the valuation of an asset (the charted symbol) against gold, bonds, and either its own price or USD (depending on the isCurrency input). A z-score measures how many standard deviations a value is from its mean over a specified lookback period (default: 200 bars).

Horizontal Lines:

0 (Zero Line): The mean value of the z-score.
+1 (Overvalued Threshold): One standard deviation above the mean.
-1 (Undervalued Threshold): One standard deviation below the mean.

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.