Quarterly EarningsThis script displays quarterly earnings per share (EPS) and sales data, and their year-on-year percentage change.
The script builds upon the Volume Price and Fundamentals script by Mohit_Kakkar08 and improves upon the array functions to keep the code light-weight & the output as accurate as possible. This script uses diluted EPS data for calculating the quarterly earnings. New quarters are auto-generated by the script as the earnings data gets updated in Tradingview every quarter.
Features:
⦿ View quarterly earnings per share (EPS) and sales data.
⦿ The percentage change is a YoY (year on year) comparison of the current quarter to the same quarter of the previous year.
⦿ Option to change the data from Quarterly (FQ) to Yearly (FY) .
⦿ Long mode : Option to increase the number of previous quarters displayed in the table (default is the past 4 quarters) to any number.
⦿ Location & size of the table can be changed.
⦿ Option for a 1-click dark mode
⦿ Option for a ' Mini mode ' where the values are replaced by traffic lights for a quick visual:
🟢 or 🔵 YoY increase in earnings/sales
🔴 or 🟣 YoY decrease in earnings/sales
🟡 or 🟠 YoY earnings/sales unchanged
⚪️ No data available
⦿ The top-left cell has the option to display either the free float (FF) or the marketcap (Mcap) of the stock.
Please note that sometimes the Tradingview data reflected in the script output might differ a bit from MarketSmith. Also make sure you are viewing the 'consolidated' data there.
This script was developed as a collaboration between me & @EquityCraze .
Earnings
ATR profit and loss linesWhat is ATR?
Taking a candlestick, the following 3 transactions are calculated:
1-The difference between the high of the day and the low of the day
2-The difference between today's high and yesterday's close
3-The difference between today's low and yesterday's close
Atr takes the average of these 14-day candlesticks after making their calculations and it predicts how high or low a candle can go and these give us support and resistance helps with points
If you have noticed a rise in your chart and have no idea how high it will go, you can use Atr profit and loss lines.
The red zone is the stop point, the blue zones are the snow zones.
Must be used with macd. macd is validator.
There is an increase in your chart, you opened the atr profit and loss lines upwards and if macd gives you an increase, it is recommended that you enter the trade at that time. It is recommended to increase your loss line 1 step in the direction of profit every 2 profit breaks on atr profit and loss lines.
ATR Nedir?
Bir mum barı ele alınarak şu 3 işlem hesaplanır:
1-Günün yükseği ile günün düşüğü farkı
2-Günün yükseği ile dünün kapanışının farkı
3-Günün düşüğü ile dünkü kapanışın farkı
ATR ise 14 günlük bu mum barlarının hesaplarını yaptıktan sonra ortalamasını alır ve bir mumum ne kadar yükselip düşebileceği konusunda tahmin verir ve bunlar bize destek ve direnç noktaları konusunda yardımcı olur
Eğer grafiğinizde bir yükseliş farketmişseniz ne kadar yükseleceği konusunda fikriniz yoksa Atr kar zarar çizgilerini kullanabilirsiniz.
Kırmızı bölge durdurma noktası,mavi bölgeler kar bölgeleridir.
Macd ile birlikte kullanılmalıdır.macd doğrulayıcıdır.
Grafiğinizde yükseliş var,atr kar zarar çizgilerini yukarı yönlü açtınız ve macd size yükseliş veriyorsa işte o sırada işleme girmeniz tavsiye edilir.atr kar zarar çizgilerinde her 2 kar kırılımında bir zarar çizginizi kar yönünde 1 kademe arttırmanız önerilir
Joel Greenblatt Magic FormulaJoel Greenblatt Magic Formula. I always wanted to make this.
The Indicator shows 3 values.
ROC,EY,SUM.
ROC= Return On Capital.
EY=Earnings Yield
SUM= Addition of Two.
Formula:
ROC=EBIT / (Net Working Capital + Net Fixed Assets).
EY = EBIT / Enterprise value
Enterprise Value=(Market value of equity + Net Interest-bearing debt)
To implement the strategy, investors start by identifying a universe of stocks, typically large-cap or mid-cap companies that trade on a major stock exchange. Next, they rank the stocks based on their ROC and EY. The companies with the best combination of these two metrics are considered the best investments (based on this ranking).
For example, a stock that ranks 10th on EY and 99th on ROIC gets a value of 109. The two ranks are simply added together and all stocks are ranked on the sum of the two ranks. The stocks with the lowest values are best.
All credits to "The Little Book That Beats The Market" by Joel Greenblatt
The Magic Formula strategy is a stock selection method popularized by Joel Greenblatt’s book The Little Book That Beats the Market.
It involves ranking companies based on Two factors:
A high return on capital and A high Earnings Yield.
The companies with the best combination of these two metrics are considered the best investments. The strategy aims to find undervalued companies with strong financials that have the potential for high returns over the long term.
Fundamental ScreenerThis indicator is designed to compare the year-over-year earnings and sales growth, as well as the P/E ratio of up to 10 stocks simultaneously .
This provides valuable insights into the fundamental performance of multiple stocks at the same time, allowing traders to quickly identify which stocks are outperforming or underperforming their peers.
The earnings and sales growth figures are calculated on a year-over-year basis , comparing the most recent quarter to the same quarter 1 year ago.
The P/E ratio is a valuation metric that measures a company's stock price relative to its trailing twelve months earnings per share.
By comparing these three key metrics across multiple stocks, traders can quickly identify which stock in a group has superior fundamentals.
Customization
Chose to compare 5 or 10 symbols
Table position, color, and size
RS RatingHello everyone.
The RS Rating (or Relative Strenght Rating) is a metric that tracks a stock's price performance relative to the rest of the market. Specifically, it looks at a stock's relative strength over the last 52 weeks.
It allows you to identify at a glance stocks that are outperforming the market and may be poised for further gains.
Designed for break-out traders, trend follower, value investors, the RS Rating can help you identify promising opportunities and make informed investment decisions.
The Rating stands as follow:
- From 1 (worst) to 99 (best)
- 99 rating means the stock is outperforming 99% of all stocks in terms of relative share price performance over the last 52 weeks.
The RS Rating is accompanied by the RS line which is a representation of the progress of the asset against the comparative symbol. (Here SP500)
Of course this script is inspired by the IBD rating system.
The results may be equivalent but it is not guaranteed.
This indicator proposes a scoring system in the style of the one proposed by IBD.
Indeed for an optimal result, it would be necessary to compare the relative performance of all actions, which is not yet possible on PineScript.
Here is the formula for calculating the score:
RS Score = 40% * P3 + 20% * P6 + 20% * P9 + 20% * P12
With
P3 = Performance over the last 3 months
P6 = Performance over the last 6 months
P9 = Performance over the last 9 months
P12 = Performance over the last 12 months
There is no equivalent solution for the moment on TradingView.
The rating score will only appear on the daily timeframe.
For now it's my pleasure to share!
Kitti-Playbook request.earnings R0.0Date: Feb 5 2023
Objective :
Display Earnings per share
Calculation :
Get Earning value by use Function "request.earnings "
Display :
Plot Earnings Data
Earnings History Tab
CONTRACT Rolling APYThese are the annualized returns for quarters' futures contract.
The returns are generated from buying spot and shorting futures contracts, and sometimes the rolling yields reflect the market sentiment.
Please select spot symbol, it will display rolling APY, which supports all quarterly contract coins, and supports exchanges BINANCE, BYBIT, KRAKEN.
It only needs to be updated once a year, and the unsupported coins and quarters delisted will automatically not be displayed.
----
季度期貨合約的年化收益,收益來自購買現貨和做空期貨合約,有時可反映市場情緒。
symbol選擇現貨(有季度合約的),就會顯示Rolling APY,支援所有季度合約的幣,
支援交易所 BINANCE, BYBIT, KRAKEN.
一年只要更新一次,不支援的幣跟下架的季度會自動無法顯示。
Valuation RainbowValuation Rainbow
© danny_peanuts
Stock value based on Book Value, Earnings, Dividends and Money Multiplier
SV = (BVPS + EPS + DPS) * MM
BVPS = Book Value Per Share
EPS = Earnings Per Share
DPS = Dividends Per Share
MM = Money Multiplier - Integer Number from 1,2,3, ... ,7
There are multiple ways of valuing the stock. Book value is traditionally used as the basic valuation since it's calculate the total asset value minus the liabilities of any company. There are valuation based on multiplication of book value, there are valuation based on multiplication of earnings, and valuation based on multiplication of dividends. Here I'm proposing valuation based on all of these combined. So this indicator is measuring stock value based on multiplication of book value plus earning plus dividend per share. Since the money supply could have an multiplication effect so does the stock value could have a multiplication effect. Also notes that some blue chips stock tends to value higher than startup stock due to money is not equally distributed. So for simplicity I will use simple integer number to represent this multiplication effect as rainbow color plots, thus it can be applied to any stock at any given countries. The higher the stock price on valuation bands the most expensive it is and the lower the price on valuation bands the cheaper it is.
Markets vs Inflation [x7.am]Markets vs Inflation(CPI US) also known as Inflation-Adjusted Return.
The inflation-adjusted return is the measure of return that takes into account the time period's inflation rate. The purpose of the inflation-adjusted return metric is to reveal the return on an investment after removing the effects of inflation.
Removing the effects of inflation from the return of an investment allows the investor to see the true earning potential of the security without external economic forces. The inflation-adjusted return is also known as the real rate of return or required rate of return adjusted for inflation. It is a more accurate measure of investment performance than the nominal rate of return.
The inflation-adjusted return accounts for the effect of inflation on an investment's performance over time.
Also known as the real return, the inflation-adjusted return provides a more realistic comparison of an investment's performance.
Inflation will lower the size of a positive return and increase the magnitude of a loss.
Assume you have saved $10,000 to buy a car but decide to invest the money for a year before buying to ensure that you have a small cash cushion left over after getting the car. Earning 5% interest, you have $10,500 after 12 months. However, because prices increased by 3% during the same period due to inflation, the same car now costs $10,300.
Consequently, the amount of money that remains after you buy the car—which represents your increase in purchasing power—is $200, or 2% of your initial investment. This is your real rate of return, as it represents the amount that you gained after accounting for the effects of inflation.
Markets vs Inflation indicators use in 1 months interval
SP:SPX , INDEX:BTCUSD , TVC:GOLD , TVC:DJI
(CF|DB) Caruso Financial DashboardThe Caruso Financial Dashboard brings a rich amount of company financial data straight to your TradingView chart along with additional vital stock-related information. At a glance, you can see EPS (Diluted), Sales, growth rates, and EPS/Sales surprises either quarter by quarter on the daily chart or for Fiscal Years on the weekly chart.
On the daily chart, the financial table also has helpful highlights to visually display if a quarter’s EPS or Sales are higher than the same quarter a year ago. Also, EPS and Sales data has a helpful green shading when a new record high number has been achieved for the metric. Additional stock-based metrics include the stock’s Up/Down volume ratio, Beta, Average Daily Volume in terms of shares traded or dollar value traded, the percentage distance to a moving average of choice, as well as the stock’s 52-week high and low.
The weekly chart shows financial data for fiscal years. It also has additional stock-based metrics from those available on the daily chart. These include; Market Cap, Shares in Float and the Float as a percentage of all shares outstanding, the distance from the stock’s 52-week high, the distance to a moving average of choice (10 sma by default), the P/E and P/S ratios.
To further help an investor understand a company’s growth rates, the CF|DB allows a user to hide all or part of the table and plot EPS, EPS TTM (Trailing Twelve Months), and Sales TTM lines on the chart. This can be applied to either the daily or weekly chart.
The CF|DB provides financial and market data for international markets (US, EU, Canada, Australia, Hong Kong, Japan, and more), making its applicability global.
Features On Daily Chart
· Quarterly EPS
· Quarterly EPS growth rate YoY
· Quarterly EPS Surprise vs consensus estimate
· Quarterly Sales
· Quarterly Sales growth rate YoY
· Quarterly Sales Surprise vs consensus estimate
· Green/Red dot highlighting YoY growth or decline
· EPS/Sales green highlight for 8 quarter high or record high numbers
· Up/Down Volume Ratio
· Beta
· Average Daily Volume (shares trade). Period for the average can be configured
· Average Daily Volume (dollar value traded). Period for the average can be configured
· Distance to a moving average. The average can be configured. 21 ema by default
· 52-week high and low
· New 52-week highs and lows are highlighted by a red or green box shading
· Ability to plot EPS, EPS TTM, Sales lines
· Ability to hide part or all of the financial data table
Features On Weekly Chart
· FY EPS
· FY EPS growth rate YoY
· FY EPS Surprise vs consensus estimate
· FY Sales
· FY Sales growth rate YoY
· FY Sales Surprise vs consensus estimate
· EPS/Sales green highlight for 8-year high or record high numbers
· Market Cap
· Shares in float
· Share in float as a percentage of all shares outstanding
· Distance to new 52-week highs
· Distance to a moving average. The average can be configured. 10 sma by default
· Ability to plot EPS, EPS TTM, Sales lines
· Ability to hide part or all of the financial data table
PE Band V2PE Band is a very practical stock selection technique for investors, which can be used to judge whether the company's stock price is currently overvalued or undervalued.
The PE ratio center line of the stock must be set every time the stock is changed because of the program limitation of Tradingview.
Usually we use the 5-year median to judge whether the company's stock price has a discount .
Not all stocks are suitable for using PE Band, especially cyclical stocks.
You can also use ROE to determine whether the company is a cyclical stock.
Enterprise Value on Earnings / FCF / FFO Band Enterprise Value per Diluted Share plotted as black line.
Bands start at 5x and stops at 30x, each represents a 5x increment.
Band Options (per Diluted Share, Fiscal Year):
①Free Cash Flow
②Operating Income
③Adjusted Funds from Operations
④Core Earnings
where:
AFfO = FFO - Unusual Income/Expenses + Tax Distortion (dafault 25% tax rate)
Core Earnings = Net Income - Unusual Income/Expenses + Tax Distortion (default 25% tax rate)
These two adjustments are coarse and watered-down, so take them with a grain of salt.
For professional assessments of Core Earnings versus GAAP Earnings you may go to David Trainer at Great Speculations(costs money). I am unaffiliated with these entities.
Tips:
①③ are unapplicable to financials.
③ may work for REIT-like companies whose depreciation is mostly overstated(e.g. hydro-elec utility companies whose dams typically don't wear out in ten years; companies with assets that APPRECIATE in reality but they D&A them anyway).
Probably none works for cyclicals, especially extreme boom-bust cyclicals such as oil, aluminum & shipping etc.
Beware unnaturally low (dividend_payout+buyback)/net_income ratio as some majority shareholders may funnel money to themselves/cronies at the expense of small shareholders.
Disclaimer: Use at your own discretion. No guarantees for any accuracy or usefulness. If you decide to use it, I take no responsibility whatsoever for any consequences. Does not constitute financial advice. Past performance is not Indicative of future results.
PB BandPB Band is a very practical stock selection technique for investors, which can be used to judge whether the company's stock price is currently overvalued or undervalued.
The PB ratio center line of the stock must be set every time the stock is changed because of the program limitation of Tradingview.
Usually we use the 5-year median to judge whether the company's stock price has a discount.
Not all stocks are suitable for using PB Band, especially cyclical stocks.
You can also use ROE to determine whether the company is a cyclical stock.
Rule Of 20 - Fair Value Estimation by Inflation & Earnings (TG)The Rule Of 20 is a heuristic calculation to find the fair value of an asset or market given its earnings and current inflation.
Its calculation is straightforward: the fair multiple of the price or price-to-earnings ratio of a stock should be 20 minus the rate of inflation.
In math terms: fair_price-to-earnings_ratio = (20 - inflation) ; fair_value = current_price * fair_price-to-earnings_ratio / real_price-to-earnings_ratio
For example, if a stock or index was trading on 11 times earnings and inflation was 2%, then the theory would be that the fair price-to-earnings ratio would be 20-2 = 18, which is much higher than the real price-to-earnings ratio of 11, and hence the asset would be undervalued.
Conversely, a market or company that was trading on 18 times price-to-earnings ration when inflation was 8% was seen as overvalued, because of the fair price-to-earnings ratio being 20-8=12, hence much lower than the real price-to-earnings ratio of 18.
We can then project the delta between the fair PE and real PE onto the asset's value to obtain the projected fair value, which may be a target of future value the asset may reach or hover around.
For example, as of 1st November 2022, SPX stood at 3871.97, with a PE ratio of 20.14 and an inflation in the US of 7.70. Using the Rule Of 20, we find that the fair PE ratio is 20-7.7=12.3, which is much lower than the current PE ratio of 20.14 by 39%! This may indicate a future possibility of a further downside risk by 39% from current valuation levels.
The origins of this rule are unknown, although the legendary US fund manager Peter Lynch is said to have been an active proponent when he was directing the Fidelity’s Magellan fund from 1977 to 1990.
For more infos about the Rule Of 20, reading this article is recommended: www.sharesmagazine.co.uk
This indicator implements the Rule Of 20 on any asset where the Financials are availble to TradingView, and also for the entire SP:SPX index as a way to assess the wider US stock market. Technically, the calculation is a bit different for the latter, as we cannot access earnings of SPX through Financials on TradingView, so we access it using the QUANDL:MULTPL/SP500_PE_RATIO_MONTH ticker instead.
By default are displayed:
current asset value in red
fair asset value according to the Rule Of 20 in white for SPX, or different shades of purple/maroon for other assets. Note that for SPX there is only one calculation, whereas for other assets there are multiple different ways to calculate earnings, so different fair values can be computed.
fair price-to-earnings ratio (PE ratio) in light grey.
real price-to-earnings ratio in darker grey.
This indicator can be used on SP:SPX ticker, and on most NASDAQ:* tickers, since they have Financials integrated in TradingView. Stocks tickers from other exchanges may not provide Financials data, so this indicator won't work then. If this happens, try to find the same ticker on NASDAQ instead.
Note that by default, only the US stock market is considered. If you want to consider stocks or assets in other regions of the world, please change the inflation ticker to a ticker that reflect the target region's inflation.
Also adding a table to ease interpretation was considered, but then the Timeframe MTF parameter would not work, and since the big advantage of this indicator is to allow for historical comparisons, the table was dropped.
Enjoy, and keep in mind that all models are wrong, but some are useful.
Trade safely!
TG
Price Comparison with Inflation and Interest RateHello dear traders.
This indicator creates a label on the chart.
It measures the difference between the price of the selected symbol at the beginning of the year and the current price, and tells you whether it has more returns than the inflation rate in the region you selected.
The return of the selected symbol on the label since the beginning of the year, the inflation value of the selected region and the interest rate of the selected region are written.
If the symbol's return since the beginning of the year is higher than the inflation return, the label color will be green, otherwise it will be red.
Below you can see a stock with an above-inflationary return.
You can select a region from the inputs section. Currently, Turkey, America and Europe regions can be selected.
While preparing this indicator, tradingview resources were used.
Implied Move with NASA Ideas & Price LineThis script allows you to customize the Implied Move Percentage and fully customize the way it is shown.
Can be used on any stock that has earnings and works based on the Implied Move (Percent).
Basically, it lets you visualize how the stock moved after reporting earnings and seeing if it reached the implied move or not.
This is helpful as it's important to know what earnings are worth keeping an eye on and which should be avoided.
There is also an added custom text input which was inspired to make from a frogman named NASA.
It lets you input whatever text you want on whatever price you want.
To summarize, it's basically a Post-It Note that you can add to any price level for any stock.
Alerts can be set if wanted, They can be alerted for the Implied Moves (If the stock price goes Above/ Below the set percentage) and NASA Ideas (if the stock price goes Above/ Below the set price).
There is also an added custom price line which is mostly for having a nonintrusive price line and label.
This price line and label can be switched to show the (Open, High, Low, Close, Extended High, Extended Low, Yesterday's Open, Yesterday's High, Yesterday's Low, and Yesterday's Close).
PEG Ratio (Most Accurate)Price Earnings To Growth (PEG) Ratio
PEG ratio is a stock's PE ratio divided by the growth rate of its earnings for a specified time period.
The PEG ratio is used to determine a stock's value while also factoring in the company's expected earnings growth, and it is thought to provide a more complete picture than the more standard P/E ratio.
PEG ratio 1 is fair value.
PEG ratio above > 2 is are generally considered overvalued.
PEG ratio below < 1 is Undervalued.
Negative PEG ratio indicate the company no growing in specified time period.
Example of How to Use the PEG Ratio
The PEG ratio provides useful information to compare competitive companies and see which stock might be the better choice for an investor's needs, as follows.
Google (13-Sep-2022) 👍
PEG ratio = 0.38%
P/E ratio = 19.17%
Meta (13-Sep-2022) 👎
PEG ratio = 0.63%
P/E ratio = 12.55%
Many investors may look at Meta and find it more attractive since it has a lower P/E ratio. But compared to Google, it doesn't have a high enough growth rate to justify its current P/E.
Google is trading at a discount to its growth rate and investors purchasing it are paying less per unit of earnings growth. Based on its lower PEG, Google may be relatively the better buy.
[GTH] Net Profit Margin (%)Displays the Net Profit Margin in a more "readable" fashion than the built-in TV Indicator.
This indicator concludes the series of 'Minervini-indicators', consisting of "GTH Earnings", "GTH Revenues" and "GTH Net Profit Margin (%)".
Famous trader Mark Minervini repeately describes rising earnings, revenues and net profit margin as the most important financials for finding superperformers.
In case of reporting a malfunction: Please be specific. Statements like "does not work" are useless. Thanks.
[GTH] Earnings
Black line -> actually Reported Earnings
Colored bars -> positive/negative surprise in regard to Estimated Earnings
Labels -> percentage of change in regard of the previous Reported Earnings
EPS & SalesHi everyone,
I just adapted a little utility script to visualise EPS % increase (quarters vs Year -1) and sales.
I used the code from @ARUN_SAXENA and modified it to fix what I saw as issues.
(Using base 3M instead of 1M +
request.earnings(syminfo.tickerid, earnings.actual, ignore_invalid_symbol=true)
instead of
request.financial(syminfo.tickerid, "EARNINGS_PER_SHARE", "FQ")
Data will differ from MarketSmith because they use sometimes actual EPS sometimes standard, but think we can at least trust what we see in term of %
The tool is far from being perfect !
[dj]visible financial report
visible financial report
visible financial report (year-on-year) is a indicator for us market only, other market's data are wrong.
please check the "E" symbol's if the tradingview's data accurate.
this script using both request.financial and request.earnings. EARNINGS_ESTIMATE / earnings.estimate / TOTAL_REVENUE / TOTAL_OPER_EXPENSE
i share this script's for the purpose of tradingview staff will improve their financial data accuracy.
some stocks data are wrong, or missing such as NYSE:KR
i got many recommendations for improvemenet on tradingview ....but....
EPS DashboardThis script creates a little table in an indicator below your chart that allows you to view the earnings per share over the last year as well as calculates the year over year earnings per share growth. According to IBD, strong EPS growth is a great indicator of a potential super-performer stock so hopefully this will make it easier to keep an eye on this metric. Note it does not work on things without financial data like crypto, indexes, and ETFs.