[GTH] RevenueVisually similar to the GTH Earnings indicator, this indicator plots
Reported Revenue (black line)
Difference to Estimated Revenue (colored bars)
Percentage change to the previous Reported Revenue (tags)
Note 1: Although in Tradingview the 'E' tags on the time line display Revenues alongside with Earnings , there is a difference in timing. Revenues are reported quarterly; Earnings reporting dates differ with each stock. Hence, the tags in this indicator are not necessarily aligned with the Earnings reporting dates.
Note 2: It should be obvious that this indicator can only report data provided by Tradingview. Even more obviousy, it can not display revenues of anything else but stocks.
If you find a malfunction, please provide examples. "Does not work" is not helpful.
基本面分析
10-Year Bond Yields (Interest Rate Differential)With this little script, I have attempted to incorporate fundamental data (in this case, 10-year bond yields) into technical analysis . When pairing two currencies, the one with a higher bond interest rate usually appreciates when the interest rate differential widens, or, to use a simple example: in a currency pair A vs. B, with A showing a higher bond yield than B, a widening interest rate gap is likely to help A and create a buying opportunity (shown as a blue square at the bottom of the chart), while the opposite is true when the gap tightens (sell signal, red square).
While long-term investors know about and make use of the importance of bond yield fluctuations, most short-term traders tend to dismiss the idea of using fundamental data, mostly for lack of quantifiability and limited impact in an intraday environment. After extensive backtesting on daily and intraday charts (6-12 hours), however, I realized this indicator still managed to produce useful results (less useful than on monthly and yearly charts, to be fair, but still useful enough), especially when paired with simple price-driven indicators, such as Heikin Ashi or linear regression .
My personal (and thus subjective) thoughts: worth a try. Buy and sell signals frequently contradicted both more popular indicators and my gut feeling and managed to take out losing trades that I had considered trades with a high winning probability. In other words, when the market lures traders into seemingly promising trading decisions, this indicator might give you an early warning, especially when you manage to adjust period and continuity parameters to your trading strategy.
Currency pairs used in this script are all possible combinations of the eight majors. Each security has been assigned a name ("inst01" to "inst08" in the code) and a broker; if you make changes to the code, be sure not to mess with currency and broker names as this would render the entire script useless. Good luck trading, and feel free to suggest improvements!
[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
Multi Yield CurveAn inversion between the 2 year and 10 year US treasury yield generally means a recession within 2 years. But the yield curve has more to it than that. This script helps analysis of the current and past yield curve (not limited to US treasury) and is very configurable.
"A yield curve is a line that plots yields (interest rates) of bonds having equal credit quality but differing maturity dates. The slope of the yield curve gives an idea of future interest rate changes and economic activity." (Investopedia)
When the slope is upward (longer maturity bonds have a higher interest rate than shorter maturity bonds), it generally means the economy is doing well and is expanding. When the slope is downward it generally means that there is more downside risk in the future.
The more inverted the curve is, and the more the inversion moves to the front, the more market participants are hedging against downside risk in the future.
The script draws up to 4 moments of a yield curve, which makes it easy to compare the current yield curve with past yield curves. It also draws lines in red when that part of the curve is inverted.
The script draws the lines with proper length between maturity (which most scripts do not) in order to make it more representative of the real maturity duration. The width cannot be scaled because TradingView does not allow drawing based on pixels.
This script is the only free script at time of writing with proper lengths, showing multiple yield curves, and being able to show yield curves other than the US treasury.
█ CONFIGURATION
(The following can be configured by clicking "Settings" when the script is added to a chart)
By default the script is configured to show the US treasury (government bond) yields of all maturities, but it can be configured for any yield curve.
A ticker represents yield data for a specific maturity of a bond.
To configure different tickers, go to the "TICKERS" section. Tickers in this section must be ordered from low maturity to high maturity.
• Enable: draw the ticker on the chart.
• Ticker: ticker symbol on TradingView to fetch data for.
• Months: amount of months of bond maturity the ticker represents.
To configure general settings, go to the "GENERAL" section.
• Period: used for calculating how far back to look for data for past yield curve lines. See "Times back" further in this description for more info.
• Min spacing: minimum amount of spacing between labels. Depending on the size of the screen, value labels can overlap. This setting sets how much empty space there must be between labels.
• Value format: how the value at that part of the line should be written on the label. For example, 0.000 means the value will have 3 digits precision.
To configure line settings per yield curve, each has its own "LINE" section with the line number after it.
• Enable: whether to enable drawing of this line.
• Times back: how many times period to go back in time. When period is D, and times value is 2, the line will be of data from 2 days ago.
• Color: color of the line when not inverted.
• Style: style of the line. Possible values: sol, dsh, dot
• Inversion color: color of the line when the curve inverses between the two maturities at that part of the curve.
• Thickness: thickness of the line in pixels.
• Labels: whether to draw value labels above the line. By default, this is only enabled for the first line.
• Label text color: text color of value label.
• Label background color: background color of value label.
To configure the durations axis at the bottom of the chart, go to the "DURATIONS" section.
• Durations: whether to show maturity term duration labels below the chart.
• Offset: amount to offset durations label to be below chart.
█ MISC
Script originally inspired by the US Treasury Yield Curve script by @longfiat but has been completely rewritten and changed.
BINANCE_Minimum_qty_for_tradingWe can not buy just 0.001ETH in Binance on 2022.8.8
Why? Binance have trading role about the minimum qty of coins.
Until now, we can not find the info in TradingView.
I hope Our TradingView give us this updating info easily oneday.
I am not a good English speaker.
Sorry about my short explanation.
reference: www.binance.com
Investing - Order HelperFYI: This idea is not new and I believe there is plenty of other indicator similar to this. I have used 'Scaled.orders' from @highewaterr and add in additional calculation.
This is for education purposes only, if you decide to use it LIVE and you lose money using it, it is not my fault. Do not risk what you can't afford to lose.
Order Helper was improved to better help simplify my investing journey.
It calculates each size and price automatically for me after inputting into the settings.
Unlike the common investing method (DCA Daily/Weekly/Monthly or Support & Resistance).
There is issue for these investing method.
DCA based on time is prompt to buying at higher price which will bring your average cost and your risk higher .
So why risk more when you have plenty of time to wait for the project/stocks to be at a discount?
Support & Resistance based can be a hustle to some investor like me.
Why?
1. Complication when drawing multiple support & resistance line / zone.
2. Time Consuming (Refer to point 1)
To reduce/eliminate the issue prompt by these 2 investing method, I use order helper.
It free up that few minutes of each chart, reduce the complexity in drawing support & resistance.
However, it bring method is prompt to 'missing out'.
IF I were to stick to the prices and size based on this indicator, my order might not be triggered and price just continue going.
But personally, I am fine with it. As I would rather miss out than putting my hard earned money in a higher risk.
---------------------------------------------------------------------------------------------------------------------------------
Main Component of this indicator
Scaling options is the main component of this indicator.
There is 4 options to this component:
Linear
Ease-in -> The amount of orders/size CLOSEST to the START price, will be higher.
Ease-out -> The amount of orders/size FURTHEREST to the START price, will be higher.
Ease-in-out -> It's a mixture of Ease-in and Ease-out.
How to use this indicator?
It is best for you to play around with the settings, as it will be easier to understand rather than reading how I do it.
There is no right or wrong method in using this indicator. But this is how I use it.
Go to a higher time frame (Weekly/Monthly)
Identify major support & resistance
Open up 'Order Helper' settings
Input your preferred options (Linear/Ease-in/Ease-out/Ease-in-out)
Input the start price -> referring to the first major support & resistance line (closes to the current price)
Input the end price -> referring to the last major support & resistance line (furtherest away from the current price)
Input the number of orders you preferred
Position Size that you wish to purchase
I decide not to share the source code of this as I do not fully understand the math calculation behind.
But if it works, and it helps me. Then those math calculation doesn't really matter.
Hopefully this will help simplify your investing journey.
If there is any question, feel free to comment it below and I will try my best to assist.
Investing - Correlation Table This correlation tables idea is nothing new, many sites provides it.
However, I couldn't find any simple correlation indicator on TradingView despite how simple this indicator is.
This indicator works as its called. Calculating the correlation between 2 projects (can be used in stocks as well) using the 'ta.correlation' feature built into pinescript.
When it comes to investing, we do not want our stocks / crypto project to be heavily correlated to each other.
If they are heavily correlated to each other, then there isn't much point in diversifying.
That being said, it can be useful for traders who trade multiple pairs.
-----------------------------------------------------------------------------------------------------------------------------------------------------------
In this indicator, consist of 5 primary input and 15 secondary input (Symbol List).
Correlation Source:
This input options allow you to change how the correlation is calculated. By default, it uses 'close'.
Correlation Percentage(%):
This input options allows you configure how many (%) of correlation is considered as 'decoupled'.
This correlation will only move between -100% ~ 100%.
100% refers to it moving together.
-100% refers to it moving the opposite direction.
For example, Project A rises in Price, what is the possibility of Project B following:
A 100% correlation between Project A and Project B, refers to Project B will follow Project A movement.
A 50% correlation between Project A and Project B, refers to there is only 50% chance for Project B to follow Project A movement.
A -20% correlation between Project A and Project B, refers to there is a 20% chance of Project B moving the opposite direction of Project A
(Refers to the table on chart above to better understand what the numbers means. DOT/USD has a 100% correlation to DOT/USD. However. MXCUSDT has a -37.2% correlation to DOT/USD.)
Amounts Bars To Check:
This input options will check the amount of bars since the last bar in the chart.
If you want to know the correlation of the past 100 days in a daily chart, you will enter '100' into this options and it will check only the past 100 days.
Symbol List
This will allow you to input all the project symbol ticker ID to add into the correlation table.
-----------------------------------------------------------------------------------------------------------------------------------------------------------
Originally, I wish to use for loop to go through the symbol list to reduce the amount of code required. However, due to limitation of 'request.security' feature, I had to abandon that idea and use hard-coded for requesting security and use a while loop to identify the symbol correlation value in the array set then set the table value accordingly.
If there is any script writer could improve this or any unclear explanation, feel free to drop a comment below.
Inflation Adjusted Performance: Ticker/M2 money supplyPlots current ticker / M2 money supply, to give an idea of 'inflation adjusted performance'.
~In the above, see the last decade of bullish equities is not nearly as impressive as it seems when adjusted to account for the FED's money printing.
~Works on all timeframes/ assets; though M2 money supply is daily data release, so not meaningful to plot this on timeframe lower than daily.
~To display on same pane; comment-out line 6 and un-comment line 7; then save, remove and re-add indicator.
~Scale on the right is meaningless; this indicator is just to show/compare the shape of the charts.
Binance Basis OscillatorBinance Basis Oscillator illustrates the premium or discount between Binance spot vs perps.
This indicates whether speculators (i.e. traders on perps) are paying premium vs spot. If true then speculation is leading, indicating euphoria (at certain levels).
Conversely, spot leading perps (i.e. perps at a discount) shows extreme bearish conditions, where speculation is on the short side. Indicating times of despair.
Operating Cash Flow on Total Assets RatioThis indicator divides the company's Operating Cash Flow (TTM) by the company's Total Assets (FY). This ratio gives potential investors the amount of operating cash flow generated from every dollar of asset owned and is a measure of financial efficiency.
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 !
Average Price LineThis was published in substitute of the original AVG price line that was already implemented into TradingVIew.
Get the average price in the desired range you want.
Global Economic MonitorThis indicator shows multiple economic data such as inflation rate, GDP etc. of the countries below.
U.S.
Japan
EU
U.K.
Australia
New Zealand
Canada
Switzerland
China
You can select 3 data at the same time so that you can compare data in single country or among multiple countries.
Available data:
Inflation Rate(YoY)
Inflation Rate(MoM)
Inflation Expectation
GDP
GDP Growth
Unemployment Rate
Retail Sales
—————————————
主要国の経済指標(インフレ率やGDPなど)を表示することのできるインジケーターです。
対象国/地域:
アメリカ
日本
EU
イギリス
オーストラリア
ニュージーランド
カナダ
スイス
中国
データは最大3つまで同時に表示することができます。
一つの国で複数指標を比較したり、同一指標を異なる国で比較する時に選択してください。
選択可能データ
インフレ率(対前年比)
インフレ率(対前月比)
期待インフレ率
GDP
GDP成長率
失業率
小売売上高
EPS Surprise (Working)Plots the EPS surprise between reported and estimate.
* This is a working version of the old EPS Surprise indicator here that seems to have been abandoned.
FOMC AnnouncementsThis indicator plots vertical lines at the scheduled times of US Federal Reserve's FOMC Meeting Announcements. Usually, that time or the 24 hours before and after could see big moves in markets. You can change those dates and times in the settings, and could use the indicator option "Add this indicator to entire layout" if you want to easily reflect that across all panes of a layout. Those lines will show on any symbol you switch to, saving you time and effort of drawing them manually.
Central Bank Interest RatesThis indicator simply plots the central bank’s interest rates of the countries below.
United States
Japan
EU
United Kingdom
Australia
New Zealand
Canada
Switzerland
——————————
各国中央銀行の政策金利を表示するインジケーターです。
Eurobond CurveABOUT
Dynamically plots 3 no. forward EUROBOND curves. When the curves converge (or worse crossover) there is higher risk of financial uncertainty and potential market correction.
The Eurobond Curves work in a similar way to treasury "yield curve inversion"; except the EUROBOND curves can signal much earlier than Treasuries therefore providing a leading indicator.
The indicator looks the the "near" (next year EUROBOND), "mid" (EUROBOND 2 years out) and "far" (EUROBOND 5 years out) to assess for crossovers.
When the "near" and "mid" curves crossover the "far" curve, concerning economic conditions are developing and it may be a good idea to reduce risk exposure to markets.
LIMITATIONS
The EUROBOND curve crossover events are rare, and this indicator uses data back to 2005 (using approximately 25 TradingView security functions). Given there are relatively few crossover events, the reliability of this indicator should be considered low. Nonetheless, there is decent alignment with treasury yield curve inversions in the 20 year period assessed. Given treasury yield curve inversions have predicted every recession for the last 70 years, we still think the EUROBOND Curves are a useful datapoint to monitor into the future and provide confluence to other risk management strategies.
The Real GBTC Premium (Capriole Investments)The real Grayscale Bitcoin (GBTC) premium / discount.
Charts the premium / discount of GBTC trust versus the Bitcoin spot price.
The GBTC premium / discount is frequently calculated incorrectly as it needs to consider the amount of Bitcoin behind each share of GBTC, which changes over time.
This indicator allows for an estimate of that change through time, a more realistic representation of 1 BTC to 1 BTC within GBTC.
If the chart is red, at a discount = can buy a synthetic Bitcoin (GBTC) at a discount to the underlying asset Bitcoin.
If the chart is green, at a premium = can buy a synthetic Bitcoin (GBTC) at a premium to the underlying asset Bitcoin.
The user should also consider that to-date, GBTC charges an annual fee which depletes the value within the GBTC trust. Grayscale wants to convert GBTC to an ETF, but its applications have so far been rejected by the SEC.
If GBTC is converted to an ETF in the future, we might expect that any GBTC discount shown here will be neutralized; potentially offering an additional return to any holder of GBTC, though this cannot be known for sure until such a conversion occurs.
EV-IndexThis script calculates the average market cap of various EV Stocks and plots the equivalent Cenntro share price based on an outstanding share count of 261,256,205 shares. EV Stocks included in index:
LCID, RIVN, NIO, LI, XPEV, FSR, NKLA, ARVL, PTRA, LEV, FFIE, GOEV, HYZN, NIU, HYLN, REE, RIDE, SEV, MULN, CENN
BankNifty VWAP VWAP - Volume-Weighted Average price ( VWAP )
The script draws Daily VWAP for BANKNIFTY SPOT , based on Futures Volume or underlying Index Stocks based on user input
BANKNIFTY INDICES IS THE WEIGHTAGE OF 12 STOCKS AS DECIDED BY EXCHANGE.
BANKNIFTY VWAP CALCULATES THE COMBINED VWAP OF THESE 12 STOCKS AND GENERATES VWAP FOR BANKNIFTY
It works with NIFTY as well. Please change the Symbol and Futures Volume symbol to "NSE:NIFTY" and "NSE:NIFTY1!"
NIFTY INDICES IS THE WEIGHTAGE OF 50 STOCKS AS DECIDED BY EXCHANGE.
NIFTY VWAP CALCULATES THE COMBINED VWAP OF THESE 50 STOCKS AND GENERATES VWAP FOR NIFTY
This script is intended for educational purposes only.
03/07/2022 WEIGHT AGE OF INDEX STOCKS (%)
HDFC Bank Ltd. - 27.63
ICICI Bank Ltd. - 22.98
Kotak Mahindra Bank Ltd. - 11.40
State Bank of India - 11.73
Axis Bank Ltd. - 11.6
IndusInd Bank Ltd. - 5.03
AU Small Finance Bank - Ltd. 2.54
Bandhan Bank Ltd. - 1.98
Bank of Baroda - 1.76
Federal Bank Ltd.- 1.76
PNB - 0.84
IDFC First Bank - 0.95
SMC RulesThis script allowes you to have a plan always shown on the chart.
You know how it is, sometimes you miss things and if you dont see your plan then you miss maybe an important part... so for this i wrote that simple script here.
So far it has 5 Sections you can edit in the settings to your liking.
On top you can also edit the swing structure you are seeing, so you dont have to always swap timeframes.
Also implemented are the Session times for Frankfurt, London, New York and Asia.
Its not enabled on default, but i find it quiet handy to have..
(including alerts)
I will update it from time to time, if you wish for something just let me know.