High beta assets Z-Score

This indicator follows the trend of several bitcoin-related assets, which perform the same under the same market conditions and supply of monetary liquidity.

Here is the formula used on which this indicator is based and the assets that are part of it:

((NDX + ARKK + HYG + KKR) / 4) / DXY

* Big Tech Stocks:
NDX: The Nasdaq-100 Index, which groups together the major technology companies.
*Growth Stocks:
ARKK: ARK Innovation ETF, which focuses on high-growth companies in the technology and innovation sectors.
*High Yield Bonds:
HYG: iShares iBoxx $ High Yield Corporate Bond ETF, which represents the high-yield corporate bond market.
*Private Equity and Venture Capital:
KKR: KKR & Co. Inc., a leading private equity and alternative investment management firm.

By following these assets we can try to anticipate the trend of Bitcoin

Code Explanation:
- Index Data: Uses `request.security` to get the closing prices of the various indices.
- Average Calculation: Calculates the average of the four indices.
- Z-Score Calculation: Calculates the Z-score of the average relative to its simple moving average and standard deviation.
- Standard Deviation Bands: Calculates the upper and lower bands based on the standard deviation.
- Plot: Plots the Z-score and bands on the chart.
- Trend Label: Changes the background color to indicate an uptrend or downtrend.
Trend Analysis

Aviso legal