LUNA - Hold The Line Or Die
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © MrCryptoholic

//@version=5
indicator("LUNA - Hold The Line Or Die", overlay=true)
ust_cap = request.security('CRYPTOCAP:UST', timeframe='', expression=close, ignore_invalid_symbol=true)
luna_price = request.security('LUNAUSDT', timeframe='', expression=close, ignore_invalid_symbol=true)
luna_cap = request.security('CRYPTOCAP:LUNA', timeframe='', expression=close, ignore_invalid_symbol=true)
floor_coef = ust_cap / luna_cap
floor_price = luna_price * floor_coef

plot(floor_price, linewidth=2, editable=true)

