tickerTracker MFI Oscillator
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © Options360
// original release: 1/12/2021, update +2=11x tickers total & add a trackprice line: 12/26/2022, update 3/2/2023 MFI or RSI option
// @version=5
indicator("tickerTracker")
num = input.int(13, "Length")
src = input(ohlc4, 'source')
mfirsi = input(true, title="MFI or RSI", tooltip="MFI checked or RSI unchecked")
expr = mfirsi ? ta.mfi(src, num) : ta.rsi(src, num)

plot(expr, color=color.white)
plot(expr, color=color.new(color.white, 0), title='track', trackprice=true, offset=-9999, display=display.none)

spy = input.symbol("SPY", "Symbol")
_spy = request.security(spy, timeframe.period, expr)
plot(_spy, title='SPY', color=color.white)

qqq = input.symbol("QQQ", "Symbol")
_qqq = request.security(qqq, timeframe.period, expr)
plot(_qqq, title='QQQ', color=#008eff)

iwm = input.symbol("IWM", "Symbol")
_iwm = request.security(iwm, timeframe.period, expr)
plot(_iwm, title='IWM', color=#eaff00)

dia = input.symbol("DIA", "Symbol")
_dia = request.security(dia, timeframe.period, expr)
plot(_dia, title='DIA', color=#ff7700)

vti = input.symbol("VTI", "Symbol")
_vti = request.security(vti, timeframe.period, expr)
plot(_vti, title='VTI', color=#ffffff)

btcusd = input.symbol("BTC", "Symbol")
btc = request.security(btcusd, timeframe.period, expr)
plot(btc, title='BTC', color=#eaff00)

ethusd = input.symbol("ETH", "Symbol")
eth = request.security(ethusd, timeframe.period, expr)
plot(eth, title='ETH', color=#2dff00)

ltcusd = input.symbol("LTC", "Symbol")
ltc = request.security(ltcusd, timeframe.period, expr)
plot(ltc, title='LTC', color=#da00ff)

adausd = input.symbol("ADA", "Symbol")
ada = request.security(adausd, timeframe.period, expr)
plot(ada, title='ADA', color=#ff0202)

dogeusd = input.symbol("DOGE", "Symbol")
doge = request.security(dogeusd, timeframe.period, expr)
plot(doge, title='DOGE', color=#ffffff)

h1 = hline(100, "top", color=#989595, linestyle=hline.style_dotted)
h2 = hline(75, "75", color=#989595, linestyle=hline.style_dotted)
h3 = hline(50, "mid", color=#989595, linestyle=hline.style_dotted)
h4 = hline(25, "25", color=#989595, linestyle=hline.style_dotted)
h5 = hline(0, "bot", color=#989595, linestyle=hline.style_dotted)

