Swing School MetricsI wrote this script to give me a few metrics I follow and to quickly identify if they have the strength and momentum I am looking for. The metrics are used by StockBee and Qullamaggie to distinguish fast moving stocks gaining momentum.
The measures are:
Average Daily Range similar to TradingView's Monthly Volatility is above 5%
Intermediate moving average is above long term or short term is over intermediate term
Trend Intensity above 1.05 calculated by (SMA7/SMA65)
Recent ER Beat
Recent Sales Beat
I also list the market cap, average daily dollar volume, and float to give an idea of liquidity and tradability.
基本面分析
Discounted Price ProbabilityHere is an attempt to understand the probability of discounted price of a stock by comparing it to historical price and fundamental correlation. Have made use of some of the new features of pine in developing this script (Such as matrix and new features of tables such as cell merge and tooltip).
Script makes use of the library written on matrix matrix
🎲 Process
Probability is measured in two angles
🎯 Absolute : Measure the percentile of price and fundamentals with respect to all time high. The difference between the two is measure of probability of stock being undervalued.
🎯 Drawdown : Measure the percentile of distance from all time high for both price and fundamentals. The difference between the two is used for depicting the probability of stock being undervalued.
🎲 Components
In short, the definitions of stats presented are as below
🎲 Settings
Settings are pretty straightforward
🎲 How to look at these stats
To Start with
Are most of the fundamental values coloured in green? If yes, it means that they are near all time high in terms of percentile.
If drawdowns of fundamental values coloured in green? If yes, it means, the stock has not suffered much drawdowns of fundamentals from its peak.
Are the percentile values of drawdowns in green? If yes, it means, that drop in fundamentals are not high compared to its previous values.
If all the above are greener, then it means, company is in strong growth space.
Example: TSLA
Even though the financial ratios of TSLA are not in par with most of the fundamentally strong stocks, it is indeed growing steadily and at its near all time high.
Lets take another example of NKLA
Here the base columns regarding fundamentals are mostly red. This means, company has suffered setback with respect to their financials and the company is not where it used to be. But, if you see the differential probabilities, it says 92% of being undervalued?
Well, this is due to the fact that NKLA's fundamentals suffered most of the time and they are always below par when compared to price. Hence, such kind of cases may interpret the stocks as undervalued. Hence, even if the probability of being undervalued is more, it does not guarantee the quality of the stock. We need to be mindful overall financials of the company and how they fare with general standards.
Moving forward
To understand value of trending stock, use Absolute Probability (marked with P). Ex. GOOG, MSFT, BRK.B etc.
To understand value of stock which has been recently suffered huge price drop, look at drawdown based probability (marked with D). Ex. BABA, FB, PYPL, SQ, ROKU etc.
Some examples of high flyers:
Some for deep pullbacks:
And the meme stocks:
Key Financials A simple table with up to 9 key financials on your chart.
Simple, easy and configurable.
Stock InfoThis Indicator shows information about selected stock.
For a trader is important to know some information before enter in the market.
This indicator will show these informations like Market Capitalization, Outstanding Shares, Float, IO (Institutional Ownership and Insider Ownership) to help traders to analyse the situation about the chart graph and the some fundamentals information.
The Market Capitalization is calculated by Outstanding Shares Quaterly / Stock last close price.
Outstanding Shares are obtained quaterly by TradingView.
Float is obtained annualy by TradingView.
IO (Institutional Ownership and Insider Ownership) is calculated by ratio between Outstanding Shares and Float.
CanslimHey folks, I hope you are doing well!
I made a simple script to determine if a company met the CANSLIM criteria. Some of the criteria are not quantifiable so I left those in olive (you have to do research on those). The rest are quantifiable, which include earnings growth, whether it's a laggard, etc.
CANSLIM is a system developed by William O'Neil for selecting growth stocks by using a combination of fundamental and technical analysis techniques. The stocks that meets the criteria are usually outperformers and return really high gains.
C: Current eps have increased sharply from the same quarter in the prior year. Generally, investors using CANSLIM want EPS growth of over 20%, but the higher the better.
A: Annual earnings increases over the last three (some people use 5 but I prefer 3) years. Annual EPS growth should ideally be in excess of 20% over the last three years.
N: New products, management, or positive new events that push the company's stock to new highs. This type of headline news can cause short-term excitement, propelling a surge of optimism within the market and subsequent. This is also known as a catalyst.
S: Scarce supply coupled with a strong appetite for a stock creates excess demand and an environment in which share prices can soar. Generally, company buying back their own shares, reducing market supply and can indicate an expectation of increased demand along with insider confidence in the firm.
L: Laggard stocks are preferred within the same industry. We can use the RSI to determine whether the company is a laggard or not. An RSI reading below 30 suggests that the stock is oversold and could be undervalued—creating a buying opportunity (bullish). An RSI reading of above 70 signifies that a stock could be overbought or overvalued and could be a chance to sell (bearish). Some people prefer to use "Leader" for the L instead of "Laggard" and I personally think it's a good idea to use both. "Leader" suggests that a stock is a leader in its industry or sector
I: Institutions own the stock (mainly recent above-average performing institutions). For example, this could be a recently public company, still supported by a small handful of well-known private equity firms. Be cautious of stocks that are over-owned by institutions as you want to get in before the big money is fully invested.
M: Market average measures the overall price level of a given market, as defined by a specified group of stocks, such as the Dow Jones Industrial Average. CANSLIM stocks tend to be over-performers in bull markets. Determine the market direction for this one.
The colors:
Green = good
Blue = Neutral/Mediocre
Red = bad
Olive = none/requires own research
BTC HASHRATE DROP: OnchainWhy is the drop of hashrate important?
Drop of hashrate usually occurs because some miners in the mining network stop for working. There are several possible reasons for this. Such as new anti-mining regulations in some countries or a sharp drop in the price of bitcoin, which makes mining no longer affordable for some miners. So they turn off their devices
This reduces the supply of bitcoin in the market and according to the law of supply and demand can eventually lead to an increase in the price of bitcoin.
This oscillator is designed to detect hashrate drop. for this, we use the data of glassnode . Maroon color indicates decrease in hashrate and Red color indicates excessive hash rate drop. As can be seen on the chart, usually after this drop, we see an increase in the price of bitcoin
Earnings Price Move Cheat Sheet [KT]Hello!
This script looks to distinguish replicable sequences and correlations between earnings releases and price. The indicator calculates the average 1-session to 20-session performance of an asset prior to an earnings release, and the 1-session to 20-session performance of an asset subsequent an earnings release.
You can select the number of sessions the script calculates for asset performance.
In the image above the script calculates the average 1-session performance following an earnings surprise, earnings miss, and in general. 20 sessions is the maximum value!
Also measured is the average performance of an asset before and after earnings, in addition to the average performance following an earnings surprise "green earnings" and the average performance following an earnings miss "red earnings".
I included VaR and CVaR calculations - using the historical method - in the script. For those of you unfamiliar with the metrics, both look to quantify the risk of financial loss for a portfolio, or even a particular position.
The script also calculates the 1st - 5th percentile for earnings losses. A more comprehensive explanation of the metrics is stored in tooltips in the user input tab.
The script also calculates the highest high and lowest low following an earnings release, up to 20 sessions, and calculates the difference between the two.
Keep in mind that a company might not have a significant number of earnings misses, or may have only traded publicly for a short while. If true, the resulting earnings/price calculations *will* be misleading - there is an insufficient sample size; no correlations are ascertainable.
I will be working on this script more, so let me know if there is anything you would like included!
Valuation TableHey folks, I hope you are all doing well!
This is an indicator that you can use to help you to evaluate companies. There are a few things I added to the valuation table that I personally use and I will explain what they are.
I added Joel Greenblatt's ROC% because it takes Earnings before Interest and Taxes to reflect more closely what the company earns from its operations, while including the cost of depreciation/amortization of assets. A high double digit figure often means that the company has a defensible edge versus its competitors (e.g. a strong brand or a unique product). It's good for relative valuation (comparing two companies in the same industry).
I also added Donald Yacktman's forward rate of return. Yacktman defines forward rate of return as the normalized free cash flow yield plus real growth plus inflation . Unlike the Earnings Yield %, the Forward Rate of Return uses the normalized Free Cash Flow of the past seven years, and considers growth. The forward rate of return can be thought of as the return that investors buying the stock today can expect from it in the future. Yacktman’s Forward Rate of Return may or may not be a useful metric. However, it does present new ways to see and think about stocks we may want to buy.
I added a box called "real price" and that is from Peter Lynch's book, "One Up on Wall Street," where he talked about how the real price of the stock is really the current price - Net Cash Per Share.
I would also personally pair this script with TradingView's built in financial indicators that shows the revenue growth, net income, etc.
Note: the script only works on the weekly timeframe and it will take some time to load because it has a lot of data.
VIX Strategy : Risk-ON, Risk-OFF
VRatio is the ratio of VIX3M and VIX. This ratio rises above 1.1; in a bear market, it decreases and goes below 1. VRatio=VIX3M/VIX. More details in Part 2.
VRatio > 1: Risk-On signal
Contango is the ratio of VX2 (first back-month contract) and VX1 (front-month contract) minus one. In a bull market, this indicator rises above 5%’ in a downtrend market, this indicator goes below -5%. More details in Part 2.
Contango > -5%: Risk-On signal
Contango Roll is the ratio of VX2 first back-month contract) and the VIX minus one. In a bull market, this indicator rises above 10%’ in a downtrend market, this indicator goes below -10%. More details in Part 2.
Contango Roll > 10%: Risk-On signal
Volatility Risk Premium (VRP) compares the implied volatility to the recent realized volatility; it attempts to quantify how much “extra” premium (in volatility term) S&P500 option sellers are charging investors for the protection of their portfolio. It can be seen as an insurance premium. A simple way to compute the VRP is VRP= VIX -HV10 where HV10 is the 10-day historical volatility of S&P500. Some people also look at the 5-day moving average of the VRP to smooth this indicator.
VRP > 0: Risk-On signal
Fast Volatility Risk Premium (FVRP) is a variant of the VRP. FVRP=EMA(VIX,7)-HV5 where HV5 the 5-day historical volatility of S&P500.
FVRP > 0: Risk-On signal
Volatility Momentum compares today’s VIX to last 50 days. It has, therefore, quite a bit of lag but it is a useful measure when combined with other indicators. Volatility Momentum=SMA(VIX,50) -VIX.
Volatility Momentum > 0: Risk-On signal
VIX Mean Reversion looks at today’s VIX compared to certain thresholds. We avoid investing in the S&P500 when the VIX is too high (above 20) or too low (below 12).
VIX Mean Reversion > 12 and VIX Mean Reversion < 20: Risk-On signal
VIX3M Mean Reversion works the same way as VIX Mean Reversion.
VIX3M Mean Reversion > 12 and VIX3M Mean Reversion < 20: Risk-On signal
ds Revenue, Margins, Earnings TrendsPURPOSE: Looks for trends in Revenue, Margins, Earnings (RME) and provides a quick indication of where to focus your attention. Developed for educational purposes for my Investing Program Students at Everett Community College, Everett, WA.
WHAT IT DOES:
Based on the principle that fundamental trends support technical price trends this indicator intends to help swing and position trading students evaluate the income statement by exposing recent trends in the revenue, margins, and earnings looking at eight quarters of data. It requires three quarters to determine a trend therefore there is a heavy focus on the last three quarters of data. Tools and indicators should be used to "tell something useful" in this case it is specifically is revenue, margins, and earnings expanding, contracting, or flat? Is this movement accelerating or decelerating? Lastly some logic is used to interpret at glance whether this stock warrants a closer look into the fundamentals and technicals of this particular company.
HOW TO:
This is a brief description on how to use this tool
1. TOP ROW: This shows the symbol and then provides a summation indicator (Green Checkmark, Yellow caution triangle, Red X) for each section (Revenue, Margins, Earnings). At a glance shows strength/weakness/concerns.
2. TABLE: You will see 8 quarters of data assuming it is available broken into sections for Revenue, Margins, and Earnings.
3. COLUMNS: The text color red does not denote a negative number and the text color green does not denote a positive number. Rather in the column of data where it is displayed, the green text helps visually show a bullish trend when each value is greater than the prior value and the red text helps visually show a bearish trend when each value is less than the prior value. Yellow background in columns highlights values which should not normally be negative numbers.
4. 3Q TREND ROW: This row analyzes the last three quarters of data in the column to determine if the trend is rising, falling, or flat.
5. 3Q ROCK ROW: This row analyzes the last three quarters of data to determine if the trend is accelerating up, accelerating down, or momentum (MOM) is sideways.
6. BOTTOM ROW INDICATORS: Based on whether the numbers are negative or positive and the trend, This row shows one of the following results:
6a. Green Checkmark is considered acceptable performance.
6b. Yellow Caution Triangle indicates a closer inspection of this columns data is warranted.
6c. Orange Diamond is more serious than the Caution but not as bad as a Red Flag. Extra caution is required here.
6d. Red Flag indicates a warning that undesirable performance characteristics are associated with the data in this column.
Bond Yeild CurveBond Yeild Curve
A bond yeild curve is a line that plot the interest rate of bonds of each maturity dates.
The slope of the curve give the future of economy cycle.
if the slope could be normal (positive), flat or even inverted.
This indicator aquired data of bond yeild provided by TradingView.
How to use it.
Select the country of the bond / another country to compare.
Select the maturity of bond (this indicator set 2Y, 5Y, 10Y and 20Y as default).
You can toggle to 3 different data set; Yeild, Spread (10Y-2Y) and Yeild Curve.
In case that you select the "Yeild Curve", you can customize the desired past period to compare.
How we can get the benefit.
- If the current spread is greater than 1.0, it suppose that the economy of that country probably is ok.
- if the current spread is between 0 - 1.0, it suppose to be flatted and probably turn to invert and the economy cound be in a recession soon.
- if the current spread is below 0, it suppose to be inverted and economy is in recession.
when knowing the state of economy, it would help us to manage our investment.
When you select "Yeild"
When you select "Spread"
When you select "Yeild Curve"
I'm new for this.
if any idea, correction and suggestion, i do appreciate it.
Financials based on Piotroski F-ScoreFinancials based on Piotroski F-Score includes 2 languages : Vietnamese and English
Select Quarterly or Annual Financial Statements:
Select Quarterly Report
Select Annual Financial Statements
Convert to billions:
Note the abbreviations:
1. Rev: Total revenue
2. Gross: Gross profit (Gross Margin)
3. OI: Operating Income
4. Net: Net Income (Net Margin)
5. FCO: Cash From Operating Activities
6. ROA: Return on assets
7. C: Deferred Income, Current
8. N: Deferred Income, Non-Current
9. TAS: Total assets (Asset turnover)
10. Debt: Total liabilities
11. E: Debt to EBITDA ratio
12. L_debt: Long term debt to total assets ratio
13. Cur: Current ratio
14. INV: Total inventories (Inventory turnover)
15. TSO: Total Shares Outstanding (Diluted EPS )
16. Graham: Graham's number (close/Graham's number)
17. F_score: Piotroski F-score
Select item Financials on chart:
Manual Financials based on Piotroski F-Score:
The Piotroski F-Score is the sum of 9 components related to profitability, leverage and op. efficiency. These nine components are each given a pass (1) or fail (0). The sum of these parts results in the F-Score. For each criteria that a company meets, it's F-Score is increased by 1.
Profitability Components
- Positive Net Income -> 1
- Positive Operating Cash Flow -> 1
- Higher ROA than Previous Period -> 1
- CFO > NI -> 1
Leverage Components
- Decline in Long Term Debt -> 1
- Higher Current Ratio than Previous Period ->1
- Less Dilution (# of Shares Outstanding) than Previous Period -> 1
Operating Efficiency Components
- Higher Gross Margin than Previous Period -> 1
- Higher Asset Turnover than Previous Period -> 1
If you invested in only those companies that scored best or highest (8 or 9) on his nine-point scale, or F-Score as he called it, over the 20 year period from 1976 to 1996, you would have outperformed the market by an average of 13.4% per year - and this over 20 years!
That sounds just about too good to be true. But it is true!
S&P 500 Earnings Yield SpreadThis indicator compares the attractiveness of equities relative to the risk-free rate of return, by comparing the earnings yields of S&P 500 companies to the 10Y treasury yields. "Earnings yield" refers to the net income attributable to shareholders divided by the stock's price - effectively the inverse of the PE ratio. The tangible meaning of this metric is "the annual income received by (attributable to) shareholders as a percent of the price paid to receive said income." Therefore, earnings yield is comparable to bond yields, which are "the annual income received by bond holders as a percent of the price paid to receive said income."
This indicator subtracts the earnings yield of S&P 500 companies from the current 10-year treasury bond yield, creating a "spread" between the yields that determines whether equities are currently an attractive investment relative to bonds. That is, if the S&P 500 earnings yield exceeds the 10Y treasury yield, then equity investors are receiving more attributable income per dollar paid than bondholders, which could be an indication that equities are an attractive purchase relative to the risk-free rate. The same applies vice-versa; if the 10Y treasury yield exceeds that of the S&P 500 earnings yield, then equities may not be an attractive investment relative to the risk-free rate.
Since data on S&P 500 companies' earnings yields are pulled on a monthly basis, this indicator should be used on a monthly timeframe or longer. Historical data has shown that the critical zones for the indicator are at -4% and +3%, i.e. when equities are trading with a 4% greater yield than 10Y T-bonds and when equities are trading with a 3% lower yield than 10Y T-bonds, respectively. In the "Oversold" case (-4%), equities are trading at a steep discount to the risk-free rate and has often represented a strong buying opportunity. In the "Overbought" case (+3%), equities are trading at a premium to the risk-free rate, which may be an indication that caution should be exercised within the stock market. When the indicator first crosses into "Oversold" territory, this has historically been near a the bottom of a crash on the S&P 500. When the indicator first crosses into the "Overbought" territory, this has often precipitated a correction of 15% on the S&P 500.
Some notable "misses," crashes that this indicator missed, include the 1973 stock market crash and the 2008 global recession. However, both of these cases were largely precipitated by unprecedented economic events, as opposed to stocks simply being "Overbought" relative to treasury yields. Nonetheless, this indicator should form only a small portion of your fundamental analysis, as there are many macroeconomic factors that could lead to major corrections besides the impact of treasury yields. Furthermore, it should also be noted that since markets are "forward looking," future earnings growth or interest rate hikes may become "priced into" both the stock and bond markets, affecting the outputs of this indicator. However, since both the stock and bond markets should account for these factors simultaneously, the impact has historically been minimized.
I hope you find this indicator to be beneficial to your strategies. Stay safe, and happy trading.
Lankou VS BTC all
/!\ To make it work well use -> pin at new right scale
This script displays the comparison with BTCUSDT
it permits to see if an asset is gaining value against BTC, and fastly scan USDT asset to determine if they are bullish
It works for ANY asset, as it's dividing it's price by the BTCUSDT one
Lev Umanov Sin EquationThis indicator is taken from the calculations made by Lev Umanov. It predicts the peaks of Bitcoin. The indicator works with most BTCUSD pairings.
BTC Price vs COP Spread Chart Wanted to create a spread chart using BTC and some cost of production estimates. In any commodity using COP is a great way to define "value" and typically there's about 100-150% markup for investors to keep in mind when using this metric in their analysis. Thanks to Grimm for the spread idea/request. #PMAFTW // Original cop code taken from;