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

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

BIN = request.security("BINANCE:USTUSDT","3", close)
FTX = request.security("FTX:USTUSD","3", close)
KRA = request.security("KRAKEN:USTUSD","3", close)
LUNA = request.security("FTX:LUNAUSD","3", close)
LUNA1 = request.security("FTX:LUNAUSD","3", close[5])

AVG=(BIN+FTX+KRA)/3
LUNAkoef=LUNA1/LUNA

//vytvořeno pro  UST:PERP
PERP= close

plot(AVG/PERP/LUNAkoef, style=plot.style_histogram, histbase=1,color=(AVG/PERP>1?color.lime:color.red))
//plot (BIN, color=color.yellow)
//plot(FTX, color=color.blue)
//plot(KRA, color=color.purple)
