Trading_Theories

Normalized Market Indicators

Explanation of the Code:
Data Retrieval: The script retrieves the closing prices of the S&P 500 (sp500) and VIX (vix).
Normalization: The script normalizes these values using a simple z-score normalization (subtracting the 50-period simple moving average and dividing by the 50-period standard deviation). This makes the scales of the two datasets more comparable.
Plotting with Secondary Axis: The normalized values of the S&P 500 and VIX are plotted on the same chart. They will share the same y-axis scale as the main chart (e.g. Netflix, GOLD, Forex).
Points to Note:
Normalization Method: The method of normalization (z-score in this case) is a choice and can be adjusted based on your needs. The idea is to bring the data to a comparable scale.
Timeframe and Symbol Codes: Ensure the timeframe and symbol codes are appropriate for your data source and trading strategy.
Overlaying on Price Chart: Since these values are normalized and plotted on a seperate chart, they won't directly correspond to the price levels of the main chart (e.g. Netflix, GOLD, Forex).
Script de código abierto

Siguiendo el verdadero espíritu de TradingView, el autor de este script lo ha publicado en código abierto, para que los traders puedan entenderlo y verificarlo. ¡Un hurra por el autor! Puede utilizarlo de forma gratuita, aunque si vuelve a utilizar este código en una publicación, debe cumplir con lo establecido en las Normas internas. Puede añadir este script a sus favoritos y usarlo en un gráfico.

Exención de responsabilidad

La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.

¿Quiere utilizar este script en un gráfico?