BTCSPXRATIO
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © In_Finito_

//@version=5
indicator("BTCSPXRATIO", overlay=false)

float btcprice=request.security("INDEX:BTCUSD", timeframe.period, close)
float spxprice=request.security("CME_MINI:ES1!", timeframe.period, close)

plot(btcprice/spxprice, style=plot.style_line)
 