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
Fundamental Analysis
Financials - Comparing CompaniesHello All
For a while I have been working on this indicator to compare financials of the companies and sort them accordingly. Finally I completed and published it. I preferred using new object type feature in Pine language™ and I hope it might be an example and helpful for the developers.
First of all, as we have limitation on security calls, the indicator can get and compare financials for 5 companies only. also Chart time frame must be 1Day or higher! ( I recommend 1Day time frame ). if not then the indicator stops and shows the error message: "Please set the time frame 1Day or higher" . More important than others: You should choose the companies from the same sector! Compare apples to apples :)
The Financials in the indicator:
Earnings Per Share
Price to Earnings Ratio
Price to Sales Ratio
Price to Book Ratio
Profit Margin
Dept to Equity
Current Ratio
Market Capitalization
Also more information shown for each stocks:
Closing Price, sets the color accordingly
2 Simple/Exponential moving average, you can set the length, also it checks if it is rising/falling and sets the color accordingly
Volume info
Average volume (20 days), you can set the period
Currency for each security
Lets see some features in it:
it sorts the companies according to the financials:
If you move the mouse onto any header then it shows explanation about the financial:
You can change location and text size:
You can set the type of Moving averages as SMA or EMA and you can also set the length for both . Headers for both are changed automatically by MA type and length
Colors for Closing price and MA cells are set automatically:
For new Objects in Pine language click here
P.S. You can use this indicator while analyzing the financials of the companies in same sector/industry. So please don't ask for the alerts :)
Enjoy!
Kitti-Playbook request.dividends R0.0 Date Feb 5 2023
Objective : Display Dividends Amount per Share
Calculation :
Use function ==> request.dividends(ticker, field, gaps, lookahead, ignore_invalid_symbol, currency )
Display : The value get from " request.dividends "
AIO Key LevelsAll In One Key Levels - Displays key levels for any type of chart.
Over 30 levels at your complete disposal.
Filled with a host of features that allow you to customise the appearance and display of the indicator to suit your individual trading style.
The result is a clear and concise indicator that helps traders easily identify key levels.
- The indicator is easy to use and does not need a detailed description.
- With customisable input parameters such as display style, line style, font style, offset, threshold and index.
- The colours for the key levels can also be customised.
- The script uses a 'switch' function and selected input parameters to set display, line and font styles.
- The key levels are constructed using the data received and the selected styles and colours.
- A unique cycle helps to improve the readability of the levels without "polluting" the graph with multiple labels
- In addition, I have left hints in the indicator to help you understand it better.
For Pine coders.
Why did I create it when there are many counterparts?
Simply because counterparts have very large and complex code and modest functionality and flex.
Here I have managed to fit it into 100 lines still readable.
You can learn how to call lots of lines and marks with just one function.
I also created a unique loop that connects labels if they are too close together for better visibility on a plot.
I have left detailed comments for each action.
I would be glad if someone could tell me how to make it more easier.
Global LiquidityPlots the sum of the balance sheets of the world's major central banks - FED, ECB, BoE, PBoC, BOJ, India and Switzerland - in a currency of your choice. Defaults to USD.
Also shows FED net liquidity (balance sheet - tga - rrp) for comparison. Uses a configurable multiplier to make the two lines viewable on the same price scale.
Peer Performance - NIFTY36STOCKSI have created a peer performance dashboard for:
36 stocks from:
5 sectors of Nifty 100
This kind of dashboard is very useful for traders when they are planing to trade in a stocks and like to see how that is stocks is performing against other stocks in the same sector . Picking outperforming stocks will always give outstanding results when market starts moving. os having view on teh complete sector will always be good for traders before picking a specific stock.
Sectors covered in this indicators are:
Indian Auto Sector
Banking Sector
Oil, Gas and Energy Stocks
Cement Sector
Technology Sector
It will help traders reviewing performance ( stock return in last 1 year) of group of stocks from a particular sector .
Basically 5 functions are used to plot this dashboard
using "if " function to shortlist the stocks and the sector it belongs to.
tablo function to plot a table with specific parameters like number of row and columns, color of the frame of table
Getting yearly return into a series of variables using "request.security" function
str.tostring function is used to convert yearly return into a series of text so that it can inserted into the table cell.
finally plotting all the text and yearly return values using table.cell function
ValueBands for Acceptable P/E/ and P/B# What's this script?
Plot BookValue/share and TangibleBookValue/share
Visualization of Price Bands for Acceptable P/E and P/B
Adaptation to Currency Change
When TTM(FQ) financial data is not available, FY financial data is used to supplement the TTM(FQ) data.
#Parameter
P/E : acceptable price ratio of Earnings per share. Default is 15
P/B : acceptable price ratio of Book value per share. Default is 1.5
P/TB : acceptable price ratio of Tangible Book value per share. Default is 1.5
#Line
## Books
BookValue : book value per share
TangibleBookValue :tangible book value per share
## Acceptable Prices
Acceptable P/E : P/E * EPS
Acceptable P/B : P/B * BVPS
Acceptable P/TB : P/TB * TBVPS
## Geometric mean
GeometricMean(APE&APB) : sqrt(APE*APB). Geometric mean of "Acceptable P/E" and "Acceptable P/B". if PE15 & PB1.5 then GrahamNumber .
GeometricMean(APE&APTB) : sqrt(APE*APTB). Geometric mean of "Acceptable P/E" and "Acceptable P/TB".
## color fill
BV -TBV .Fill color is TBV line
APE -APB .Fill color is the color of the larger APE and APB lines
I am not a programmer, so I can only provide crude functionality, but I hope it will be of some help to you
---------------------
◆これなに
指定したPEやPBの価格帯がチャートにのります
通貨変更に対応したスクリプトがなかったからつくりました
期のデータが無いところは年のデータをミックスして補完して、長短期どちらの検討でも使いやすくしました
プログラマーじゃないから必要なものだけですけど、よかったらつかってみてくださいね
1. 一株当たり純資産の線
2. 一株当たり有形固定資産の線
3. 1と2の間を2の線の色で塗りつぶし
4. 設定画面で指定した許容P/E相当の価格線。デフォルトは15
5. 設定画面で指定した許容P/B相当の価格線。デフォルトは1.5
6. 4と5のあいだを塗りつぶし。大きい値の方の線の色で塗りつぶされます
7. 設定画面で指定した許容P/TB相当の価格線。デフォルトは1.5
8. 4と5の相乗平均。もしPE15,PB1.5にしてたらGrahamNumber 。
9. 4と6の相乗平均
USD Liquidity IndexThis USD Liquidity Index composed of 2 parts, total assets and major liabilities of the Federal Reserve .
There is a certain positive correlation between USD liquidity and risk asset price changes in history.
Suggested that USD Liquidity is mostly determined by the Federal Reserve balance (without leveraged), this index deducts three major liabilities from the total assets (in green color line) of the Federal Reserve . They are the currency in circulation (WCURCIR) in gold color, the Treasury General Account (WTREGEN) in blue color, the Reverse Repo (RRPONTSYD) in red color.
The grey line is the calculation result of the USD Liquidity Index. With it goes up, liquidity increases, vice versa.
Stablecoin supplies [USD bn]This script shows crypto market inflows/outflows by showing the USD stablecoin supplies, using data from glassnode.com :
GLASSNODE:BUSD_SUPPLY
GLASSNODE:USDT_SUPPLY
GLASSNODE:USDC_SUPPLY
Using a simple 20 EMA, the line will change color showing stablecoin inflow or outflow. Traders can consider stable coin inflows (green) as bullish for Bitcoin price, while stable coin outflows (red) should be considered bearish for price.
Stablecoins DominanceStablecoins Dominance
The purpose of the script is to show Stablecoin's strength in the crypto markets.
5 Largest Stablecoins divided by Total Market Cap
Altcoin Dominance (without ETH) Excluding Stablecoins UnsymetricAltcoin Dominance (without ETH) Excluding Stablecoins Unsymetric
The purpose of the script is to show Altcoin's strength without Ethereum once we exclude stablecoins.
So we look into all altcoins besides eth and besides stablecoins divided by a value of eth+btc
Altcoin Dominance Excluding EthereumAltcoin Dominance Excluding Ethereum
The purpose of the script is to show Altcoin's strength without Ethereum.
Pretty much shows Altcoin's Dominance in comparison to Market Cap once we exclude Ethereum.
ETH Dominance Excluding StablecoinsETH Dominance Excluding Stablecoins.
The purpose of the script is to show Ethereum's strength relative to other cryptocurrencies.
Pretty much shows ETH Dominance in comparison to Market Cap once we exclude the 5 largest stablecoins.
Stock Value EUThere are many method of measuring value of stock. However I'm proposing most basic stock valuation based on Book Value, Earnings , Dividends and Money Supply:
SV = (BVPS + EPS + DPS ) * ( M3 /M1)
BVPS = Book Value Per Share (Asset - Liability)
EPS = Earnings Per Share
DPS = Dividends Per Share
M3 = M3 Money Supply (Money Market)
M1 = M1 Money Supply (Base Money)
Fundamental value of a stock should be determine by it's BV which means total asset of a company if were liquidated today and use some of it's asset to pay of the debt. So technically BVPS is the intrinsic value of a stock. However the company is generating an earning which is profit and loss that should be added on top of the fundamental value of company, so thus EPS should be added on top of Book Value Per Share. Aside from earnings , the stock that you purchase give you dividends as your return so DPS also can be included on top of that. So all in all BVPS, EPS and DPS are the primary valuation of the stock. However most of the stock are traded way higher than their fundamental valuation. The main reason of this is the market dynamics which is driven by central banks printing of base money supply M0. The banking credit system then lend out this money to money markets as loan so that peoples can invest and by the company stock. This money supply extension of credit is known as money market M2 which drive the stock inflated price. The ratio between M2 and M0 are the money multiplier effect that drives the stock price higher than it's valuation. So the Stock Value should be the total number of BVPS + EPS + DPS times the M2 money multiplier as shown by this indicator.
If the stock are traded above their SV value, that means it's an overpriced bubble
If the stock are traded below their SV value, that means it's an underpriced burst
This indicator is only applicable for EU based stock chart, because we use EU money supply to do the money multiplier calculation. For other country stocks take a look our other indicator:
- Stock Value EU - applicable for European stocks
- Stock Value CN - applicable for Chinese stocks
- Valuation Rainbow - applicable for all countries
Live Portfolio ScreenerThe live portfolio screener indicator is a tool that help users to track the performance of their investments in real-time. The indicator provides a detailed breakdown of the user's portfolio, including the current profit and loss (P&L) for each stock that is invested in. This allows users to quickly and easily see how their portfolio is performing and make informed decisions about their investments on charts. Overall, this tool is an essential tool for anyone looking to stay on top of their investments and make data-driven decisions.
This indicator can load any symbol globally usable.
How to use this indicator ?
in this indicator firstly
you have add script name. (For example if you want to add symbol you have add in 's01 ' means the first symbol)
after that
you have to add price for each (For example if you want to add buy price for the first symbol then add the buy price in ' Bp01 ')
then the quantity comes in picture which is below price list and named here as Bq01 which means 'Buy quantity for first symbol'
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.
US Fed Rate Hike Historical DatesThe script applies Blue (color can be changed) highlights to the days that the US Federal Reserve Hiked interest rates. Data goes back to the 60's. This can be applied to any chart/timeframe to view how the asset behaved before/during/after Federal Rate Hikes.
****This was updated as of Dec 2022... Any decisions after Dec 2022 will not show up in this indicator.
Versions may be updated periodically to include new data.
Hope this helps. Happy Trades
-SnarkyPuppy
US Fed Rate Cut Historical DatesThe script applies Purple (color can be changed) highlights to the days that the US Federal Reserve Cut interest rates. Data goes back to the 60's. This can be applied to any chart/timeframe to view how the asset behaved before/during/after Federal Rate cuts.
****This was updated as of Dec 2022... Any decisions after Dec 2022 will not show up in this indicator.
Versions may be updated periodically to include new data.
Hope this helps. Happy Trades
-SnarkyPuppy
DXY Overlay CompareOverlays the DXY chart over the top of any other chart. When the dollar strength increases, asset prices can drop and vice versa. Was created personally to compare with the price of Bitcoin.
DCF ApproximationThe indicator for calculating and visualizing the Discounted Cash Flow (DCF) for a selected stock.
It uses the Weighted Average Cost of Capital (WACC) with a margin of safety and the Free Cash Flow (FCF) calculation for cash flow analysis. The DCF is calculated by summing the discounted annual FCFs over a 10-year period.
The chart color depends on the value of the current price percentage - it turns red when the market price is over valuation, yellow around a fair value, and green for the price under valuation.
This is an early version of the indicator, so I would appreciate your suggestions for improving the code and formulas.
FOREX MASTER PATTERN Value Lines by nnamThe Forex Master Pattern is form of technical analysis that provides a framework for spotting hidden price patterns that reveal the true movement of the market. The Forex Master Pattern Value Lines Indicator helps to identify this Phase 1 contraction of the Forex Master Pattern cycle.
HOW THIS INDICATOR WORKS
This indicator looks for a sustained contraction in price initially indicated by TWO contraction bars in a row, thus detecting a contraction point and a potential new master pattern origin point.
Once a contraction point is detected, a blue box will appear on the chart with a thick solid blue line projecting from its center. These are potential "Points of Origin" and "Value Lines" that institutional traders use to balance their books.
As shown above, when price begins to move (detected by engulfing and/or expansion candles), an Arrow is plotted to the chart identifying a possible expansion.
As shown above, previous Value Lines typically serve as future support / resistance points, however, due to the unique location of these lines, they are not typically identified as support or resistance levels on standard S/R indicators.
Color Coded Candles assist the user in quickly identifying contraction and expansion areas as well as trends away from the value-line. The expansion candles, Up/Down candles, and contraction BARS are all inspired by the STRAT (Rob Smith) and are specifically incorporated into this indicator to assist the user in finding potential reversals during the expansion phase. This helps to avoid the whiplash typically associated with the first phase of Forex Master Pattern.
USER DEFINED SETTINGS
- Line Settings Section -
#Max Lines to Show
This limits or extends the total number of lines shown on the chart. The Default is 12 (minimum is 1, maximum is 499).
#Show Lines on Chart
This setting turns all lines ON or OFF on the chart
#Show Value-Lines on Chart
This setting turns the Value Lines ON or OFF on the chart
#Set Value-Line Width
This setting sets the width of the value-line displayed on the chart
#Only show last value-line on the chart
This setting removes all but the most recent value-line from the chart
- Box Settings Section -
#Show Last Box Only
This setting turns OFF all previous boxes and only shows the most recent contraction box on the chart
- Expansion Area Settings Section -
#Show Expansion Area
This setting turns ON or OFF the expansion area fill
#Show Expansion Guidelines on Chart
This setting turns ON or OFF the guidelines that show the current direction of the price via an extended line.
- Candle Colors Section -
#Color Code the Candles
This setting turns on Color Coding for the Candles which changes the colors of each candle type:
1. Contraction Candle
2. Expansion Candle
3. Up Candle
4. Down Candle
5. Engulfing Candles (engulfing candles override other candle settings if turned ON)
- Engulfing Patterns Section -
#Show Engulfing Patterns
This setting turns ON or OFF engulfing candle plots globally
#Show Bullish Engulfing Candles
This setting allows the user to turn Bullish Engulfing signals ON or OFF
#Show Bearish Engulfing Candles
This setting allows the user to turn Bearish Engulfing signals ON or OFF
I hope you enjoy this indicator and that it provides some value. Please reach out to me with any suggestions or need training on the indicator.
True Bitcoin Value USD - Mario MThe average mining costs of one bitcoin equals to the true intrinsic value
Globally, the Bitcoin network uses around 0.5% of the world’s electrical power supply.
The sheer amount of electrical power and complex hardware required to operate a mining farm has intrinsic value.
This gives bitcoin a fundamental cost to create, and thus intrinsic value.