AtenA

BTCOMPASS

Sorry, this is the right link:
BTCOMPASS
Remove from Favorite Scripts Add to Favorite Scripts
study("BTCOMPASS")
wmaperiods = input(title="Periods", type=integer, defval=5, minval=2)
sresponsiveness = input(title="SentimentResponsiveness", type=integer, defval=2, minval=1, maxval=5)
finex = security("BITFINEX:BTCUSD", period, close)
stamp = security("BITSTAMP:BTCUSD", period, close)
btce = security("BTCE:BTCUSD", period, close)
huobi = security("HUOBI:BTCCNY", period, close)
btcchina = security("BTCCHINA:BTCCNY", period, close)
btceltc = security("BTCE:LTCBTC", period, close)
finexltc = security("BITFINEX:LTCBTC", period, close)

finexvol = security("BITFINEX:BTCUSD", period, volume)
stampvol = security("BITSTAMP:BTCUSD", period, volume)
btcevol = security("BTCE:BTCUSD", period, volume)
huobivol = security("HUOBI:BTCCNY", period, volume)
btcchinavol = security("BTCCHINA:BTCCNY", period, volume)
btceltcvol = security("BTCE:LTCBTC", period, volume)
finexltcvol = security("BITFINEX:LTCBTC", period, volume)
allvol = finexvol+stampvol+btcevol+huobivol+btcchinavol+btceltcvol+finexltcvol
volroc = roc(allvol, 2)

btcusdwma = wma((finex+stamp+btce)/3, wmaperiods)
btccnywma = wma((huobi+btcchina)/2, wmaperiods)
ltcbtcwma = wma((btceltc+finexltc)/2, wmaperiods)
localwma1 = wma(close, 8)
localwma2 = wma(ohlc4, 13)

colorbg = rising(btccnywma, sresponsiveness) and 
    rising(btcusdwma, sresponsiveness) and 
        falling(ltcbtcwma, sresponsiveness) and
            localwma1 >= localwma2 ? 
                green : 
                    falling(btccnywma, sresponsiveness) and 
                        falling(btcusdwma, sresponsiveness) and 
                            rising(ltcbtcwma, sresponsiveness) and
                                localwma2 >= localwma1 ? 
                                    red : black
bgcolor(colorbg, 80)
plot(volroc, title="rocVOL", style=area)
United States
United Kingdom
India
Deutschland
España
France
Italia
Polska
Brasil
Россия
Türkiye
Indonesia
Malaysia
日本
한국
Home Stock Screener Forex Signal Finder 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
Profile Profile Settings Account and Billing Priority Support Ideas Published Followers Following Private Messages Chat Sign Out