Blockchain Fundamentals: Electricity Cost of BTC [CR] Blockchain Fundamentals: Electricity Cost of BTC
After a hiatus, now a return to publishing tools and scripts for the community. This is my first script in over and year, and I have a number more coming soon as well! (so Stay Tuned!)
This is a simple calculator to estimate the cost of Bitcoin miners to mine one bitcoin. It works on all timeframes (doesnt have to be on daily).
By entering the inputs of total TH's, kWh used, cost of electricity per kWh (in USD cents) we can generate the electricity cost.
But miners also have other costs of operation including HVAC, maintenance, rent, etc. In light of that we include a multiplier that accounts for these extra costs. First, type in what percent of your total operating costs come from the electricity. Then check the enable total cost plot option and you will also see total costs in addition to electricity costs.
Its a simple model and gives anyone curious a starting point for their own testing and research.
القيمة
Close Combination Lock Style - Visual AppealThis creates a combination style closing price change on each tick.
It has two theme options, one as silver dials for Dark Theme and the other as black dials for White Theme.
We get fixated to watching closing prices on charts and it gets visually daunting. This creates a combination style price change which updates on each tick, which is quite pleasing to the eye.
When new price is above current center line, it shift the above prices showing ▲ arrow, and if new price is lower, it will shift the bottom prices showing ▼ arrow. If there is no change in price between the ticks, it will show =.
Financial Intelligent Eval [Fundamental] (MYTRIC)█ OVERVIEW
Financial Algorithm is a system to quickly understanding company fundamental, and judge the company type based on their financial condition.
All evaluation from the system is the result of combination with Balancing Calculation and Company Historical Financial Data(Financial Report) by using over than 30 financial ratios.
This indicator are classified into 5 level (Very Weak, Weak, Moderate, Good, Excellent)
Advantages of Financial Algorithm
• By combining and calculating company's latest 4 quarterly report, provide rating to help investor quickly know about company's fundamentals and financial performance.
• Able to identify company have what kind of strength, weakness, chance and threat. For instance, according to current economic situation, is it an advantages or a threat for a company, investor can identify it via Financial Algorithm.
• Able to identify which company have better business management by keep following the company rating, observe the improvement level of company's.
Application
*When notice there are not improvement on a company's fundamentals or financial performance which is profitable without further developing, it usually reveals the lack of management capability to generate more value, company unable to fully utilise its profit, reinvest and expanding its business to become more competitive. Sometimes this kind of company may be suspected accounting fraud.
█ BENEFITS
• Avoid investing in companies suspected of financial fraud.
• To quickly understanding company's fundamental and financial structure.
• Able to analyze whether the company build profit after it is used to optimize the company's internal
█ FEATURES
You can configure the following attributes of the display:
• Table position on your chart.
• The size and colour of text.
• Language between English and Chinese.
• Rating bar chart colour.
• On / Off Statement Review Helper Function
• On / Off 3 Years Evaluation Function
• On / Off Basic Information
• Full descriptions of each evaluation and content are included in the settings
█ LIMITATIONS
• When changing the indicator's inputs, allow around 20 seconds calculation for the change to be reflected in the display.
• This system only able to evaluate non-financial industry.
• This system is based on company's historical financial report data to generate the results and rating, it does not includes prediction from any external factor.
(External Factor: Business Model, Business Distribution & Geography, Corporate Structure, Competitor and Peer company's, Prospect, Costing Breakdown, Disaster and etc)
• Any results calculated by this system all is based on data provided by Tradingview, Data may have some tolerance, we recommend that users pay attention to the official quarterly/annual report.
█ FINANCIALS INTELLIGENT ALGORITHM FUNCTION
This lists all combination calculate financials.
01. Total Revenue
02. Earnings before interest and tax
03. Net Income
04. Property, Plant, and Equipment
05. Total Receivables
06. Cash and short-term Investments
07. Cash & Cash equivalents
08. Total Liability
09. Working Capital
10. Total Debt
11. Total Equity
12. Retained Earnings
13. Total Asset
14. Cash From Operating Activities
15. Income before extraordinary items
16. Total depreciation and amortization
17. Free Cash Flow
18. Altman Z-score
19. Cash to Debt Ratio
20. Current Ratio
21. Debt to Assets Ratio
22. Debt to Equity ratio
23. EBITDA Margin
24. Free Cash Flow Margin
25. Grahams Number
26. Net Margin
27. Price Book Ratio
28. Piotroski-F Score
29. Quick Ratio
30. Return on Assets
31. Return on Equity
32. Return on Invested Capital
33. Float Shares Outstanding
34. Total Common Shares Outstanding
35. Cash to Revenue
36. Cash to Market Capital
37. Cash to Debt
38. Receivable Turnover
39. Quality of Earning
40. Market Capital
8 financial evaluation :
3 years financial evaluation tracking :
Statement Review Helper :
█ HOW TO MAKE THE RIGHT INVESMENT OR TREND TRADING DECISION BASED ON OUR EVALUATION
Avoid mid/long term invest in companies with poor financial evaluation, only suite for trend trading. The below following assessments need to be focused.
• Comprehensive rating is poor or below.
• Quality of Earning is very poor or below.
• Receivability is very poor or below (Total Receivable is too high)
• Before : Poor Financial Strength with revenue growth
• After : The price dropped by about -80% within 2 months
███████████████████████████████████████████████████████████████████████████████████████████
• Before : Poor Financial Strength with revenue growth
• After : The price dropped by about -90% within 1 year
███████████████████████████████████████████████████████████████████████████████████████████
• Before : Excellent Financial Strength
• After : Steady growth
Steady growth
• Conclusion :
Do not judge it as a good company just because it has continuous income.
When we analyze the company's financial report, we should not only look at the company's revenue,
we should pay more attention to the company's finances and weaknesses.
Only companies with strong financial strength that can expand their business in a stable manner.
Disclaimer :
*The following conclusion are purely based on my personal opinions and views, it’s only for study and research, without any trading and investment advice.
Outlier Detector with N-Sigma Confidence IntervalsA detrended series that oscilates around zero is obtained after first differencing a time series (i.e. subtracting the closing price for a candle from the one immediately before, for example). Hypothetically, assuming that every detrended closing price is independent of each other (what might not be true!), these values will follow a normal distribution with mean zero and unknown variance sigma squared (assuming equal variance, what is also probably not true as volatility changes over time for different pairs). After studentizing, they follow a Student's t-distribution, but as the sample size increases (back periods > 30, at least), they follow a standard normal distribution.
This script was developed for personal use and the idea is spotting candles that are at least 99% bigger than average (using N = 3) as they will cross the upper and lower confidence interval limits. N = 2 would roughly provide a 95% confidence interval.
Stock Value Display//This study is designed to plot estimates for a stock's value:
//1) the Price to earnings ratio (PE) value based on the trailing twelve months of data
//2) the PE value based future data
//3) the Benjamin Graham value based trailing data
//4) the Dividend Discount value based on trailing data
You can adjust the period of data used to calculate the value between Fiscal Quarter "FQ" and Fiscal Year "FY."
The values displayed on the chart are subject to the financial information provided to TradingView. This is intended to be used as a quick reference and should be viewed in context with other analysis prior to making any transaction decisions.
As always, happy trading!
Compound Value @ annual rateBy studying historical data we can know the compounded growth rate of an investment from the inception date. For example if we know that an investment has grown at the rate of 6% in the past and if we expect similar growth in the future also, We can plot this graph to understand whether the current price is underpriced or overpriced as per projected return.
In this graph, it takes the initial close price as a principle and rate from the input and calculates the compound amount at each interval.
Intrinsic value calculation Intrinsic value calculator based on Warren Buffet's and Ben Graham's work
In value investing determing the true value of a COMPANY instead of a stock price is crucial.
This little indicator shows the "Intrinsic value" of the choosen stock meaning the value of the stock in 10 years time. Calculation is based on historical book value's average annual growth rate and dividends paid.
Since this is about long therm investing, use monthly charts.
"Intrinsic value can be defined simply: It is the discounted value of the cash that can be taken out of a business during its remaining life.”
– Warren Buffett
One way to calculate that is by the growth in per share book value and dividends taken in the forseeable future (10 years) than discount it with the prevailing 10 year note's rate.
In the inputs you have to set 2 variables:
1. How many years back you have the first data for book value per share available?
2. What was the per share book value that year?
(Bookvalue is ploted in olive colour and you can get the oldest one if you move your cursor over the latest data on the left)
CAUTION! You have to reenter it for every stock you analyse as this is stock-specific data!
After setting the input data, you will see the "Intrinsic Value"'s pink curve ploted over the price chart.
If the price is well below the pink line, the company is undervalued and can be a possible applicant for long therm investment.
Margin of safety: when the current price is 50% below the intrinsic value that means a 10% yearly growth potential (100% growth in 10 years) or a 100% margin of safety.
I am a beginer in Pine so please excuse my coding...
If anybody knows hot to extract historical data from 15 years ago, please share it with me, so I can automate the whole calculation without inputs necessary.
Metcalfes Law - Bitcoin Fair PriceMetcalfe's Law has been successfully used to value a variety of network effect technologies and businesses, including Facebook and Tencent.
Applying Metcalfe's Law to Bitcoin, using "Daily Active Addresses" (DAA) as the "n" value, yields interesting results.
Historically, Bitcoin has tracked the Metcalfe Law Fair Price reasonably well. A number of studies have been performed over recent years which validate this and have used various derivations of Metcalfe’s Law. Note: this indicator sticks to the original Metcalf’s Law.
Prior to 2018, every time Bitcoin was above the Metcalfe’s Law fair price (calculated using a default “A” of 0.5 here), a bubble had formed, and price quickly reverted back down to the mean.
Nonetheless, since February 2018, Metcalfe's Law Fair Price has remained below the actual Bitcoin price, suggesting Bitcoin is currently overvalued.
There may be a few reasons for this:
1. Possibility A: Bitcoin may still be extremely overvalued. Since the December 2017 peak, Bitcoin has only reverted to the Metcalfe’s Law Fair Price briefly during the December 2018 bottom. If this case is true, there could be further to fall unless DAA numbers pick up to fill the gap.
2. Possibility B: The introduction of side-chains, private transactions and the Lightning Network may have fundamentally altered the effectiveness of using DAA to value Bitcoin. As more daily transactions are completed off-chain, or on large platforms/exchanges which use fewer addresses, the relative number and growth of DAA may be misrepresented and artificially low. In this case, DAA as it is reported today is no longer useful in assessing the fair value of Bitcoin with Metcalfe’s Law and this Indicator is effectively useless.
3. Possibility C: Neither of the above are true. We are just in an anomalous period in which price and Metcalfe’s Law Fair Price have deviated from the mean for an extended period (and will meet again in the future, potentially at a higher price).
4. Possibility D: Metcalfe’s Law doesn’t really work for Bitcoin.
I am inclined to believe Possibilities “C” and “D” are unlikely. Given the way Bitcoin infrastructure is being developed and used in 2019, Possibility “B” seems the most likely, as this case is supported by the fact that a number of other metrics indicate that Bitcoin is currently on the lower side of “fair value” (including Dynamic Range NVT Signal).
Regardless, Possibility “A” remains a strong candidate. Only time will tell. It will be interesting to check back on this indicator in 12-24 months time. Hopefully this indicator has been proven redundant by then.
Volume ValueInstead of the Volume this plots the closure price times volume, hence the Value.
Useful in study of long term phenomenons.
Current Price Label by Westy_A simple Indicator to display the current price of the asset above the current bar. It shows a green label if the close is equal or greater than the open, red otherwise.
NVT Signal with RMA and thresholds [alertable]NVT Signal, or NVTS, is an indicator that compares the market cap of Bitcoin to the aggregate USD value of daily transactions on the Bitcoin blockchain. It is a value indicator that shows a multiple of Bitcoin price against the actual usage of its blockchain. When the NVTS is low, it suggests Bitcoin price is low relative to the amount of utility the network provides, and vice versa.
For more information on NVTS, visit medium.com
This indicator aims to provide the following:
1. An open-source implementation of NVTS on Tradingview, as the most popular one currently is closed-source.
2. To provide two simple ways to define and visualize "overbought" or "oversold" conditions using the NVTS. Here, we have absolute value of NVTS & deviation from a long-term moving average.
3. Crude integration into Tradingview's alert system.
What this indicator CANNOT do:
1. Timeframes below 1d.
2. Signals based on statistical analyses, such as seen in Bollinger Bands et al. (However, with the appropriate type of account, you can add BBands on top of this indicator.)
I would like to express my gratitude to Willy Woo, Chris Burniske and Dimitry Kalichkin for their work on NVT Ratio and NVT Signal, without which my indicator would not have been created.
Feel free to fork & improve, or experiment with settings. I hope this indicator will be useful to someone.
BitMEX ETHUSD contract value (USD)The ETHUSD Quanto Swap contract on BitMEX allows you to trade ETHUSD with Bitcoin put forward as collateral. However this means that 1 contract is not equal to 1 USD or 1 ETH, but instead varies according to the price of ETHUSD.
You can see the contract specs here www.bitmex.com and find more information here blog.bitmex.com
My advice is always to make sure you fully understand a derivative product before you trade it, however many of us may not have the acumen to actually understand how a quanto swap works. Nevertheless, we have to be aware that the value in USD of each contract depends on the price of Ethereum and also the price of Bitcoin at each point in time.
This tool will show you the value of a single ETHUSD contract in USD, but it solely for indicative purposes only. Your trade, your risk. I do not ask for any donations from your gains and I am not liable for any of your losses.
Source code is provided.
Note in the example image that the price of ETHUSD is plotted on a logarithmic scale but the indicative contract value is linear.
Chiki-Poki BFXLS Longs Shorts Abs Normalized Volume Pro by RRBChiki-Poki BFXLS Longs vs Shorts Absolute Normalized Volume Value Pro by RagingRocketBull 2018
Version 1.0
This indicator displays Longs vs Shorts in a side by side graph, shows volume's absolute price value and normalized volume of Longs/Shorts for the current asset. This allows for more accurate L/S comparisons (like a log scale for volume) since volume on spot exchanges (Bitstamp, Bitfinex, Coinbase etc) is measured in coins traded, not USD traded. Similarly, L/S is usually the amount of coins in open L/S positions, not their total USD value. On Bitmex and other futures exchanges volume is measured in USD traded, so you don't need to apply the Volume Absolute Price Value checkbox to compare L/S. You should always check first whether your source is measured in coins or USD.
Chiki-Poki BFXLS primarily uses *SHORTS/LONGS feeds from Bitfinex for the current crypto asset, but you can specify custom L/S source tickers instead.
This 2-in-1 works both in the Main Chart and in the indicator pane below. You can switch between Main/Sub Window panes using RMB on the indicator's name and selecting Move To/Pane Above/Below.
This indicator doesn't use volume of the current asset. It uses L/S ticker's OHLC as a source for SHORTS/LONGS volumes instead. Essentially L/S => L/S Volume == L/S
Features:
- Display Longs vs Shorts side by side graph for the current crypto asset, i.e. for BTCUSD - BTCUSDLONGS/BTCUSDSHORTS, for ETHUSD - ETHUSDLONGS/ETHUSDSHORTS etc.
- Use custom OHLC ticker sources for Longs/Shorts from different exchanges/crypto assets with/without exchange prefix.
- Plot Longs/Shorts as lines or candles
- Show/Hide L/S, Diff, MAs, ATH/ATL
- Use Longs/Shorts Volume Absolute Price Value (Price * L/S Volume) instead of Coins Traded in open L/S positions to compare total L/S value/capitalization
- Normalize L/S Volume using Price / Price MA / L/S Volume MA
- Supports any existing type of MA: SMA, EMA, WMA, HMA etc
- Volume Absolute Price Value / Normalize also works on candles
- Oscillator mode with negative axis (works in both Main Chart/Subwindow panes).
- Highlight L/S Volume spikes above L/S MAs in both lines/oscillator.
- Change L/S MA color based on a number of last rising/falling L/S bars, colorize candles
- Display L/S volume as 1000s, mlns, or blns using alpha multiplier
1. based on BFXLS Longs vs Shorts and Compare Style, uses plot*, security and custom hma functions
2. swma has a fixed length = 4, alma and linreg have additional offset and smoothing params
Notes:
- Make sure that Left Price Scale shows up with Auto Fit Data enabled. You can reattach indicator to a different scale in Style.
- It is not recommended to switch modes multiple times due to TradingView's scale reattachment bugs. You should switch between Main Chart and Sub Window only once.
- When the USD price of an asset is lower you can trade more coins but capitalization value won't be as significant as when there are less coins for a higher price. Same goes for Shorts/Longs.
Current ATH in shorts doesn't trigger a squeeze because its total value is now far less than before and we are in a bear market where it's normal to have a higher number of shorts.
- You should always subtract Hedged L/S from L/S because hedged positions are temporary - used to preserve the value of the main position in the opposite direction and should be disregarded as such.
- Low margin rates increase the probability of a move in an underlying direction because it is cheaper. High margin rates => the market is anticipating a move in this direction, thus a more expensive rate. Sudden 5-10x rate raises imply a possible reversal soon. high - 0.1%, avg - 0.01-0.02%, low - 0.001-0.005%
You can also check out:
- BFXLS Longs/Shorts on BFXData
- Bitfinex L/S margin rates and Hedged L/S on datamish
- Bitmex L/S on Coinfarm.online
Session min/max pointsMinimum and maximum points in a day trading session. It may help you spot the range which min and max occur in a session.
In day trading, for example, at securities like GBPNZD, minimum happens between 02:00-05:00 ET and maximum between 08:00-14:00 ET. This indicator can help you test this hypothesis.
Happy trading!
Function - Integral PriceFunction to convert floating numeric price to its *integral* value, ex: 1.2345 --> 12345.
integral might not be the right name, so pardon my engrish :p.
Rate Of Change - Absolute ValueMeasures the period's change in terms of the instrument's value (e.g. pip, dollar, etc) instead of as a percentage. I generally use it on a daily time frame with a period=1 to see how the current day's move compares with prior days' moves in order to gain a perspective into how this move ranks historically.
Simple Horizontal Value and Offsets [Auto Shift]Original (Simple Horizontal Value and Offsets/SHV) Requested by @TAFA94
Description:
Simple adjustable incremented horizontal offset lines extending up and down from a Median point.
Set full value for manual Median point control, or set an incremental rounding value for auto Median adjustment.
Source and look-back period inputs for fine tuning auto adjust.
Auto adjust on by default - can be toggled off for straight manual control.
**NOTE**
All values will likely need to be changed immediately on applying this script, in order to properly fit your charts specific price/value range and/or time resolution.
Cheers!
Simple Horizontal Value and OffsetsRequested by @TAFA94
Simple horizontal values extending up and down from a median value.
Set Median Value, and set offset values. Simples!
UCS_Extreme Snap Back (TVI)I am calling it a SNAP BACK indicator.
Utilizing the TVI (Transactional Value Index - Link below for indicator / setups)
You can pretty much guess when any instrument could slow down, last stand in a pullback and the last few candles before losing its strong trend.
It varies per person, a short term trader can use this, Long term traders can hedge with options.
A great tool for my trading. Thought I will share this.
This utilizes TVI indicator, currently the TVI is manipulated manually, I have automated a version for future release.
Embrace trading - keep the money flowing.
UCSgears_Transaction Valuation IndexHere is the Version 2 of the TVI indicator posted earlier.
This is inspired from the Value Charts Indicator.
Version 1
Value Chart [TMC]*** April 20, 2015 - NEW UPDATE ***
Added classic color scheme and additional lines. Updated source: pastebin.com
April 10, 2015 - Updated version of Value Chart - candles draw correctly now.
Requires cover layer to be set as same color as your background. (white in default)
I hope you will enjoy it. :)
UCS_Transactional Valuation Index-Version 2Version 1 -
Updates include
Better Optimization on the levels.
Plotting only the important Highs and Lows
The extremes can be an important pivot levels.
Over and Undervalue - Gray (Column - close) (Histogram - High/Low)
Extreme conditions - Red
Extreme Alerts and Overlay will be added later.
UCSgears_Transaction Valuation IndexThis is an indicator, That works great in a wip-saw market range. Would not use this to trade in a breakout.
I am calling it the "Transaction Value Index (UCS_TVI)", The reason is because, it measure where the price currently from the mean trade value.
The cross represents the highest trade value on that day, circle represents the lowest trade value.
In other words, Top and bottom of the candle wicks, in relation to the mean trade value (MTV).
Watchout for Further Updates on Optimizing this indicator.
DO NOT CONFUSE IT WITH FUNDAMENTAL VALUATION, THIS IS PURELY TECHNICAL VALUATION TECHNIQUE
As Usual, Good Luck
List of All my Indicators - www.tradingview.com