US Recessions based on James Hamilton's JHDUSRGDPBRThis simple script uses James Hamilton's JHDUSRGDPBR indicator to colour areas representing recession periods in the US. Best used in conjunction with other macroeconomics indicators, like –as in the example– unemployment rates
Macroeconomia
Oster's Fair Economy (OFE)Overview:
Oster's Fair Economy (OFE) is a powerful tool designed to give traders and investors a comprehensive assessment of the fair value of major stock indices . Unlike conventional indicators that focus solely on technical analysis, OFE emphasizes economic metrics to offer a deeper understanding of the market's intrinsic value. By applying Oster's method (explained below), OFE determines the fundamental fair price of key indices, making it an invaluable tool for top-down analysis and market confirmation. It is particularly useful for swing trading on indices and as a top-down confirmation for individual stock trades.
Important Note:
OFE is designed for use with indices, not individual stocks : Stocks are often driven by their own fundamental factors, such as earnings, revenue, and dividend yields, which may not align with broad economic metrics. While OFE can sometimes provide insights into individual stocks, particularly those highly correlated with broader market trends, it is specifically intended for index analysis.
OFE is optimized for Weekly Candles (W ): OFE is most effective when used with weekly data, as it aligns with the longer-term outlook of economic analyses. While it can be used with smaller timeframes, weekly data is recommended for the most accurate insights.
Innovative Approach to Economic Analysis:
OFE integrates a unique combination of key economic metrics , including:
Gross National Product (GNP)
Consumer Price Index (CPI)
Unemployment Rate (UR)
Interest Rate (e.g., FED)
Nonfarm Payrolls (NFP)
Retail Sales (RS)
Industrial Production (IP)
Balance Of Trade (BOT)
Money Supply M2 (M2)
Consumer Confidence Index (CCI)
These metrics are tailored for 20 different markets : United States (US), Canada (CA), European Union (EU), Germany (DE), United Kingdom (GB), France (FR), Italy (IT), Switzerland (CH), Spain (ES), Australia (AU), New Zealand (NZ), Japan (JP), China (CN), Hong Kong (HK), South Korea (KR), India (IN), Russia (RU), Brazil (BR), Mexico (MX), and Saudi Arabia (SA).
This comprehensive set of data allows traders to gauge the potential for growth, inflation, and overall market conditions . OFE's weighting system reflects the importance of these metrics in determining the fair value of indices according to Oster's methodology .
How OFE Works:
OFE's calculation methodology is designed to provide insights into whether an index is fundamentally overvalued, undervalued, or trading at fair value by comparing its price dynamics with economic data. Here’s a step-by-step breakdown of how OFE works:
Economic Data Collection : OFE retrieves relevant economic data from the selected region, such as GDP, CPI, and interest rates. If specific market data is unavailable, OFE defaults to the US market as a fallback.
Normalization and Weighting : The collected economic metrics are normalized against historical trends to ensure that the data reflects both current levels and long-term averages. For example, GDP growth rates are normalized based on historical data, allowing for a comparison across different economic periods. Similarly, CPI and unemployment rates are adjusted to account for historical context, ensuring that high inflation or unemployment is appropriately weighed relative to past conditions. However, all other macroeconomic key figures are also processed in the same way.
Relating Economic Metrics to Price Dynamics : OFE calculates specific ratios by comparing the selected index’s price with the normalized economic data. These ratios, such as the GNP ratio, are then analyzed within the context of historical performance. The goal is to establish a relationship between the economic indicators and the index’s historical price behavior. For instance, if the GNP ratio is currently higher than historical norms, it could suggest that the index is overvalued relative to the economy’s actual productivity.
Fair Value Calculation : Based on the derived ratios and their historical correlations with index prices, OFE computes a fair value for the index. This calculation integrates multiple economic indicators, each weighted according to its perceived importance in influencing the index. For example, in a high-growth environment, GDP and industrial production might carry more weight, whereas in a recession, unemployment and interest rates could become more influential. The resulting fair value reflects the index's price adjusted for the current economic environment.
Price Comparison : The calculated fair value is then compared to the current market price of the index. If the market price significantly deviates from the fair value, it suggests that the index is either overvalued or undervalued. For example, if the fair value of the S&P 500 is calculated to be 10% lower than its current market price, OFE would indicate that the index might be overvalued, potentially signaling a market correction. The fair price line basically acts as a kind of magnet that keeps attracting the index price. This is because, in the longer term, the broad market is always guided by the economic health of the country in concerned.
Market Dynamics Consideration : By adjusting the "Strictness" level in OFE, users can control how sensitive the fair value calculation is to economic fundamentals. A higher strictness level would highlight discrepancies between the fair value and the market price more aggressively, suggesting a higher likelihood of market mispricing. Conversely, a lower strictness level allows for greater flexibility, acknowledging that markets can sometimes deviate from fundamental values without immediate correction.
Customizable Parameters for Tailored Analysis:
OFE offers extensive customization options to align with your specific investment strategy. Users can:
Select or deselect economic metrics for inclusion.
Adjust the weighting of each metric to reflect its importance in their analysis.
Fine-tune the strictness of the valuation process (as explained above).
Additionally, users can compare different indices with various macroeconomic data sets . For example, you might select the DAX index and apply US economic data to see how the index would perform if driven by US market fundamentals. This feature enables a highly tailored and region-specific analysis, empowering traders to align OFE with their individual perspectives and market outlooks.
Interpretation:
If the calculated fair price is above the current index value, the index is considered fundamentally undervalued, indicating potential for price increases. Conversely, if the fair price is below the current index value, the index is seen as overvalued, suggesting potential risks or a possible correction. The fair price acts as a gravitational force, pulling the index toward its true economic value over time.
This over- or undervaluation can also serve as an overarching economic confirmation for stock trading . For example, it might be advantageous to buy individual stocks when the broader market is fundamentally undervalued, as the general upward potential of the market could support stock price increases. Conversely, selling or avoiding stocks when the broader market is overvalued could help mitigate potential risks, as the market may be primed for a correction.
Conclusion:
Oster's Fair Economy (OFE) bridges the gap between technical simplicity and the depth of macroeconomic analysis . By integrating complex economic metrics with user-friendly customization, OFE empowers traders and investors to assess the fair valuation of indices confidently . This tool is ideal for confirming market trends and gaining a broader understanding of the economic landscape, making it a valuable asset in any investment toolkit.
Economic Growth Index (XLY/XLP)Keeping an eye on the macroeconomic environment is an essential part of a successful investing and trading strategy. Piecing together and analysing its complex patterns are important to detect probable changing trends. This may seem complicated, or even better left to experts and gurus, but it’s made a whole lot easier by this indicator, the Economic Growth Index (EGI).
Common sense shows that in an expanding economy, consumers have access to cash and credit in the form of disposable income, and spend it on all sorts of goods, but mainly crap they don’t need (consumer discretionary items). Companies making these goods do well in this phase of the economy, and can charge well for their products.
Conversely, in a contracting economy, disposable income and credit dry up, so demand for consumer discretionary products slows, because people have no choice but to spend what they have on essential goods. Now, companies making staple goods do well, and keep their pricing power.
These dynamics are represented in EGI, which plots the Rate of Change of the Consumer Discretionary ETF (XLY) in relation to the Consumer Staples ETF (XLP). Put simply, green is an expanding phase of the economy, and red shrinking. The signal line is the market, a smoothed RSI of the S&P500. Run this on a Daily timeframe or higher. Check it occasionally to see where the smart money is heading.
SFC Macroeconomics 2Macroeconomics is the most important part of the financial markets. If the trader/investor could predict the economic cycles, the chance of making money is much greater.
This is the second macroeconomic indicator, which gives us a more detailed picture of yields and some leading indicators. Trying to predict a recession is the main goal.
The indicator is showing:
- Yield curve
- 2-10Y Yield spred
- All Yields spread
- Yield Comparison between two countries
- Recessionary leading indicators
How to use:
-Load the indicator and see observe the yield curves and how the market moves.
-Use leading indicators to predict recession
By combining the indicator with the first version, investors/traders could get a complete picture of the economy situation and what the current phase of the business cycle is.
Note:
Yellow colour - leading indicators
Orange colour - legging indicators
Before using this indicator, traders/investors need a basic understanding of macroeconomics. A good knowledge is required to take advantage of the indicator and create economic analysis.
Bitcoin to GOLD [presentTrading]**Introduction and How it is Different**
Unlike traditional indicators, the BTGR offers a unique perspective on market sentiment and asset valuation by juxtaposing two seemingly disparate assets: Bitcoin, the digital gold, and Gold, the traditional store of value. This article introduces an advanced version of this ratio, complete with upper and lower bands calculated using standard deviations. These bands add an extra layer of analytical depth, allowing for more nuanced trading strategies.
BTCUSD 12h bigger picture
**Economic Principles**
The BTGR is rooted in the economic principles of asset valuation and market sentiment. Gold has long been considered a safe haven asset, a place where investors park their money during times of economic uncertainty. Bitcoin, on the other hand, is often viewed as a high-risk, high-reward investment. By comparing the two, the BTGR provides insights into the broader market sentiment.
- Risk Appetite: A high BTGR indicates a bullish sentiment towards riskier assets like Bitcoin.
- Market Uncertainty: A low BTGR suggests a bearish sentiment and a flight to the safety of Gold.
- Asset Diversification: The BTGR can be used as a tool for portfolio diversification, helping investors balance risk and reward.
**How to Use It**
Setting Up the Indicator
- Platform: The indicator is designed for use on TradingView.
- Time Frame: A 480-minute time frame is recommended for more accurate signals.
- Parameters: The moving average is set at 200 periods, and the standard deviation is calculated over the same period.
**Trading Signal**
Long Entry: Consider going long when the BTGR crosses above the upper band.
Short Entry: Consider going short when the BTGR crosses below the lower band.
Note: Due to the issue that the number of trading is less than about 100 times, the corresponding strategy is not allowed to publish.
CE - 42MACRO Fixed Income and Macro This is Part 2 of 2 from the 42MACRO Recreation Series
However, there will be a bonus Indicator coming soon!
The CE - 42MACRO Fixed Income and Macro Table is a next level Macroeconomic and market analysis indicator.
It aims to provide a probabilistic insight into the market realized GRID Macro regimes,
track a multiplex of important Assets, Indices, Bonds and ETF's to derive extra market insights by showing the most important aggregates and their performance over multiple timeframes... and what that might mean for the whole market direction.
For traders and especially investors, the unique functionalities will be of high value.
Quick guide on how to use it:
docs.google.com
WARNING
By the nature of the macro regimes, the outcomes are more accurate over longer Chart Timeframes (Week to Months).
However, it is also a valuable tool to form an advanced,
market realized, short to medium term bias.
NOTE
This Indicator is intended to be used alongside the 1nd part "CE - 42MACRO Equity Factor"
for a more wholistic approach and higher accuracy.
Methodology:
The Equity Factor Table tracks specifically chosen Assets to identify their performance and add the combined performances together to visualize 42MACRO's GRID Equity Model.
For this it uses the below Assets:
Convertibles ( AMEX:CWB )
Leveraged Loans ( AMEX:BKLN )
High Yield Credit ( AMEX:HYG )
Preferreds ( NASDAQ:PFF )
Emerging Market US$ Bonds ( NASDAQ:EMB )
Long Bond ( NASDAQ:TLT )
5-10yr Treasurys ( NASDAQ:IEF )
5-10yr TIPS ( AMEX:TIP )
0-5yr TIPS ( AMEX:STIP )
EM Local Currency Bonds ( AMEX:EMLC )
BDCs ( AMEX:BIZD )
Barclays Agg ( AMEX:AGG )
Investment Grade Credit ( AMEX:LQD )
MBS ( NASDAQ:MBB )
1-3yr Treasurys ( NASDAQ:SHY )
Bitcoin ( AMEX:BITO )
Industrial Metals ( AMEX:DBB )
Commodities ( AMEX:DBC )
Gold ( AMEX:GLD )
Equity Volatility ( AMEX:VIXM )
Interest Rate Volatility ( AMEX:PFIX )
Energy ( AMEX:USO )
Precious Metals ( AMEX:DBP )
Agriculture ( AMEX:DBA )
US Dollar ( AMEX:UUP )
Inverse US Dollar ( AMEX:UDN )
Functionalities:
Fixed Income and Macro Table
Shows relative market Asset performance
Comes with different Calculation options like RoC,
Sharpe ratio, Sortino ratio, Omega ratio and Normalization
Allows for advanced market (health) performance
Provides the calculated, realized GRID market regimes
Informs about "Risk ON" and "Risk OFF" market states
Visuals - for your best experience only use one (+ BarColoring) at a time:
You can visualize all important metrics:
- GRID regimes of the currently chosen calculation type
- Risk On/Risk Off with background colouring and additional +1/-1 values
- a smoother GRID model
- a smoother Risk On/ Risk Off metric
- Barcoloring for enabled metric of the above
If you have more suggestions, please write me
Fixed Income and Macro:
The visualisation of the relative performance of the different assets provides valuable information about the current market environment and the actual market performance.
It furthermore makes it possible to obtain a deeper understanding of how the interconnected market works and makes it simple to identify the actual market direction,
thus also providing all the information to derive overall market health, market strength or weakness.
Utility:
The Fixed Income and Macro Table is divided in 4 Columns which are the GRID regimes:
Economic Growth:
Goldilocks
Reflation
Economic Contraction:
Inflation
Deflation
Top 5 Fixed Income/ Macro Factors:
Are the values green for a specific Column?
If so then the market reflects the corresponding GRID behavior.
Bottom 5 Fixed Income/ Macro Factors:
Are the values red for a specific Column?
If so then the market reflects the corresponding GRID behavior.
So if we have Goldilocks as current regime we would see green values in the Top 5 Goldilocks Cells and red values in the Bottom 5 Goldilocks Cells.
You will find that Reflation will look similar, as it is also a sign of Economic Growth.
Same is the case for the two Contraction regimes.
******
This Indicator again is based to a majority on 42MACRO's models.
I only brought them into TV and added things on top of it.
If you have questions or need a more in-depth guide DM me.
GM
CE - 42MACRO Equity Factor Table This is Part 1 of 2 from the 42MACRO Recreation Series
The CE - 42MACRO Equity Factor Table is a whole toolbox packaged in a single indicator.
It aims to provide a probabilistic insight into the market realized GRID Macro Regime, use a multiplex of important Assets and Indices to form a high probability Implied Correlation expectation and allows to derive extra market insights by showing the most important aggregates and their performance over multiple timeframes... and what that might mean for the whole market direction, as well as the underlying asset.
WARNING
By the nature of the macro regimes, the outcomes are more accurate over longer Chart Timeframes (Week to Months).
However, it is also a valuable tool to form a proper,
market realized, short to medium term bias.
NOTE
This Indicator is intended to be used alongside the 2nd part "CE - 42MACRO Yield and Macro"
for a more wholistic approach and higher accuracy.
Due to coding limitations they can not be merged into one Indicator.
Methodology:
The Equity Factor Table tracks specifically chosen Assets to identify their performance and add the combined performances together to visualize 42MACRO's GRID Equity Model.
For this it uses the below Assets, with more to come:
Dividend Compounders ( AMEX:SPHD )
Mid Caps ( AMEX:VO )
Emerging Markets ( AMEX:EEM )
Small Caps ( AMEX:IWM )
Mega Cap Growth ( NASDAQ:QQQ )
Brazil ( AMEX:EWZ )
United Kingdom ( AMEX:EWU )
Growth ( AMEX:IWF )
United States ( AMEX:SPY )
Japan ( AMEX:DXJ )
Momentum ( AMEX:MTUM )
China ( AMEX:FXI )
Low Beta ( AMEX:SPLV )
International ex-US ( NASDAQ:ACWX )
India ( AMEX:INDA )
Eurozone ( AMEX:EZU )
Quality ( AMEX:QUAL )
Size ( AMEX:OEF )
Functionalities:
1. Correlations
Takes a measure of Cross Market Correlations
2. Implied Trend
Calculates the trend for each Asset and uses the Correlation to obtain the Implied Trend for the underlying Asset
There are multiple functionalities to enhance Signal Speed and precision...
Reading a signal only over a certain threshold, otherwise being colored in gray to signal noise or unclear market behavior
Normalization of Signal
Double Normalization of Signal for more Speed... ideal for the Crypto Market
Using an additional Hull Moving Average to enhance Signal Speed
Additional simple Background coloring to get a Signal from the HMA
Barcoloring based on the Implied Correlation
3. Equity Factor Table
Shows market realized Asset performance
Provides the approximate realized GRID market regimes
Informs about "Risk ON" and "Risk OFF" market states
Now into the juicy stuff...
Visuals:
There is a variety of options to change visual settings of what is plotted and where
+ additional considerations.
Everything that is relevant in the underlying logic which can improve comprehension can be visualized with these options.
More to come
Market Correlation:
The Market Correlation Table takes the Correlation of all the Assets to the Asset on the Chart,
it furthermore uses the Normalized KAMA Oscillator by IkkeOmar to analyse the current trend of every single Asset.
(To enhance the Signal you can apply the mentioned Indicator on the relevant Assets to find your target Asset movements that you intend to capture...
and then change the length of the Indicator in here)
It then Implies a Correlation based on the Trend and the Correlation to give a probabilistically adjusted expectation for the future Chart Asset Movement.
This is strengthened by taking the average of all Implied Trends.
Thus the Correlation Table provides valuable insights about probabilistically likely Movement of the Asset over the defined time duration,
providing alpha for Traders and Investors alike.
Equity Factors:
The table provides valuable information about the current market environment (whether it's risk on or risk off),
the rough GRID models from 42MACRO and the actual market performance.
This allows you to obtain a deeper understanding of how the market works and makes it simple to identify the actual market direction,
makes it possible to derive overall market Health and shows market strength or weakness.
Utility:
The Equity Factor Table is divided in 4 Sections which are the GRID regimes:
Economic Growth:
Goldilocks
Reflation
Economic Contraction:
Inflation
Deflation
Top 5 Equity Factors:
Are the values green for a specific Column?
If so then the market reflects the corresponding GRID behavior.
Bottom 5 Equity Factors:
Are the values red for a specific Column?
If so then the market reflects the corresponding GRID behavior.
So if we have Goldilocks as current regime we would see green values in the Top 5 Goldilocks Cells and red values in the Bottom 5 Goldilocks Cells.
You will find that Reflation will look similar, as it is also a sign of Economic Growth.
Same is the case for the two Contraction regimes.
This whole Indicator, as well as the second part, is based to a majority on 42MACRO's models.
I only brought them into TV and added things on top of it.
If you have questions or need a more in-depth guide DM me.
Will make a guide to all functionalities if necessity becomes apparent.
GM
US Recession IndicatorThe US Recession Indicator is designed to identify recessions as they happen, using two reputable indicators that have accurately foreseen all past recessions since 1969. Unlike the National Bureau of Economic Research (NBER) which determines recession dates after the fact, this indicator seeks to spot recessions in real-time. When both of these distinct metrics meet certain criteria, the chart's background becomes shaded, signifying a strong likelihood that the economy is in a recession. Furthermore, a built-in alert system keeps users updated without constant monitoring.
The first metric is the Smoothed Recession Probabilities developed by Marcelle Chauvet. It is based on a dynamic-factor markov-switching model that assesses four monthly coincident variables: non-farm payroll employment, the index of industrial production, real personal income excluding transfer payments and real manufacturing and trade sales. It offers a mathematical analysis of how recessions deviate from expansions. In essence, this index mirrors the probability of the prevailing true economic situation being a recession, grounded on the current GDP data.
The second metric is the Sahm Rule Recession Indicator developed by Claudia Sahm. It operates on the principle that changes in the unemployment rate can be used to identify the onset of a recession. According to this rule, if the three-month moving average of the unemployment rate rises by 0.5 percentage points or more above its lowest point from the preceding year, it flags a potential recession.
For this combined indicator, the thresholds are intentionally set lower than when each metric is used individually. Both metrics must simultaneously suggest a potential recession in order to send a signal. This stems from the realisation that neither metric is infallible and has, on occasion, sent false signals in the past. By requiring both to align, the likelihood of a false positive is reduced. However, it's crucial to understand that past performance does not guarantee future results, leaving the door open for potential false alerts which may not be confirmed by the NBER.
Global Liquidity IndexThe Global Liquidity Index offers a consolidated view of all major central bank balance sheets from around the world. For consistency and ease of comparison, all values are converted to USD using their relevant forex rates and are expressed in trillions. The indicator incorporates specific US accounts such as the Treasury General Account (TGA) and Reverse Repurchase Agreements (RRP), both of which are subtracted from the Federal Reserve's balance sheet to give a more nuanced view of US liquidity. Users have the flexibility to enable or disable specific central banks and special accounts based on their preference. Only central banks that both don’t engage in currency pegging and have reliable data available from late 2007 onwards are included in this aggregated liquidity model.
Global Liquidity Index = Federal Reserve System (FED) - Treasury General Account (TGA) - Reverse Repurchase Agreements (RRP) + European Central Bank (ECB) + People's Bank of China (PBC) + Bank of Japan (BOJ) + Bank of England (BOE) + Bank of Canada (BOC) + Reserve Bank of Australia (RBA) + Reserve Bank of India (RBI) + Swiss National Bank (SNB) + Central Bank of the Russian Federation (CBR) + Central Bank of Brazil (BCB) + Bank of Korea (BOK) + Reserve Bank of New Zealand (RBNZ) + Sweden's Central Bank (Riksbank) + Central Bank of Malaysia (BNM).
This tool is beneficial for anyone seeking to get a snapshot of global liquidity to interpret macroeconomic trends. By examining these balance sheets, users can deduce policy trajectories and evaluate the global economic climate. It also offers insights into asset pricing and assists investors in making informed capital allocation decisions. Historically, riskier assets, such as small caps and cryptocurrencies, have typically performed well during periods of rising liquidity. Thus, it may be prudent for investors to avoid additional risk unless there's a consistent upward trend in global liquidity.
CE - Market Performance TableThe 𝓜𝓪𝓻𝓴𝓮𝓽 𝓟𝓮𝓻𝓯𝓸𝓻𝓶𝓪𝓷𝓬𝓮 𝓣𝓪𝓫𝓵𝓮 is a sophisticated market tool designed to provide valuable insights into the current market trends and the approximate current position in the Macroeconomic Regime.
Furthermore the 𝓜𝓪𝓻𝓴𝓮𝓽 𝓟𝓮𝓻𝓯𝓸𝓻𝓶𝓪𝓷𝓬𝓮 𝓣𝓪𝓫𝓵𝓮 provides the Correlation Implied Trend for the Asset on the Chart. Lastly it provides information about current "RISK ON" or "RISK OFF" periods.
Methodology:
𝓜𝓪𝓻𝓴𝓮𝓽 𝓟𝓮𝓻𝓯𝓸𝓻𝓶𝓪𝓷𝓬𝓮 𝓣𝓪𝓫𝓵𝓮 tracks the 15 underlying Stock ETF's to identify their performance and puts the combined performances together to visualize 42MACRO's GRID Equity Model.
For this it uses the below ETF's:
Dividends (SPHD)
Low Beta (SPLV)
Quality (QUAL)
Defensives (DEF)
Growth (IWF)
High Beta (SPHB)
Cyclicals (IYT, IWN)
Value (IWD)
Small Caps (IWM)
Mid Caps (IWR)
Mega Cap Growth (MGK)
Size (OEF)
Momentum (MTUM)
Large Caps (IWB)
Overall Settings:
The main time values you want to change are:
Correlation Length
- Defines the time horizon for the Correlation Table
ROC Period
- Defines the time horizon for the Performance Table
Normalization lookback
- Defines the time horizon for the Trend calculation of the ETF's
- For longer term Trends over weeks or months a length of 50 is usually pretty accurate
Visuals:
There is a variety of options to change the visual settings of what is being plotted and the two table positions and additional considerations.
Everything that is relevant in the underlying logic that can help comprehension can be visualized with these options.
Market Correlation:
The Market Correlation Table takes the Correlation of the above ETF's to the Asset on the Chart, it furthermore uses the Normalized KAMA Oscillator by IkkeOmar to analyse the current trend of every single ETF.
It then Implies a Correlation based on the Trend and the Correlation to give a probabilistically adjusted expectation for the future Chart Asset Movement. This is strengthened by taking the average of all Implied Trends.
With this the Correlation Table provides valuable insights about probabilistically likely Movement of the Asset, for Traders and Investors alike, over the defined time duration.
Market Performance:
𝓜𝓪𝓻𝓴𝓮𝓽 𝓟𝓮𝓻𝓯𝓸𝓻𝓶𝓪𝓷𝓬𝓮 𝓣𝓪𝓫𝓵𝓮 is the actual valuable part of this Indicator.
It provides valuable information about the current market environment (whether it's risk on or risk off), the rough GRID models from 42MACRO and the actual market performance.
This allows you to obtain a deeper understanding of how the market works and makes it simple to identify the actual market direction.
Utility:
The 𝓜𝓪𝓻𝓴𝓮𝓽 𝓟𝓮𝓻𝓯𝓸𝓻𝓶𝓪𝓷𝓬𝓮 𝓣𝓪𝓫𝓵𝓮 is divided in 4 Sections which are the GRID regimes:
Economic Growth:
Goldilocks
Reflation
Economic Contraction:
Inflation
Deflation
Top 5 Equity Style Factors:
Are the values green for a specific Column? If so then the market reflects the corresponding GRID behavior.
Bottom 5 Equity Style Factors:
Are the values red for a specific Column? If so then the market reflects the corresponding GRID behavior.
So if we have Goldilocks as current regime we would see green values in the Top 5 Goldilocks Cells and red values in the Bottom 5 Goldilocks Cells.
You will find that Reflation will look similar, as it is also a sign of Economic Growth.
Same is the case for the two Contraction regimes.
Stock Dissect DashboardI developed this script, to help me in my analysis process of Stocks.
In it I have combined several things that I look at when evaluating a company.
First, there is the Macro part, where I have added the most important (at least for me) macro indicators, such as inflation, interest rates, initial jobless claims etc.
Under the last is the latest reported value, next we have the previous, and next to them is the change.
Underneath it is the technical part.
I have added the 1-Week, 1-Month, 3-Month, and 1-Year returns. This way I can easily see the performance of the stock over time.
We have a market regime indicator, which tells us whether the stock is Trending, Mean-Reverting, or Neutral.
Also, I've added the RSI and 50 and 200 Day Moving Averages for additional analysis
At the bottom, I've included some of the fundamentals that I look at in my analysis process. We have the PE and PB ratio, as well as the debt-to-equity and profit margins.
I hope you guys like it and saves you as much time and energy as it did for me.
Happy trading!
Consumption OscillatorOVERVIEW
The Consumption Oscillator combines Core Consumer Price Index (USCCPI) and Personal Consumption Expenditure (USPCEPI). It can be a useful tool for understanding inflationary and deflationary pressure in the economy.
CONCEPTS
Defining some thresholds may aid in interpreting the oscillator but interpretation needs context. Also, the thresholds may need adjusting. Overall, using this oscillator in combination with other economic indicators may provide some insights into macroeconomic conditions.
Strong positive signal: If the oscillator rises above a threshold value of +2, it may be considered a strong positive signal. This could suggest that the CCPI is growing faster than the PCE, indicating stronger inflationary pressure and potentially higher levels of economic growth.
Weak positive signal: If the oscillator rises above a threshold value of +1, it may be considered a weak positive signal. This could suggest that the CCPI is growing slightly faster than the PCE, which may still indicate some level of inflationary pressure and moderate economic growth.
No signal: If the oscillator is between -1 and +1, it may be considered a neutral signal. This indicates that the CCPI and PCE are growing at roughly the same rate, and there may be no significant inflationary or deflationary pressure in the economy.
Weak negative signal: If the oscillator falls below a threshold value of -1, it may be considered a weak negative signal. This could suggest that the PCE is growing slightly faster than the CCPI, which may indicate some level of deflationary pressure and slower economic growth.
Strong negative signal: If the oscillator falls below a threshold value of -2, it may be considered a strong negative signal. This could suggest that the PCE is growing much faster than the CCPI, indicating stronger deflationary pressure and potentially lower levels of economic growth
SFC MacroeconomicsThe Macroeconomics indicator can give us an instant view of the most important economic indicators. The indicator displays different tables in different sectors:
- Money : It give us a basic information about the money indicators in USA;
- Surveys: They are usually used as leading indicators.
- Inflation: It is showing overall inflation in the country
- Employment: Provides deep information about the current labor market
- Government: Usually legging indicators, but providing very good information about the USA
- Others: Few important indicators, for example GDP.
How we can use the indicator:
1) The indicator can be used to help traders, getting an instant overview of the economic indicators, helping them to create the Macroeconomic analysis.
2) The indicator can be use as a preparation before the high-impact news.
Note:
Yellow colour - leading indicators
Orange colour - legging indicators
Tables are showing the current data, also 12 months high and low. This is very important information, because it shows the extremes and normally if the current data is 12 months high or low it will be observed by the big players.
Before use this indicator, traders need basic macroeconomic understanding. A good knowledge is required in order to take advantage of the indicators and create the economic analysis or bias.
Economic Calendar (Import from Spreadsheet)This script draws vertical lines to mark Economic Calendar Events.
Datetime of events is defined by user in Settings via a standardized line of text.
Motivation for coding this script:
All traders should be aware of economic calendar events. At times, when you really need to pay attention to an upcoming major event, you might even decide to use the vertical-line drawing tool to mark it. However, this takes manual effort.
This script provides a solution to performing mundane tasks such as drawing vertical lines and dragging them ever so slightly, just to have them approximately aligned with exact time.
Parameters:
(1) Source data - String representation of collection of datetime referencing to Economic Calendar Events
(2) Line color, & (3) Width of line - For displaying vertical lines drawn by script.
Standardized format for Source Data :
Example:
If 'GMT;2022,6,1,14,0,0;2022,6,2,12,15,0;' is provided to PineScript, then two vertical lines will be drawn on June 6, 2022 according to the exact time in 'YYYY,MM,DD,hh,mm,ss' format at the specified timezone (GMT in this case).
Template for Source Data :
Included here, link below, is a shared Google Sheet that systematically processes Economic Calendar data provided in the 'Raw Data' tab.
drive.google.com
Users are advised to use their preferred methods* to format the string (for source data param.), and apply their own criteria to sort down the Events. (ie. only include Events of High Impact, etc.)
* Preferred methods (as mentioned above) does not mean being limited to using the template as provided in this post.
Interest Rates [WhaleCrew]This indicator allows you to display the interest rates of multiple central banks (US, EU, China, Russia, Japan, UK, ...) at once.
Built-in Interest Rates
US ECONOMICS:USINTR
EU ECONOMICS:EUINTR
China ECONOMICS:CNINTR
Russia ECONOMICS:RUINTR
Japan ECONOMICS:JPINTR
UK ECONOMICS:GBINTR
Custom Symbol (default: ECONOMICS:CHINTR )
7-10 flattener tradeIn the budget speech for FY 2023, market borrowing of 14.95 lakh crore from the market. In the Feb MPC meeting, the RBI brought down its estimates of growth and inflation potentially signaling that economy is/will go through a demand slowdown.
Now in a slowing economy, the govt. finances will be affected. Therefore, to bring back the economy on the fiscal consolidation so that sovereign bond ratings are not hit, the Indian govt. must figure out a way
1. Lower its interest payments in the face of increasing public expenditure on creating public infrastructure (read roads/highways etc. ). One simple way is to go down the yield curve in lower maturities to bring down the interest costs.
Keeping in mind (1) above, it was not difficult to expect a borrowing schedule where the shorter tenors will form a bigger percentage of the net issuance by the government.
In fact, if you look at the issuance calendar for securities below the tenor of 10 yrs (which is 2,5,7 yrs), you will find that itself comprises of ~31% of total borrowings.
Therefore, due to increased pressure on the shorter tenors and relatively less pressure on 10 yr bond yield, we can expect the yields spreads to compress in 7-10 yr region of the yield curve.
This script is written to track the same yield spread compression across 7 & 10 yr tenor.
US Treasury Constant Maturity SpreadsPlots and tabulates constant maturity treasury yield spreads
// colours per curve type for the plots and table headers
C_30Y_20Y=color.orange
C_10Y_5Y=color.purple
C_10Y_2Y=color.blue
C_7Y_5Y=color.gray
C_5Y_2Y=color.red
C_3Y_2Y=color.yellow
C_10Y_1Y=color.olive
Macroeconomic Artificial Neural Networks
This script was created by training 20 selected macroeconomic data to construct artificial neural networks on the S&P 500 index.
No technical analysis data were used.
The average error rate is 0.01.
In this respect, there is a strong relationship between the index and macroeconomic data.
Although it affects the whole world,I personally recommend using it under the following conditions: S&P 500 and related ETFs in 1W time-frame (TF = 1W SPX500USD, SP1!, SPY, SPX etc. )
Macroeconomic Parameters
Effective Federal Funds Rate (FEDFUNDS)
Initial Claims (ICSA)
Civilian Unemployment Rate (UNRATE)
10 Year Treasury Constant Maturity Rate (DGS10)
Gross Domestic Product , 1 Decimal (GDP)
Trade Weighted US Dollar Index : Major Currencies (DTWEXM)
Consumer Price Index For All Urban Consumers (CPIAUCSL)
M1 Money Stock (M1)
M2 Money Stock (M2)
2 - Year Treasury Constant Maturity Rate (DGS2)
30 Year Treasury Constant Maturity Rate (DGS30)
Industrial Production Index (INDPRO)
5-Year Treasury Constant Maturity Rate (FRED : DGS5)
Light Weight Vehicle Sales: Autos and Light Trucks (ALTSALES)
Civilian Employment Population Ratio (EMRATIO)
Capacity Utilization (TOTAL INDUSTRY) (TCU)
Average (Mean) Duration Of Unemployment (UEMPMEAN)
Manufacturing Employment Index (MAN_EMPL)
Manufacturers' New Orders (NEWORDER)
ISM Manufacturing Index (MAN : PMI)
Artificial Neural Network (ANN) Training Details :
Learning cycles: 16231
AutoSave cycles: 100
Grid
Input columns: 19
Output columns: 1
Excluded columns: 0
Training example rows: 998
Validating example rows: 0
Querying example rows: 0
Excluded example rows: 0
Duplicated example rows: 0
Network
Input nodes connected: 19
Hidden layer 1 nodes: 2
Hidden layer 2 nodes: 0
Hidden layer 3 nodes: 0
Output nodes: 1
Controls
Learning rate: 0.1000
Momentum: 0.8000 (Optimized)
Target error: 0.0100
Training error: 0.010000
NOTE : Alerts added . The red histogram represents the bear market and the green histogram represents the bull market.
Bars subject to region changes are shown as background colors. (Teal = Bull , Maroon = Bear Market )
I hope it will be useful in your studies and analysis, regards.