Bitcoin Stock to Flow Multiple

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

idea credited to: https://medium.com/@100trillionUSD/model...

my data is a bit off compared to the original source but overall it seems correct
Release Notes: 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.
Remove from Favorite Scripts Add to Favorite Scripts
Thanks for this script!

I published a fixed version of this:

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.
+1 Reply
Great work. One question... what data source are you using to plot BTC price back to 2009?
Amazing work, pls check Plan B’s twitter as he has a solution to the data being a bit off
+4 Reply
Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works Chart Features Pricing House Rules Moderators Website & Broker Solutions Widgets Charting Solutions Get Help Feature Request Blog & News FAQ Wiki Twitter
Profile Profile Settings Account and Billing Get Help Ideas Published Followers Following Private Messages Chat Sign Out