OPEN-SOURCE SCRIPT

Correlation X macroeconomics

280
Find the correlation between financial assets and the main Brazilian macroeconomic variables:
  • SELIC rate (Red)
  • PIB (Green)
  • Inflation (Blue)
  • Employment and income (Yellow)

Unlike other indicators that measure the correlation between two assets, the indicator "Correlation X macroeconomics" measures, for example, the correlation that the VALE3 asset has with the SELIC rate.
The correlation is obtained by calculating the variation suffered by a given asset on the day a given Brazilian macroeconomic variable is released.
This indicator can be used on any financial asset.
Use time frame chart = 1 day.
To calculate the correlation, data published by IBGE and the Central Bank of Brazil over a period of time are used. This time period is different depending on the selected macroeconomic variable. Namely:
  • 16 PIB disclosures (4 years)
  • 24 SELIC rate disclosures (3 years)
  • 24 disclosures of IPCA and employment and income data (2 years)

You can select one or more macroeconomic variables to check the effect of correlation separately on each of them.
This indicator "Correlation X macroeconomics" will be updated monthly, as detailed below:
  • At the end of the day on which the PIB is released
  • At the end of the day on which employment and income data are released
  • At the end of the day following the day on which the SELIC rate is published
  • On the last business day of the month if none of the aforementioned disclosures occur

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.