AtenA

BTCOMPASS

Just changed its graphic style for a more intuitive representation. For the old one, follow:
BTCOMPASS
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)
ChartArt
2 years ago
Thanks! I like your new one better than the old. The signal is visually clearer.
+1 Reply
AtenA ChartArt
2 years ago
Try it on 2hr and 4hr at the same time.
Reply
ChartArt AtenA
2 years ago
How can I do that without opening another TradingView window? Or you do mean to change the periods of your indicator?
Reply
AtenA ChartArt
2 years ago
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
2 years ago
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
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