AusBitBank

SBD steempeg v0.1

53 0 5
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 https://steemit.com/@ausbitbank !
Remove from Favorite Scripts Add to Favorite Scripts
//@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)
Ideas Scripts Chart
United States
United Kingdom
India
España
Italia
Brasil
Россия
Türkiye
日本
한국
Home Stock Screener Economic Calendar How It Works Chart Features House Rules Moderators For the WEB Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Private Messages Chat Ideas Published Followers Following Priority Support Public Profile Profile Settings Billing Sign Out