Chickenz Compare performance of 2 Tickers (Default - BTC/LTC)
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © iancarmichael71

//@version=5
indicator("Chickenz BTC/LTC", overlay=false)

ticker1     = input.symbol("LTCUSDT")
LTC_close   = request.security(ticker1,"",close)
LTC         = request.security(syminfo.tickerid,"",close)
LTChigh     = ta.highest(LTC_close, length = 100)
LTCLow      = ta.lowest(LTC_close, length = 100)
LTCScore    = ((LTC_close - LTCLow) / (LTChigh-LTCLow))

ticker2     = input.symbol("BTCUSDT")
BTC_close   = request.security(ticker2,"",close)
BTC         = request.security(syminfo.tickerid,"",close)
BTChigh     = ta.highest(BTC_close, length = 50)
BTCLow      = ta.lowest(BTC_close, length = 50)
BTCScore    = ((BTC_close - BTCLow) / (BTChigh-BTCLow))

BTCLTC = BTC_close / LTC_close

plot(LTCScore, color=color.red, title="Ticker1")
plot(BTCScore,color = color.white, title="Ticker2")
//plot(BTC_close, color = color.red)
//plot(LTC_close, color = color.blue)
