Graham FormulaThis is an Tradingview implementation of the Grahams Formula as described in Benjamin Grahams book "The Intelligent Investor".
In theory this can be used to screen for over- and undervalued stocks, however as Graham himself notes, you should look into other fundamentals when using them in conjunction with Grahams formula.
Fundamental Analysis
Buy Any Bar By ChenycoBuys amount of shares by bars with specified amount of money (100$ for a month bar for example).
Including commissions.
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.
Funamental and financialsEarnings and Quarterly reporting and fundamental data at a glance.
A study of the financial data available by the "financial" functions in pinescript/tradingview
As far as I know, this script is unique. I found very few public examples of scripts using the fundamental data. and none that attempt to make the data available in a useful form
as an indicator / chart data. The only fitting category when publishing would be "trend analysis" We are going to look at the trend of the quarterly reports.
The intent is to create an indicator that instantly show the financial health of a company, and the trends in debt, cash and earnings
Normal settings displays all information on a per share basis, and should be viewed on a Daily chart
Percentage of market valuation can be used to compare fundamentals to current share price.
And actual to show the full numbers for verification with quarterly reporting and debuggging (actual is divided by 1.000.000 to keep numbers readable)
Credits to research study by Alex Orekhov (everget) for the Symbol Info Helper script
without it this would still be an unpublished mess, the use of textboxes allow me to remove many squiggly plot lines of fundamental data
Known problems and annoyances
1. Takes a long time to load. probably the amount of financial calls is the culprit. AFAIK not something i can to anything about in the script.
2. Textboxes crowd each other. dirty fix with hardcoded offsets. perhaps a few label offset options in the settings would do?
3. Only a faint idea of how to put text boxes on every quarter. Need time... (pun intended)
Have fun, and if you make significant improvements on this, please publish, or atleast leave a comment or message so I can consider adding it to this script.
© sjakk 2020-june-08
LotSizeCalc_v1 (EUR)Hey there,
here I like to publish my first TradingView Script for the Indicator "LotSizeCalc" which calculates the LotSize for the currency '€' for e.g. the MT4-App depending on the following parameters:
- Stop Loss in pips (example: 30 pips)
- Account Balance in EUR (example: 500€)
- Risk in % (example: 1%)
It is very similar to the MyFxBook Calculator on their website, where you can compare the results for the lotsize.
You receive the calculated value next to the indicator, and - for mobile device - it also shows a label with the calculated lotsize (which you can deacivate via settings if you like).
The indicator works for the included common foreign Forex pairs (AUD, CAD, CHF, JPY, JPY, GBP, NZD, USD) in order to calculate the risk to a EUR-Trading Account.
Actually, the Script allows in general some adaptations due to your trading system. This one is the most basic version.
Happy pips and I wish you safe and risk-calculated trading!
Marcel :)
PEG RatioHello everyone,
Quick script to check the PEG Ratio.
What is PEG Ratio?
The price/earnings to growth ratio (PEG Ratio) is a stock's price-to-earnings (P/E) 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 is thought to provide a more complete picture than the more standard P/E ratio.
A PEG Ratio greater than 1.0 means that the stock is overvalued, while below 1.0 means is is undervalued. When the PEG Ratio is exactly 1.0, then the stock is trading at fair valuation.
Formula:
PEG Ratio = (Price / EPS) / EPS Growth
Examples:
Company A:
Price per share = $46
EPS this year = $2.09
EPS last year = $1.74
Company B
Price per share = $80
EPS this year = $2.67
EPS last year = $1.78
Company A
P/E ratio = $46 / $2.09 = 22
Earnings growth rate = ($2.09 / $1.74) - 1 = 20%
PEG ratio = 22 / 20 = 1.1
Company B
P/E ratio = $80 / $2.67 = 30
Earnings growth rate = ($2.67 / $1.78) - 1 = 50%
PEG ratio = 30 / 50 = 0.6
The company A is overvalued whiled the B is undervalued.
In this script an overvalued stock is considered when the PEG Ratio is above 1.1, while it is 0.9 for an undervalued stock.
Only works with Stocks.
Happy trading,
Portfolio and Risk Management: Gold Based Net Growth CoefficientHello, if our topic is stocks, whatever signal we get, we have to divide and reduce the risk.
Apart from the risk, we need inflation-free figures to detect a clear growth.
Gold is one of the most successful tools to beat inflation in this regard in the historical context.
When the economy is good, we have to beat both commodities and inflation.
For this purpose, I found it appropriate to develop a net growth factor free from gold growth.
Investors need several stocks with a high growth rate and as much risk-free as possible.
Personally, I think that the science of portfolio and risk management will last a lifetime and should continue.
I think this subject is a research and development subject.(R & D)
My research and publications on this matter will continue publicly.
I wish everyone a good day.
NOTE : You can determine the return in the time period you want to look back by adjusting the period in the rate you want from the menu.
The standard value is 200 days. (1 year)
Inflation Rate HistogramThis script is designed to show a histogram of the inflation rate, based on FRED's CPI data. It shows the yearly change in cpiaucsl. As of right now, this script only works correctly on the yearly timeframe (12M). I'm currently looking into a solution to make this script work on all time frames. This script can be useful for comparing growth to inflation, or just if you want to see how inflation was for a certain year. This script really puts the stagflation into perspective.
Coronavirus Cases Doubling Indicator - Days to doubleHello guys! Batcash here!
Since the coronavirus has become a global pandemic, all eyes have been on the efforts to control the growth of the infections.
To help the common masses understand the statistics of exponential growth I have decided to make the Coronavirus growth indicator.
Basically the indicator will give an estimate of how many days are required for the current number of coronavirus cases to double.
So if the indicator lists the current number as 2.6, it means that the current number of coronavirus infections eg. 33272 as of writing in the US will double to 66544 in 2.6 days if the current growth rate persists.
Please use the following search title to search for Confirmed Coronavirus cases (CONFIRMED_)
eg.
CONFIRMED_US - USA
CONFIRMED_KR - South Korea
CONFIRMED_CN - China
CONFIRMED_DE - Germany
The higher the number of days in the indicator, the better!!
Please stay safe and stay informed!
Wish the world a speedy recovery!
[e2] EDS Key & AvwapThis indicator shows a Key Level Support & Resistance level and VWAP that resets on your choice of the stock's Earnings , Dividends or Splits release date.
A maximum of 8 bands calculated using a factor of the anchored VWAP's standard deviation can be displayed.
Note
The script is designed for stock-trading only.
Credits
Inspired by timwest , LazyBear 's Earnings S/R Levels and MichelT 's Earnings, Splits, Dividends scripts.
Earnings, Splits, DividendsExample of requesting Earnings, Splits, Dividends using pine-script.
That way is inner representation of data in TradingView, so it can be changed any time. It's just an example of requesting of the data.
Description of the series.
Earnings:
time: report date (unix time stamp)
open: estimate value
low: reported value
close: actual value
high: fiscal period (unix time stamp)
Splits:
time: split date (unix time stamp)
close: split denominator
open: split numerator
Dividends:
time: ex-dividend date (unix time stamp)
close: amount
Dividend Yield with 2 Moving Average for see SpreadI "applied" the dividend yield on the original library script which I adding 2 Exponential Moving Average.
That is average the Long term of Dividend Yield and Short Term of Dividend Yield.
To estimate the Trend that "Is it worth to invest this stock right now?"
If the dividend yield right now is higher than both maybe it worth it on the past
(You can used your price pattern skill to make an entry with backed by adjusted yield------> I think it will help you for estimate pre-total return for Hybrid with Fundamental and Technical )
Hope it will help you ><
PS. it has a problem when using with "Split" stock ( for example 1 Year on "Day" Timeframe )
if somebody can help me .pls help me pls TT
Ps2. Be warry of the stock that don't has consistency pay dividend out and some "special dividend" that don't come form the real operating income.
--------------------------------------------------------------------------------------------------------------------------------------------------------------
สวัสดีมิตรสหายเทรดเดอร์หุ้นไทยทุกท่าน ผมสร้างอินดิเคเตอร์ สำหรับดูผลตอบแทนจากเงินปันผล พร้อมกับเส้นค่าเฉลี่ย เคลื่อนที่ 2 เส้น
เพื่อเป็นการดูแนวโน้มของราคาหุ้น และเพื่อจับจังหวะการซื้อหุ้นนะครับ
ผมขอยกความดีความชอบของ ท่าน Library Script นะครับ ที่มี Format ของการคำนวณเงินปันผลมาให้ ผมทำเพียงแค่ปัดฝุ่น และ Mod เส้นค่าเฉลี่ยขึ้นมาครับ
ไม่มีอะไรจะดีไปกว่าการซื้อหุ้นแล้วมีปันผลรองรับ ซับแรงกระแทกตอนที่กดเข้าซื้อหุ้นไปอีกแล้ว
สำหรับมิตรสหายท่านใดที่ศึกษาศาสตร์ด้าน "พื้นฐาน" และ "เทคนิค" อินดิเคเตอร์นี้อาจช่วยท่านหาจุดเข้าซื้อ ที่คุ้มค่าด้านเงินปันผล และเป็นจุดซื้อที่แม่น ขลัง มากขึ้นนะครับ
ผมว่าหากใช้ควบคู่กับเรื่อง Price Pattern คงเป็นประโยชน์ไม่น้อยเลย
ขอให้อินดิเคเตอร์นี้มิประโยชน์แก่ทุกท่านนะครับ
Ps. บางที เจ้าอินดิเคเตอร์นี้อาจมีปัญหา เมื่อใช้กับหุ้นที่เคยมีการแตกพาร์มาก่อนนะครับ ท่านอาจต้องใช้ Timeframe อื่นที่ไม่ครอบครุมช่วงเวลาที่แตกพาร์ครับ
ซึ่งตรงนี้ ผมยังหาวิธีแก้ไม่พบครับ มิตรสหายท่านใดช่วยมาก ผมจะยินดีอย่างยิ่ง
Ps2. ระมัดระวังหุ้นที่จ่ายปันผลไม่สม่ำเสมอ และหุ้นที่จ่ายปันผลจากกำไรพิเศษ หรือจ่ายจากเงินที่ไม่ได้มาจากการดำเนินงานตามปกตินะครับ เช่นการขาย Asset เข้า กอง Reit ขายหุ้นในบริษัทลูกและอื่นๆ
Bitcoin Logarithmic Growth Curves & ZonesI found this awesome script from @quantadelic and edited it to be a bit more legible for regular use, including coloured zones and removing the intercept / slope values as variables, to leave space for the fib levels in the indicator display. I hope you all like it.
Bitcoin Halving CountdownHello traders,
I offer you today the BTC halving countdown updated in real-time on your charts
I inspired myself greatly from the gentleman @everget's script LTC halving countdown below
(
The countdown date is coming from that source www.bitcoinblockhalf.com.
The halving date is estimated to be around May 13th, 2020 .
That date is hardcoded in the script and is used for the countdown calculation.
The Bitcoin block mining reward halves every 210,000 blocks, the coin reward will decrease from 12.5 to 6.25 coins.
Enjoy the weekend
Dave
BTC Transaction/On-Chain Volume (Basic)Description:
Whale: Whale utilizing discounted prices (increasing on-chain volume & decreasing price)
Recovering: Positive momentum in price after potential whale activity
Cycle Volume Support: The transaction volume support during a cycle
What’s the best time to invest?
After institutions make up their mind at low price levels.
How’s on-chain volume related to whales or institutional money?
On-chain volume is contributed not only by using BTC as payment methods, but more importantly by large custodians using the BTC chain to settle internal whale trades. When OTC volume is estimated 2-3 times of exchange volume, and when total on-chain volume is only a small fraction of the exchange volume, the OTC settlement plays a big factor in moving the on-chain volume around.
Why does the price drop further after spotting whale money?
Does new money equal higher true value? Yes.
Does new money equal higher price? No.
Whales could not only ladder in when they see the price on discount, but also push the price further down to accumulate at better price levels. However, either route chosen, it’s most likely for the price to rise to a higher level compared to the level when the whales enter. Whales are here to make money after all.
Rate Of Change Earnings Move - ROCEMRate Of Change Earnings Move
What is it and how does it work?
The Rate of Change Earnings Move indicator or ROCEM is an indicator designed for giving the user an idea of how much a stock has moved up or down in past earnings reports. This is ideal for options traders who can use ROCEM to calculate whether or not their long straddles are actually probable of happening.
How it works
The indicator measures the absolute value rate of change and then calculates the average rate of change for the day of the earnings report for the past 8 earnings reports (2 years). It then takes the current stock price and finds the upper and lower price based on the average rate of change for past earnings.
I have also included a moving average (purple line), use this to see if the current rate of change is higher than usual.
Additionally, earnings reports are marked with a red x on the indicator.
How to trade ROCEM
This is primarily made for options trading so I will be explaining how it can be used for that. It is not suited for traditional stock trading as it does not determine a market direction.
Select a stock with an upcoming earnings
Enter your per leg commissions in the indicator if you want it to calculate new upper and lower prices (makes it easier to determine if the options trade will pass the breakeven when commissions are factored in)
Compare your long straddle breakevens with the upper and lower prices of the indicator. If the upper breakeven is smaller than the upper price in ROCEM and the lower breakeven is larger than the lower price in ROCEM, then a long straddle position could be considered a reasonable trade based on past earnings performance.
Blockchain Fundamentals - Satoshies Per Dollar by Cryptorhythms🔗Blockchain Fundamentals - Satoshis Per Dollar by Cryptorhythms
Intro
SPD is a new metric I propose which can be used to determine general sentiment and help narrow down periods to DCA .
Description
In the most basic sense this indicator is simply showing you how many satoshies are equal to one US dollar . This can be a useful metric to keep stored in the back of your mind. It can also give you a new satoshi based perspective on bitcoin pricing.
I simply added an MA selection option to give a basic sentiment reading. You could also use the red areas as a modified DCA (i.e. only do dollar cost averaging when red zone is in effect.
The indicator is not really meant for buy/sell signaling but more as a reference
👍 We hope you enjoyed this indicator and find it useful! We post free crypto analysis, strategies and indicators regularly. This is our 71st script on Tradingview!
💬Check my Signature for other information
Stock to Flow Model with Standard Deviation BandsThis Study takes the Stock to Flow Model for Bitcoin as presented by 100trillionUSD and smoothes it using an SMA. Then it calculates the close's standard deviation from it and displays the 2-Sigma Bands.
The stock to flow model seems to be one of the best predictions of Bitcoins price.
The standard deviation bands are supposed to show situations in which Bitcoin is significantly over- or under-bought.
Bitcoin Network Value to Transactions [aamonkey]Cryptoassets have been quite turbulent in the past few weeks.
At times like this, it is especially important to look at the fundamental foundations of cryptoassets.
This indicator is based on the Network Value to Transactions , or NVT .
Definition:
NVT = Network Value / Daily Transaction Volume
Because this indicator is pulling the Daily Transaction Volume for BTC it can only be used for BTC and the daily timeframe.