AtenA

BTCOMPASS

Just changed its graphic style for a more intuitive representation. For the old one, follow:
Remove from Favorite Scripts Add to Favorite Scripts
study("BTCOMPASS", precision=1)
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 ? 
                                    orange : silver

plot(volroc, title="rocVOL", style=columns, color = colorbg, linewidth=3)
Thanks! I like your new one better than the old. The signal is visually clearer.
+1 Reply
AtenA ChartArt
Try it on 2hr and 4hr at the same time.
Reply
How can I do that without opening another TradingView window? Or you do mean to change the periods of your indicator?
Reply
AtenA ChartArt
I can see that you are a pro, so i supposed that you can open a double frame chart. On 2hr and 4hr seems to be fine the 5,2 setting, but you can try to test other combinations. I suggest you to add even an atr, so you can exit on the mean move and re enter on a new signal.
Reply
AtenA ChartArt
on the bottom left of the chart view there is a gray square...you should be able to choose the multiple chart view from there.
Reply
English
English (UK)
English (IN)
Deutsch
Français
Español
Italiano
Polski
Türkçe
Русский
Português
Bahasa Indonesia
Bahasa Melayu
ภาษาไทย
Tiếng Việt
日本語
한국어
简体
台灣
Home Stock Screener Forex Signal Finder Cryptocurrency Signal Finder 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