AtenA

BTCOMPASS

Sorry, this is the right link:
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)
EN English
EN English (UK)
EN English (IN)
DE Deutsch
FR Français
ES Español
IT Italiano
PL Polski
SV Svenska
TR Türkçe
RU Русский
PT Português
ID Bahasa Indonesia
MS Bahasa Melayu
TH ภาษาไทย
VI Tiếng Việt
JA 日本語
KO 한국어
ZH 简体中文
ZH 繁體中文
AR العربية
HE עברית
Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing My Support Tickets Contact Support Ideas Published Followers Following Private Messages Chat Sign Out