OPEN-SOURCE SCRIPT
Updated

Stock to Flow

13 367
this study gives the option to plot the stock to flow
OR the number of blocks per month. (you must edit the code by deleting the //)
it should be used only on the monthly timeframe

idea credited to:
medium.com/@100trillionUSD/modeling-bitcoins-value-with-scarcity-91fa0fc03e25
Release Notes
BTC model price based on Stock to Flow

inspired by: medium.com/@100trillionUSD/modeling-bitcoins-value-with-scarcity-91fa0fc03e25
Release Notes
forgot to offset the ticker data by 1 candle backwards,
fixed it to stock[1]
Release Notes
updated to account for the missing 1,000,000 bitcoins.


I added some conditional statements to change the yearly flow rate according to whether chart time frame is in monthly, weekly or daily.
However, I am unable to debug so it only works accurately on the monthly time frame.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.