OPEN-SOURCE SCRIPT
Rolling Correlation Viewer

Pairwise rolling Pearson correlation between the chart symbol and up to three reference symbols (default SPY, QQQ, GLD) over a configurable window. Useful for seeing how diversification and co-movement shift across regimes. It does NOT generate buy or sell signals.
What it shows
- Rolling correlation of the chart symbol versus each of three reference symbols
- A table of the latest correlation values
Honest by design
- No buy/sell signals.
- Non-repainting: the reference symbols are pulled with lookahead off and correlations use confirmed close bars only. The current forming bar updates in real time, which is normal, not historical repaint.
Open-source and MIT licensed.
Disclaimer: impersonal educational and analytics tool. This is not investment advice, not a personalised recommendation, and carries no performance guarantee. Past results do not predict future results. You are solely responsible for your own trading decisions.
What it shows
- Rolling correlation of the chart symbol versus each of three reference symbols
- A table of the latest correlation values
Honest by design
- No buy/sell signals.
- Non-repainting: the reference symbols are pulled with lookahead off and correlations use confirmed close bars only. The current forming bar updates in real time, which is normal, not historical repaint.
Open-source and MIT licensed.
Disclaimer: impersonal educational and analytics tool. This is not investment advice, not a personalised recommendation, and carries no performance guarantee. Past results do not predict future results. You are solely responsible for your own trading decisions.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.