OPEN-SOURCE SCRIPT

BTCUSD vs S&P500 (Daily)

This script plots an RSI of the difference between the BTCUSD (FTX) and S&P 500 (FRED) prices, useful to see how the BTCUSD price correlates to the stock market.

This works in the daily timeframe only (because the S&P 500 can only be sampled on this timeframe). You can try lower timeframes but they will be gapped / interpolated.
OscillatorsTrend Analysis

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer