AusBitBank

SBD steempeg v0.1

A simple indicator to show the current USD value of a Steem Backed Dollar , based on the POLONIEX:SBDBTC and BITFINEX:BTCUSD prices .
Plot lines are marked at $1 , $0.90 , $0.80 and plot line color changes depending on its current price for a quick visual reference.

If you appreciate this please show some love to steemit.com/@ausbitbank !

開源腳本

本著真正的TradingView精神,該腳本的作者將其開源發布,以便交易者可以理解和驗證它。為作者喝彩吧!您可以免費使用它,但在出版物中重複使用此代碼受網站規則的約束。 您可以收藏它以在圖表上使用。

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。

想在圖表上使用此腳本?
//@version=2
// SBD steempeg indicator by @ausbitbank
// https://steemit.com/@ausbitbank
// Work in progress v0.1   (@version on line1 is to enable pinescript if statements .. TIL)
study(title = "SBD steempeg v0.1", shorttitle = "SBD steempeg indicator")
polosbdbtc = security("POLONIEX:SBDBTC",period, close)
bitfinexbtcusd = security("BITFINEX:BTCUSD",period, close)
polosteembtc = security("POLONIEX:STEEMBTC",period,close)
polosbdpeg = (polosbdbtc*bitfinexbtcusd)
plotcolor = if polosbdpeg<1
    if polosbdpeg<0.9
        red
    else
        orange
else
    green
plot(polosbdpeg,color=plotcolor,linewidth=2)
plot(1,color=green)
plot(0.9,color=yellow)
plot(0.8,color=orange)