beller

LB_Bitcoin Blockchain Statistics by Beller

SCRIPT PUBLISH -- See you related Idea.
開源腳本

本著真正的TradingView精神,該腳本的作者將其開源發布,以便交易者可以理解和驗證它。為作者喝彩吧!您可以免費使用它,但在出版物中重複使用此代碼受網站規則的約束。 您可以收藏它以在圖表上使用。

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。

想在圖表上使用此腳本?
study("Blockchain Bitcoin Statistics", shorttitle="Blockchain Statistics", precision=0)

//datas
nd = input(true, title="Show Network Deficit")
hr = input(true, title="Show Hash Rate")
mr = input(true, title="Show Miners Revenue")
ct = input(true, title="Show Cost Per Transaction")

//Data showing difference between transaction fees and cost of bitcoin mining.
networkdeficit = security("QUANDL:BCHAIN/NETDF", "D", close) 

//The estimated number of giga hashes per second (billions of hashes per second) the bitcoin network is performing.
hashrate = security("QUANDL:BCHAIN/HRATE", "D", close) 

//Historical data showing (number of bitcoins mined per day + transaction fees) * market price.
minersrevenue = security("QUANDL:BCHAIN/MIREV", "D", close)

//Data showing miners revenue divided by the number of transactions.
cptra = security("QUANDL:BCHAIN/CPTRA", "D", close) 

plot(nd ?networkdeficit:na, color = red, title="Network Deficit",style=area)
plot(hr?hashrate/100:na, color = blue, title="Hash Rate")
plot(mr?minersrevenue:na, color = orange, title="Miners Revenue")
plot(ct?cptra*100000:na, color = purple, title="Cost Per Transaction",style=columns,linewidth=2,transp=70)
hline(0, color=yellow, linestyle=dashed)