TradingView
yomofoV
20 de Abr de 2019 14:53

Bitcoin Stock to Flow Multiple 

BCHAIN/MKPRUQUANDL

Descrição

this study plots the price of btc over the Stock to Flow Model value

idea credited to: 100trillionUSD

my data is a bit off compared to the original source but overall it seems correct

Notas de Lançamento

updated to account for 1,000,000 lost bitcoins

this script is the bottom indicator in the chart.

It shows price as a multiple of Stock to Flow model value

Code only shows data accurately for Monthly time frame for some reason.
Comentários
Johnnyutahbtc
Amazing work, pls check Plan B’s twitter as he has a solution to the data being a bit off
mexxer
Thanks for this script!

I published a fixed version of this: tradingview.com/script/ysct73Zp-Bitcoin-Stock-to-Flow-Multiple-fixed/

According to pine script documentation you need to use := for variable reassignment + you can't use the security function inside and if statement. I also tried to use a normal string variable like timeframe = 'W' which gets reassigned through an if statement like var and use it in the security function, but you're appearently not allowed to do that either.

So I used the input function, which works.
UnknownUnicorn1165296
Great work. One question... what data source are you using to plot BTC price back to 2009?
Mais