TradingView
mexxer
28 mag 2019 05:59

Bitcoin Stock to Flow Multiple (fixed) 

Bitcoin / U.S. dollarBitstamp

Descrizione

This is a fixed version of the original script by yomofoV: tradingview.com/script/I61vWLr0-Bitcoin-Stock-to-Flow-Multiple/

I fixed the variable assignments and added switching of timeframes over indicator inputs.

To switch timeframes click on the indicator, open its settings and switch the timeframe to either monthly, weekly or daily.

Note di rilascio

Update: Thx to the tip from yomofoV the input is not needed anymore. The timeframe now changes automatically with the chart timeframe.

Note di rilascio

I created a seperate S2F Model Value indicator so you are able to put the S2F Multiple and S2F Model Value into two seperate panes.
tradingview.com/script/kZkRkvL9-Bitcoin-Stock-To-Flow-Model-Value-fixed/
Commenti
GiorgosKG
it does not apear right. it just prints a straight green and red line . any fix?
Nodial
@GiorgosKG, it happened to me too. Open the RSI Indicator, it creates the frame below the price that probably this indicator misses, then click on the S2F indicator and drag and drop it into the RSI canvas, once done you see both RSI and S2F in the same canvas, hide the RSI chart and you'll be able to see this indicator alone.
Scottman72
Why does the model value current suggest 65k rather than closer to 100k?
Bender_bb
Thanks!

"Release Notes: I created a seperate S2F Model Value indicator so you are able to put the S2F Multiple and S2F Model Value into two seperate panes. "

How do we find this one?

And the main indicator itself I can't get to display on the chart for some reason.
mexxer
@Bender_bb, click on the chart right underneath that sentence you quoted :) TradingView converts links to charts
Or on your chart just click on indicators and search for "Bitcoin Stock to Flow Model Value"

What timeframe do you have selected?
Keep in mind that the indicator only works on monthly, weekly and daily timeframes.
Bender_bb
@mexxer, Thanks :)
UnknownUnicorn1165296
Hi great work, thanks for doing this. Is there a data series in trading view that would let me chart this back to 2009?
mexxer
@Degoon, thx!

Not sure there is. The best I could find is the BLX (Brave New Coin Liquid Index for Bitcoin) which dates back to July 2010
yomofoV
*****try substituting the code below into your script, it should give the correct values without having to manually adjust indicator settings
*****it does not need the timeFrame variable. previously, I had a bunch of excess code specifying the time frame because I couldn't figure out why my data values were coming out wrong. it was the := syntax for reassigning a variable.


stock = security("QUANDL:BCHAIN/TOTBC", period, close)

btcprice = security("QUANDL:BCHAIN/MKPRU", period, close)
mexxer
@yomofoV, oh cool! Thx for the tip. I missed that.
Altro