Fundamental Strength IndicatorName of the indicator: Fundamental Strength Indicator
A brief description of the indicator:
Using this indicator, you can evaluate a company in terms of the strength of its financial performance and see how that score has changed over time.
The background to the creation of the indicator:
The main idea that inspired me to create this indicator is: " Even if you buy just 1 share of a company, treat it like buying the whole business ". However, when I need to evaluate the business of thousands of public companies traded on exchanges, there is an objective difficulty: it is very time-consuming. To solve this problem, I had to create a scoring system of the fundamental analysis of the company, embodied in this indicator.
What the indicator looks like:
- First, it is a Histogram with bars of three colors: green, orange, and red. The width of the histogram depends on the depth of data from the company statements. The more historical data, the wider the histogram over time.
The green color of the bars means that the company has been showing excellent financial results by the sum of the factors in that time period. According to my terminology, the company has a " strong foundation " during this period. Green corresponds to values between 8 and 15 (where 15 is the maximum possible positive value on the sum of the factors).
The orange color of the bars means that according to the sum of factors during this period the company demonstrated mediocre financial results, i.e. it has a " mediocre foundation ". Orange color corresponds to values from 1 to 7.
The red color of the bars means that according to the sum of factors in this period of time, the company demonstrated weak financial results, i.e. it has a " weak foundation ". The red color corresponds to values from -15 to 0 (where -15 is the maximum possible negative value on the sum of factors).
- Second, this is the Blue Line , which is the moving average of the Histogram bars over the last year (*). Averaging over the year is necessary in order to obtain a weighted estimate that is not subject to medium-term fluctuations. It is by the last value of the blue line that the actual Fundamental Strength of the company is determined.
(*) The last year means the last 252 trading days, including the current trading day.
- Third, these are operating, investing, and financing Cash Flows expressed in Diluted net income. These flows look like thick green, orange, and red lines, respectively.
- Fourth, this is the Table on the left, which shows the latest actual value of the Fundamental Strength and Cash Flows.
Indicator settings:
In the indicator settings, I can disable the visibility of the Histogram, Blue Line, Cash Flows (each separately), and Table. It helps to study each of the parameters separately. It is also possible to change the color, transparency, and thickness of lines.
Mandatory requirements for using the indicator:
- works only on a daily timeframe;
- only applies to shares of public companies;
- company financial statements for the last 4 quarters and more are required;
- it is necessary to have the data from the Balance sheet, Income statement, and Cash flow statement, required for the calculation.
If at least one component required for calculating the Fundamental Strength is missing, the message " no data to calculate the Fundamental Strength correctly " is displayed. In the same case, but for the operating cash flow, the message " no data to calculate the Operating Cash Flow correctly " is shown, and similarly for other flows.
What is the value of the Fundamental Strength Indicator:
- allows for a quantitative assessment of a company's financial performance in points (from -15 to 15 points);
- allows you to visually track how the company's financial performance has changed (positively/negatively) over time;
- allows to visually trace the movement of main cash flows over time;
- speeds up the process of selecting companies for your shortlist (if you are focused on financial results when selecting companies);
- allows you to protect yourself from investing in companies with weak and mediocre fundamentals.
Indicator calculation methodology:
Guided by the "Treat stock investments as buying the whole business" approach, you can imagine what kind of business an investor is interested in owning and simultaneously determine the input parameters for calculating the indicator.
(!) Here it is important to emphasize that the idea of a benchmark business for investment is a subjective notion, so be sure to check whether it coincides with your own opinion.
For me, a benchmark business is:
- A business that operates efficiently without diminishing the return on shareholders' investment. To assess the efficiency and profitability of a business, I use the following financial ratios (*): Diluted EPS and Return on Equity (ROE). The first two parameters for calculating the indicator are there.
- A business that scales sales and optimizes its costs. From this point of view, the following financial ratios are suitable: Gross margin, Operating expense ratio, and Total revenue. Plus three other metrics.
- A business that turns goods/services into cash quickly and does not fall behind on payments to suppliers. The following financial ratios will fit here: Days payable, Days sales outstanding, and Inventory to revenue ratio. These are three more metrics.
- A business that does not resort to significant accounts payable and shows financial strength. Here I use the following financial ratios: Current ratio, Interest coverage, and Debt to revenue ratio. These are the last three parameters.
(*) If you want to learn more about these financial ratios, I suggest reading my two articles on TradingView:
Financial ratios: digesting them together
What can financial ratios tell us?
Next, each of the parameters is assigned a certain number of points based on its last value or the position of that value relative to the annual maximum and minimum.
For example, if the Current ratio:
- greater than or equal to 2 (+1 point);
- less than or equal to 1 (-1 point);
- more than 1 but less than 2 (0 points).
Or for example, if Diluted EPS:
- near or above the annual high (+2 points);
- near the annual minimum and below (-2 points);
- between the annual maximum and minimum (0 points).
And so on with each of the parameters.
As a result, the maximum number of points a company can score is 15 points. The minimum number of points a company can score is -15 points. These levels are marked with horizontal dotted lines: the green line is for the maximum value, and the red line is for the minimum.
I track the number of points for each day of a company's life on a three-color Histogram. The resulting average value for the last year is on the Blue Line. For me, it is the last value of the Blue Line that determines - this is the actual Fundamental Strength of the company.
The business valuation model I created is more suitable for companies that produce goods or services, and where tangible assets play a significant role in the business. For example, when analyzing companies in the financial sector, you may see the message "no data to calculate the Fundamental Strength correctly". Many of them may simply be missing data that is used as input for the calculation: Inventory to revenue ratio, Days sales outstanding, etc.
Examples:
Below I will evaluate various companies using the Fundamental Strength Indicator.
Tesla, Inc.
The indicator shows that since 2020, Tesla Inc. has been steadily increasing its Fundamental Strength (from 3.27 in Q1 2020 to 12.79 in Q1 2023). This is noticeable both by the color change of the Histogram from orange to green and by the rising Blue Line. If you look in detail at what has been happening with the financials during this time, it's clear what meaningful work the company has done. Revenues have almost quadrupled. Earnings per share have increased 134 times. At the same time, total debt to revenue fell almost 10 times.
Keurig Dr Pepper Inc.
The company, formed in 2018 by the merger of Keurig Green Mountain and Dr Pepper Snapple Group, has failed to deliver outstanding financial results, causing its Fundamental Strength to fall from 4.63 in Q1 2018 to -0.53 in Q1 2023. During this period, the drop in diluted earnings per share was accompanied by higher debt and deteriorating liquidity.
Costco Wholesale Corporation
Wholesaler Costco has been surprisingly stable in its financial performance and with steady growth in both earnings and revenue. This is the reason why the Histogram bars are exceptionally green throughout the calculation of the indicator. The Fundamental Strength has not changed in three years and is high at 11 points.
As an additional filter, for example, when comparing two companies where all other conditions are equal - I use the dynamics of Cash Flows expressed in Diluted net income (*). These are the thick green, orange, and red lines over the Histogram.
Why do I use income as a unit of measure of Cash Flows? Because it is a good way to make the scale of indicator values the same for companies from different countries, with different currencies. It also allows you to use a single value scale for both Cash Flows and Fundamental Strength.
(*) If you want to learn more about Cash Flows, I suggest reading my two articles on TradingView:
Cash flow statement or Three great rivers
Cash flow vibrations
So, an additional filter shows the dynamics of Cash Flows over time.
To interpret the dynamics of Cash Flows, I pay attention to the following patterns:
- How the cash flows are positioned in relation to each other;
- In which zone each of the cash flows is located - in the positive or negative;
- What is the trend of each of the cash flows;
- How volatile each of the cash flows is.
As an example, let's look at several companies in order to interpret the dynamics of their Cash Flows.
John B. Sanfilippo & Son, Inc.
This is the most ideal situation for me: operating cash flow (green line) is above the other cash flows, investment cash flow (orange line) is near zero and practically unchanged, and financial cash flow (red line) is consistently below zero. This picture shows that the company lives off its operating cash flow, does not increase its debt, does not spend a substantial amount of money on expensive purchases, and retains (does not sell off) assets.
Parker Hannifin Corporation
With stable operating cash flow (green line), the company implements investment programs by raising additional funding. This is noticeable due to an increase in financial cash flow (red line) and a simultaneous decrease in investment cash flow (orange line) with a significant deepening into negative areas. Apparently, there is not enough operating cash flow to realize the planned investments. One has to wonder how sustainable a company can be if it invests in its development using borrowed funds without a subsequent increase in operating cash flow.
Schlumberger N. V.
The chaotic intertwining of cash flows outside of the Fundamental Strength range (-15 to 15) is indicative of the company's rich life, but to me, it is an indicator of high riskiness of its actions. And as we can see, Fundamental Strength has only begun to strengthen in the last year, when the external appearance of cash flow has normalized.
Risk disclaimer:
When working with the Fundamental Strength Indicator and the additional filter in the form of Cash Flows, you should understand that the publication of the Balance sheet, Income statement, and Cash flow statement takes place sometime after the end of the financial quarter. This means that new relevant data for the calculation will only appear after the publication of the new statements. In this regard, there may be a significant change in the values of the Indicator after the publication of new statements. The magnitude of this change will depend both on the content of the new statements and on the number of days between the end of the financial quarter and the publication date of the statements. Until the date of publication of the new statements, the latest relevant data will be used for calculations.
I would like to draw your attention to the fact that the calculation of Fundamental Strength and Cash Flows requires the availability of data for all parameters of the valuation model . It uses data that is exclusively available on TradingView (there is no reconciliation with other sources). If at least one parameter is missing, I switch to another company's analysis to continue using the indicator.
Thus, the Fundamental Strength Indicator and an additional filter in the form of Cash Flows make it possible to evaluate the financial results of the company based on the available data and the methodology I created. A simple visualization in the form of a three-color Histogram, a Blue line, and three thick Cash Flow lines significantly reduces the time for selecting fundamentally strong companies that fit the criteria of the selected model. However, this Indicator and/or its description and/or examples cannot be used as the sole reason for buying or selling stocks or for any other action or inaction related to stocks.
Analisis Fundamental
Buy the Blood (BTC Bottom Indicator), by Scipio Pro"Buy the blood." We all plan to do it, but when , exactly?
This indicator analyzes on-chain flow data from CEXs to detect when the masses panic. In other words, it reveals when Bitcoins likely move from weak hands into stronger hands. These moments typically mark bottoms.
A buy signal should be taken as "get ready to buy". After all, blood in the streets often means no rush; you may choose to buy days later if a wick partly fills or at the candle's low, depending on your risk appetite.
It's important to note this indicator is fed daily data, so it should be used on the daily timeframe and higher. Secondly, this indicator is purpose-built for Bitcoin. Don't worry, though -- if you get access to this indicator you also get access to any other available "Buy the Blood" indicator.
Last thing, while the script uses request.security, it makes sure the indicator does not repaint.
As always, use at your own risk. Using indicators is no substitute for using one's brain.
Financial Radar Chart by zdmreRadar chart is often used when you want to display data across several unique dimensions. Although there are exceptions, these dimensions are usually quantitative, and typically range from zero to a maximum value. Each dimension’s range is normalized to one another, so that when we draw our spider chart, the length of a line from zero to a dimension’s maximum value will be the similar for every dimension.
This Charts are useful for seeing which variables are scoring high or low within a dataset, making them ideal for displaying performance.
How is the score formed?
Debt Paying Ability
if Debt_to_Equity < %10 : 100
elif < 20% : 90
elif < 30% : 80
elif < 40% : 70
elif < 50% : 60
elif < 60% : 50
elif < 70% : 40
elif < 80% : 30
elif < 90% : 20
elif < 100% : 10
else: 0
ROIC
if Return_on_Invested_Capital > %50 : 100
elif > 40% : 90
elif > 30% : 80
elif > 20% : 70
elif > 10% : 50
elif > 5% : 20
else: 0
ROE
if Return_on_Equity > %50 : 100
elif > 40% : 90
elif > 30% : 80
elif > 20% : 70
elif > 10% : 50
elif > 5% : 20
else: 0
Operating Ability
if Operating_Margin > %50 : 100
elif > 30% : 90
elif > 20% : 80
elif > 15% : 60
elif > 10% : 40
elif > 0 : 20
else: 0
EV/EBITDA
if Enterprise_Value_to_EBITDA < 3 : 100
elif < 5 : 80
elif < 7 : 70
elif < 8 : 60
elif < 10 : 40
elif < 12 : 20
else: 0
FREE CASH Ability
if Price_to_Free_Cash_Flow < 5 : 100
elif < 7 : 90
elif < 10 : 80
elif < 16 : 60
elif < 18 : 50
elif < 20 : 40
elif < 22 : 30
elif < 30 : 20
elif < 40 : 15
elif < 50 : 10
elif < 60 : 5
else: 0
GROWTH Ability
if Revenue_One_Year_Growth > %20 : 100
elif > 16% : 90
elif > 14% : 80
elif > 12% : 70
elif > 10% : 50
elif > 7% : 40
elif > 4% : 30
elif > 2% : 20
elif > 0 : 10
else: 0
Top12/Bottom88 Weighted Ratio I multiplied the price of each of the top QQQ holdings by their percentage weight, and the bottom 88 holdings for a total of 100. I divide the top 12 weighted price by the bottom 88 weighted price. So I can see when money is flowing in and out of the megacaps. It needs to be updated every quarter, which I may need to do now....
Custom Group Financials [Technimentals]This script allows the user to build custom groups and combine the same financial data from 40 different symbols simultaneously and plot it data as a total or as an average.
By default, the top 40 symbols in the QQQ are used. Between them they account for the majority of the index. This is a good workaround for the lack of ETF financial data in TradingView.
This functions much like any other financial indicator. You choose the financial data and period:
FY = Financial Year
FQ = Financial Quarter
TTM = Trailing Twelve Months
Bare in mind that some data only exists in FY data.
Thanks to @LucF for writing most of this code!
Enjoy!
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.
MTF Trendlines on chart_Pro[vn]Hello Traders .
👉This is an indicator of the trendlines in the analysis series with my trendlines.
- It statistics the upper and lower trend lines of the current Time Frame.
- Pine Script strategy draws pivot points and trendlines on the chart.
- This strategy allows the user to specify the interval to calculate the pivot points and the number of pivot points used to generate the trend lines.
- In the process of trading with the trendline, I see different timeframes showing each trendline differently, many times the trendline in the 15m frame has been broken but I don't know where the price is going, and it takes a lot of time to find support points, resistance to entry or take profit, So I came up with the idea of drawing different timeframes on the same chart in a specified timeframe, and I found it shortened the time to find support and resistance points in trading without having to switch back and forth between timeframes.
- For example, when the H1 trendline breaks downwards, we can determine a high probability that the price will be supported by the trendlines below it. for us to find entry points or exit orders effectively. Or when the price breaks the H1 trendline to go up, the chart shows us the trend lines above that broken H1 line so that we have a more effective entry or take profit point because it is a resistance zone....
- It can shows 7 pairs of trendlines during different times in the chart.
- each timeframe will display two trendlines, one up, and one down.When the price crosses a trendline, only one valid trendline is displayed, while the line crossed is not displayed.
- The upper trendline (down trend) is a red horizontal line, with the timeframe name and the value of its trendline, for example 4H(1.234) means timeframe = H4, the current value of the trendline is 1.234.
- The trendline below (up trend) is the blue horizontal line that also represents the same value as the line above.
- In the Settings section, up to 6 different timeframes can be selected to display those trendlines on the chart.
- Small timeframes such as m1, m3, m5 or D1 I leave the default (cannot be changed) in the 'Length' setting = 50, timeframe is H6, H8, H12 'Length' = 30, the rest of the time can be changed, the default is 20 ...
- Some cases I have applied with this indicator to look for entry points and take profit ...
Xin chào Trader Việt nam.
- Đây là chỉ báo về các đường xu hướng trendline trong chuỗi phân tích với đường xu hướng của tôi. Chỉ báo này là muti trendlines trên biểu đồ , nó hiển thị được tối da 7 cặp đường xu hướng trong các thời gian khác nhau trên 1 biểu đồ.Dựa vào đó các trader có cái nhìn trực quan nhất không phải thay đổi qua lại các thời gian để tìm các đường trendlines, và có thể tìm được những cú hồi hoặc phá ngưỡng để vào lệnh hoặc chốt lời .
- Thực ra trong quá trình giao dịch với đường xu hướng, tôi thấy các khung thời gian khác nhau thì hiển thị mỗi đường xu hướng khác nhau, nhiều khi đường xu hướng trong khung 15m đã bị phá nhưng không biết giá đi đến đâu, và mất rất nhiều thời gian để tìm các điểm hỗ trợ, kháng cự để vào lệnh hoặc chốt lời, nên tôi nảy ra ý tưởng vẽ ra các khung thời gian khác nhau trên cùng 1 biểu đồ trong một khung thời gian được chỉ định, và tôi thấy rút ngắn được thời gian để tìm các điểm hõ trợ , kháng cự trong giao dịch mà không cần phải chuyển qua lại giữa các khung thời gian .
- Chẳng hạn ,khi đường xu hướng H1 bị phá vỡ xuống dưới thì ta có thể xác định được khả năng cao giá sẽ được hỗ trợ bởi những đường xu hướng bên dưới nó. để ta tìm điểm vào lệnh hoặc thoát lệnh cho hiệu quả.Hoặc khi giá phá vỡ đường xu hướng H1 để đi lên , thì trên biểu đồ đã hiện cho ta các đường trendline bên trên đường H1 bị phá vỡ đó để ta có điểm vào hoặc chốt lời hiệu quả hơn vì đó là vùng kháng cự....
- Đường xu hướng bên trên(down trend) là đường kẻ ngang màu đỏ ,có kèm tên timeframe và giá trị của đường xu hướng của nó,ví dụ 4H(1.234) nghĩa là timeframe=4H, giá trị hiện tại đường trendline là 1.234.
- Đường xu hướng bên dưới (up trend) là đường ngang màu xanh cũng thể hiện giá trị như đường bên trên.
- Các timeframe nhỏ như 1m, 3m, 5m hoặc 1D tôi để mặc định (không thay đổi được) trong setting mục 'Length' = 50, timeframe là 6H,8H,12H 'Length' = 30, các thời gian còn lại có thể thay đổi được ,mặc định là 20
- Để điều chỉnh có thể vào setting để thiết lập các thời gian theo nhu cầu.
DOTS [CHE]This indicator is a must-have for every trader as it provides a practical tool to quickly evaluate the current price of a security. Designed specifically for manual trading, this indicator is based on "The Forbidden RSI " indicator and provides an easy way to identify overbought and oversold conditions in the market. By using this indicator, traders can make informed decisions about when to enter or exit a trade, maximizing their potential profits and minimizing their risks. Its simple yet effective design makes it an ideal choice for traders of all experience levels. Whether you are a seasoned professional or just starting out, this indicator can help you take your trading to the next level.
Description:
This is a Pine Script code designed to create an indicator that identifies overbought and oversold conditions in a security. The code first defines a function named "func" that takes three arguments - "close", "length", and "tr". It then calculates a value "k" based on the "close" and "length" arguments using this function.
The code then checks if "k" is greater than a variable named "OverBought" and assigns the resulting Boolean value to "OverboughtCond". It also checks if "k" is less than a variable named "OverSold" and assigns the resulting Boolean value to "OversoldCond".
The code then plots a small circle above the bar if "OverboughtCond" is true and below the bar if "OversoldCond" is true. The circles are colored green for "Overbought" and red for "Oversold". The code also creates a label with the name "Overbought" above the bar and a label with the name "Oversold" below the bar if the respective conditions are met.
Finally, the code sets up alert conditions for both the "Overbought" and "Oversold" cases, with a custom message that includes the name of the security, the current price, and the indicator's name.
I've tested the script for weeks and I hope it brings you as much success as it did me
best regards
Chervolino
Reversal Points [CC]This original script was created based on a suggestion from @kerpiciwuasile. My original Reversal Points script was removed because I modeled it after an indicator by Demark, but this script will have no such issues. Reversal points are an exciting concept for me because it is such a useful tool when placing trades. This is my first attempt at a new overall layout for my script and I included a bunch of customization so let me know what you think.
My script works by finding lows that are surrounded by bars that have higher lows and highs that are surrounded by lower highs. I use this logic to find short term lows or highs and I use the same concept to find mid-term lows or highs but a mid-term high is a short term high surrounded by lower short term highs and a mid-term low is a short term low surrounded by higher short term lows. And of course this means that long term highs or lows use the same logic to find highs or lows that are surrounded by mid-term highs or lows. I would recommend to buy at the long term low points or sell at the long term high points.
Keep in mind of course that short term highs and lows are very common and reversal points will get rarer as you look for longer term reversal points. I would recommend to experiment and see which reversal points work best for you and of course, know that there is no magical formula to use for all stocks.
Also there are a few scenarios where you want to enable or disable the inside bar setting. You would want to ignore inside bars if the market is currently very volatile or if you are using this indicator on a crypto chart. This is not an exact science but more of a recommendation, so feel free to experiment with it.
Reversal points are crucial for traders as they signal a potential change in the market trend, providing opportunities for entry or exit.
In summary, this code snippet is a powerful tool for traders to detect and visualize reversal points on a trading chart, providing valuable insights into potential trend changes and facilitating more informed trading decisions.
Let me know if you would like me to publish other scripts or if you want me to do something custom for you!
Stock Comparison to S&P 500This indicator, "Stock Comparison to S&P 500," is designed to help traders compare the financial health and valuation of a chosen stock to the S&P 500 index. It compares several key financial metrics of the stock to the corresponding metrics of the S&P 500, including earnings growth, price-to-earnings ratio, price-to-book ratio, and price-to-sales ratio.
The indicator calculates the differences between each metric of the selected stock and the S&P 500, and then weights them using a formula that takes into account the importance of each metric. The resulting value represents the overall comparison between the stock and the S&P 500.
The indicator also displays the differences between the individual metrics in separate plots, allowing traders to see how each metric contributes to the overall comparison. Additionally, it colors the plots green if the selected stock is performing better than the S&P 500 in a particular metric and red if it's performing worse.
Traders can use this indicator to gain insight into the relative financial health and valuation of a selected stock compared to the S&P 500 index, which can help inform their trading decisions.
BTCUSD Price prediction based on central bank liquidityIn recent months the idea that Bitcoin prices are increasingly linked to liquidity provided by central banks has gained strength. Multiple opinion leaders in the bitcoin space have shared their thoughts to explain why this is happening and why it makes sense. Some of these people I'm talking about are Preston Pysh, Dr. Jeff Ross, Steven McClurg, Lynn Alden among others.
The reality is that the correlation between market liquidity, measured as Assets held by the Federal Reserve, Bank of Japan and European Central bank, and Bitcoin prices is high. This made me wonder whether a regression between "market liquidity" and BTCUSD prices made sense in order to understand where Bitcoin prices are in relation to the liquidity in the market. After several trials I ended up fitting a polynomial regression of degree 5 between Market Liquidity and BTCUSD prices since 2013. This regression resulted in r-squared value of 90.93%. I initially visualized the results in python notebooks but then I thought it would be cool to be able to see them in real-time in tradingview.
That's where this script comes handy...
This script takes the coefficients and intercept from the polynomial regression I built and applies them to the "market_liquidity" index. In addition, it adds upper and lower bound lines to the prediction based on a 95% confidence interval. As you will see, particularly since 2020, the price of bitcoin has rarely been above or below the lines representing the 95% confidence interval. When price has actually crossed these lines it's been in moments where Bitcoin was highly overbought or oversold. Therefore this indicator could be used to understand when it's a good moment to enter or exit the market based on central bank fundamentals.
Here's the detailed step-by-step description of what the script does
1) It defines the coefficients obtained from running the regression betweeen "market liquidity" and BTCUSD. Market liquidity is defined as:
Market liquidity = FRED:WALCL + FX_IDX:JPYUSD*FRED:JPNASSETS + FX:EURUSD*FRED:ECBASSETSW - FRED:RRPONTSYD - FRED:WTREGEN
2) It defines a scale factor. The reason for this is that coefficients from the regression are very small numbers, given the huge numbers of the value of assets held by central banks. Pinescript doesn't support numbers with many decimals and rounds them to 0, so the coefficients had to be scaled up in order to be able to calculate the regression results.
3) It calculates market liquity with the formula defined above. Market liquidity is calculated in US Dollars.
4) It calculates the predicted BTCUSD price based on the coefficients and the market liquidity values.
5) It scales down the values by the same factor used to scale the coefficients up
6) It defines the standard deviation of the "potential_btcusd_price_scaled" and the actual BTCUSD prices.
7) It defines upper and lower bounds to the BTCUSD price prediction using a z-score of 1.96, which is equivalent to 95% confidence interval.
8) Lastly it plots the BTCUSD price prediction (orange) and the upper (red) and lower(green) confidence intervals.
The script can be updated as the correlation of BTCUSD to central bank assets changes (the slope values can be updated).
How to use it:
When actual BTCUSD price (blue line in the chart) crosses over the red line (upper bound) or crosses under the green line (lower bound) it should be taken as a sign that the price of BTCUSD may be overvalued or undervalued based on the value of assets held by major central banks.
Global LiquidityThe "Global Liquidity" script is an indicator that calculates and displays the global liquidity value using a formula that takes into account the money supply of several major economies. The script utilizes data from various sources, such as the Federal Reserve Economic Data (FRED), Economics, and FX_IDC.
The indicator plots the global liquidity value as a candlestick chart and breaks it down into two categories: the Euro-Atlantic region (West) and the rest of the world (East). The values are denominated both in inflation-adjusted dollars and in trillions of dollars. The script also calculates the spread between the Euro-Atlantic region and the rest of the world.
Traders and investors can use this indicator to gauge the overall liquidity of the global economy and to identify potential investment opportunities or risks. By breaking down the liquidity value into different regions, traders can also gain insights into regional economic trends and dynamics.
Note that this script is subject to the terms of the Mozilla Public License 2.0 and was created by rodopacapital.
Ema Short Long Indicator[CHE]█ CONCEPTS
This Pine Script is an EMA Short Long indicator that displays the crossing EMA lines on the chart. The indicator uses three exponential moving averages (EMAs) to generate the buy and sell signals. The EMA lines are plotted as green (uptrend) and red (downtrend) lines. When the green line is above the white signal line, the indicator generates a buy signal, when the green line is below the white signal line, the indicator generates a sell signal. Arrows are also displayed marking the buy and sell signals. There is also an option to allow indicator repainting or not. Finally, users can also set alerts to be alerted to potential trading opportunities.
Note: please do not disable "time frame gaps". Allows to calculate the indicator on a Timeframe (TF) different from that of the chart Time window. The TF should ideally be higher than the charts to provide a broader perspective than
the TF of the chart. Using TFs lower than the chart's will deliver fragmentary results, since only the last value of intrabar is displayed (multiple values cannot be displayed for a single chart bar). The Gaps setting determines the behavior when the TF is higher than the TF of the chart. If 'gaps' is checked, higher TF values only come in and are interconnected on the diagram when the higher TF completed. This has the advantage of avoidance Real-time epainting. If Gaps is not enabled, Gaps are filled with the last higher TF value calculated, which will not produce a repaint Values on historical bars but repaint values realtime.
█ HOW TO USE IT
Load the indicator on an active chart (see the Help Center if you don't know how).
Time period
By default, the script uses an auto-stepping mechanism to adjust the time period of its moving window to the chart's timeframe. The following table shows chart timeframes and the corresponding time period used by the script. When the chart's timeframe is less than or equal to the timeframe in the first column, the second column's time period is used to calculate the Ema Short Long Indicator :
Chart Time
timeframe period
1min 🠆 1H
5min 🠆 4H
1H 🠆 1D
4H 🠆 3D
12H 🠆 1W
1D 🠆 1M
1W 🠆 3M
█ DESCRIPTION
The script begins by setting up the chart indicator with a short title, "ESLI", and enabling it as an overlay. It then initializes several variables for time conversions, to be used later in the script.
The timeStep_translate() function converts the timeframe of the chart into a string representing a larger time interval, based on the number of seconds in the timeframe. The resulting string is used to label the horizontal axis of the chart.
Next, the script defines several input variables that can be modified by the user. These include the colors of the EMA lines and the signals, whether or not the indicator is allowed to repaint (i.e. update past values based on future data), and the number of periods used to calculate the EMA and signal lines.
The f_security() function calls the request.security() function to fetch data from the specified security and timeframe, and is used to calculate the EMA and signal lines using the ta.ema() function. The clo variable is assigned the closing price data, adjusted for repainting and timeframe.
The EMA line is calculated using a weighted average of the EMA over the specified period and two times that period, as well as three times that period, divided by six. The signal line is calculated as the EMA of the EMA line over the specified period.
The col_css variable sets the color of the EMA line based on whether it is currently above or below the signal line. The script then plots the EMA and signal lines, and uses the plotshape() function to indicate long and short signals based on the crossovers and crossunders of the EMA and signal lines.
Finally, the script sets up alert conditions using the alertcondition() function to notify the user when a long or short signal is generated, including information about the symbol and closing price.
█ SPECIAL THANKS
Special thanks to LOXX, I wanted to take a moment to express my gratitude for his valuable input in the EMA calculation. His insights and expertise have greatly helped me in improving my Pine Script coding skills. Thanks to his suggestion, I was able to better understand the EMA formula and implement it effectively in my script.
Your generosity in sharing your knowledge and experience is truly appreciated. It is through collaboration and exchanging ideas that we can all grow and become better in our craft.
This script provides exact signals that, with suitable additional indicators, provide very good results.
Best regards
Chervolino
Fundamental Value and Dividend Growth InvestingThis script is an original implementation of a Fundamental Value and Dividend Growth Investing Strategy for traders who want to incorporate these concepts in their trading decisions. The script uses technical indicators to determine buy and sell signals based on a set of criteria.
To use the script, traders can input various parameters, such as the length of the simple moving averages (SMA), the rate of change (ROC) length, and the dividend yield. The script calculates the SMA for the long and short periods, the ROC, and the dividend.
The buy signal is triggered when the current closing price is greater than the short-term SMA, the short-term SMA crosses above the long-term SMA, the ROC is positive, and the closing price is greater than the dividend. The sell signal is triggered when the current closing price is less than the long-term SMA, the long-term SMA crosses above the short-term SMA, and the ROC is negative.
The script plots the signals and the indicators, such as the SMA200, the SMS50, the dividend, and the ROC. The script also includes alert conditions for the buy and sell signals.
The concept underlying the calculations of this script is the Fundamental Value and Dividend Growth Investing Strategy. This strategy aims to identify stocks that are trading below their intrinsic value and have a history of increasing dividends. The SMA and ROC indicators help identify the trends in the stock price, while the dividend yield helps identify stocks with a history of dividend growth.
Overall, this script offers traders an original and useful tool for incorporating Fundamental Value and Dividend Growth Investing Strategy into their trading decisions.
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!
Cuban's Open Interest Spaghetti [CE]Cuban's Open Interest Spaghetti is an indicator built for traders to track the open interest changes of highly correlated markets, spreads, and ecosystems.
The tool provides three different viewing modes for tracking open interest; a rolling bar lookback, a specific data and time anchor, and a visible range -- similar to the native Tradingview 'Compare' tool.
Included are pre-built lists for tracking the open interest of all 160+ Binance Futures assets, including custom fields for creating new spreads or watchlists. This gives the trader the ability to monitor the entire futures ecosystem within a single charting window.
We have also added an optional table to the right of the screen so that the trader can clearly see outperforming assets. This table is toggleable using radio buttons within the Style menu.
To improve asset visibility, the script also calculates the 'long tail' of the asset distribution and automatically lowers the visibility of clustered assets in the center.
While the Compare tool only allows for % returns and absolute value on the chart asset or separate scale, Cuban's Open Interest Spaghetti allows the trader to use a separate oscillator window with the open interest on a % scale. This gives the trader the ability to watch OI changes in real-time within any Tradingview window.
Within the user inputs, the user gains the ability to customize the following:
Lookback mode
Rolling lookback period
Timezone and time anchor
Percentage of assets highlighted
Dynamic label offset
Asset lists
TO DO:
Add % labels to assets in the tails of the distribution
Correlation Crypto MatrixReturns a (top 10 by default) coins matrix correlation between various user-selected symbols
Correlation matrices can be useful to see the linear relationship between various symbols, this is an important tool for analyze market.
Alert with matrix. You can send it to the sheets
Shiller PE Ratio (CAPE Ratio) [WhaleCrew]Our Implementation of the famous Shiller PE Ratio (aka C yclically A djusted P rice-to- E arnings Ratio) a long-term valuation indicator for the S&P 500.
Calculation: Share price divided by 10 - year average, inflation - adjusted earnings
The indicator works on the M and 12M timeframe and has a built-in moving average that supports an upper and lower bollinger band.
Median Value TradedThe Median Value Traded script is an indicator that allows traders to visualize the median value traded for a particular asset. The median value traded is an important metric as it provides a clearer understanding of the trading activity for an asset, which can be used to inform trading strategies.
To use this script, simply add it to your chart and adjust the "Lookback Period" input as desired. The "Lookback Period" input determines the number of bars used in the median calculation, with a default value of 20.
The median value traded is calculated by taking the product of the volume and closing price for each bar in the lookback period, calculates the median value, and then divides by one million for easier readability.
The script also includes color inputs for the positive and negative columns, allowing traders to customize the appearance of the plot to their liking.
Overall, the Median Value Traded script is a useful tool for traders looking to gain a deeper understanding of trading activity for a particular asset.
IOFin F-Score by zdmre🗣The IOFin F-Score is a discrete score between zero and ten that reflects ten criteria used to determine the strength of a firm's financial position.
🗣It is used to determine the best value stocks, with ten being the best and zero being the worst.
The IOFin F-Score broken down into the following categories:
Profitability
Equity, cash flow, liquidity, and source of funds
Operating efficiency
Criteria Include:
Price to book (P/B) lower than 3 (1 point)
Debt to Equity (D/E) lower than 0.5 (1 point)
Price to FreeCashFlow (P/FCF) equal to or lower than 20 (1 point)
Peg Ratio lower than 1 (1 point)
Sustainable Growth Rate higher than 0.3 (1 point)
Return on Assets (ROIC) higher than 0.07 (1 point)
Return on Equity (ROE) higher than 0.3 (1 point)
EnterpriseValue/Ebitda lower than 10 (1 point)
Quick Ratio equal to or higher than 1 (1 point)
Operating Margin higher than 0.15 (1 point)
RS - Relative Strength ScoreRelative strength (RS) is a measure of a stock's price performance relative to the overall market. It is calculated by dividing the stock's price change over a specified period by the market's price change over the same period. A stock with a high RS has outperformed the market, while a stock with a low RS has underperformed. (Stock can any asset that can be compared to a reference index like as Bitcoin, Altcoins etc ...)
Here are some advantages:
- Provides a measure of a stock's performance relative to a benchmark index or sector, allowing for a more accurate comparison of performance.
- Helps identify stocks with strong price momentum that are likely to continue outperforming the market in the short to medium term.
- Allows investors to identify the strongest performers within a particular sector or industry.
- Provides a quantitative and objective measure of a stock's performance, which can help reduce bias in investment decisions.
- Can be used in conjunction with other technical indicators and chart analysis to identify potentially profitable trades.
- Helps investors make more informed decisions by providing a more comprehensive picture of a stock's performance.
How to use it:
- The indicator can be used in daily and weekly timeframes.
- Check, if the default reference index is suited for your asset (Settings) The default is the combination of S&P500+Nasdaq+Dow Jones. For Crypto, it could be TOTAL (ticker for total stock market), for German stocks it could be DAX.
- Decide (settings), if you want to see the RS based on annual calculation (IBD style) or based only for the last quarter
Color coding:
- Red: Stock is performing worse than index (RS < 0)
- Yellow: Stock get momentum, starting to perform better than index (RS > 0)
- Green: Stock is outperforming the index
- Blue: Stock is a shooting star compared to index
- When RS turns positive and stays there, it could be an indication for an outbreak (maybe into a stage 2)
No financial advise. For education purposes only.