Crypto Market Caps (BTC/ETH)
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © Cyatophilum

//@version=5
indicator('Crypto Market Caps (BTC/ETH)')

// inputs
btc = input.symbol(title='Market Cap BTC', defval='CRYPTOCAP:BTC', group='Market Cap')
eth = input.symbol(title='Market Cap ETH', defval='CRYPTOCAP:ETH', group='Market Cap')

// Get BTC & alt market caps
b = request.security(btc, timeframe=timeframe.period, expression=close)
e = request.security(eth, timeframe=timeframe.period, expression=close)

// Plot
plot(b/e, 'BTC/ETH', color=color.new(color.orange, 0))
hline(1,title="Flippening",color=color.red,linewidth=2,linestyle=hline.style_solid)