TradingView
kishin
29 Mar 2019 pukul 11.49

NVT Signal with RMA and thresholds [alertable] 

Bitcoin / United States DollarCoinbase

Deskripsi

NVT Signal, or NVTS, is an indicator that compares the market cap of Bitcoin to the aggregate USD value of daily transactions on the Bitcoin blockchain. It is a value indicator that shows a multiple of Bitcoin price against the actual usage of its blockchain. When the NVTS is low, it suggests Bitcoin price is low relative to the amount of utility the network provides, and vice versa.


For more information on NVTS, visit medium.com/cryptolab/https-medium-com-kalichkin-rethinking-nvt-ratio-2cf810df0ab0

This indicator aims to provide the following:
1. An open-source implementation of NVTS on Tradingview, as the most popular one currently is closed-source.
2. To provide two simple ways to define and visualize "overbought" or "oversold" conditions using the NVTS. Here, we have absolute value of NVTS & deviation from a long-term moving average.
3. Crude integration into Tradingview's alert system.

What this indicator CANNOT do:
1. Timeframes below 1d.
2. Signals based on statistical analyses, such as seen in Bollinger Bands et al. (However, with the appropriate type of account, you can add BBands on top of this indicator.)

I would like to express my gratitude to Willy Woo, Chris Burniske and Dimitry Kalichkin for their work on NVT Ratio and NVT Signal, without which my indicator would not have been created.

Feel free to fork & improve, or experiment with settings. I hope this indicator will be useful to someone.
Komentar
nilux
great job buddy! here is the strategy with backtest date range and trailing stop / stop loss: tradingview.com/script/B0UQX9Mf-NVT-Signal-with-RMA-and-Thresholds-Strategy-Backtest/
kishin
@nilux, thanks for the backtest!
PetrSislak
@nilux, what app is this? I like the visualization of trades. Thanks
Kilth
nice, ty. i think it's really great that you choose to show code! bravo

KondrackiKarl
@Kilth, +1
tietokone
Lines have been flat over 2 months. This has not happened before. Is there something wrong with this indicatori?
gmeneguzzo
Thank you for sharing the code , very helpful !. Please can you explain why it cannot work under Daily timeframe ? Or can I simply change this section

etrvu = security("QUANDL:BCHAIN/ETRVU","D",close)
etrvu_ma90 = security("QUANDL:BCHAIN/ETRVU","D",ma90)
mktcp = security("QUANDL:BCHAIN/MKTCP","D",close)

with 1H ?
d14b0ll0s
There's a big difference between the NVT Signal posted on Woo's website and your indicator. Do you see any reason why that might be?
kishin
@d14b0ll0s,
Thanks for pointing that out. It seems that Woo has changed something about how the NVT Signal indicator is calculated since I published this script.

This script adheres to the original NVT Signal, which is explained in Woo's article here:
woobull.com/nvt-signal-a-new-trading-indicator-to-pick-tops-and-bottoms/

Back then, his interpretation was a somewhat naive "Over 150 = overbought, under 45 = oversold," of which overbought conditions are highlighted with a red background in my script.
My script further attempted to implement a "deviation from mean" component, by highlighting values with a deviation above the user-set threshold MA in white.

Maybe Woo simply changed his data supplier for onchain activity, but unfortunately I hadn't noticed.
Interpreting blockchain activity is not simple, since you want to exclude "change" outputs - but there is no surefire way of telling which outputs are spends, which are change outputs, and which are between wallets controlled by the same entity.
This hypothesis is supported by the rough shape of the signals matching, although there are some noticeable deviations.

I'm not a fan of cherry picking data sources to curve-fit an indicator, but either way I'm afraid QUANDL:BCHAIN/ETRVU is the only way I know of to use daily blockchain activity in TV scripts.
Thanks again for bringing this to my attention.

Tl;dr - you can keep using this indicator, which is essentially the OG NVT Signal, though you will have slight divergences from Woo's current implementation, due to different data sources being used.
d14b0ll0s
@kishin, Many thanks for the detailed explanation. It's a bit strange if Woo decided to change the calculation just now, when the original calculation is screaming ATH on NVT-S (unless it's a problem with data supplier, as you said). Other than that, I like how RMA on NVTS can be used to track change reversal thanks to your implementation (I've played around with the visual side in Pine at my end without changing anything in your calculations and variables, but trying out different MAs or stdev might give interesting results too, so let's keep in touch about this). Meanwhile, keep up the good work.
Lebih lanjut