Market Inner Strength IndexThe "Market Inner Strength Index" is an indicator designed to visually represent the market strength by analyzing the six major sectors: XLK, XLV, XLF, XLY, XLC and XLI. These sectors represent more than 80% of the SPX index, making their performance crucial for understanding overall market conditions. The indicator calculates the individual strengths of these sectors and combines them to provide an overall market strength index, helping to identify scenarios of sector rotation, euphoria, or panic.
Rationale:
The six major sectors (XLK, XLV, XLF, XLY, XLC, XLI) are essential as they encompass a significant portion of the SPX index. Typically, money rotates among these sectors, meaning some sectors grow while others decline. Rare occasions where all sectors move in the same direction can indicate market-wide euphoria (upwards) or panic (downwards). The Market Inner Strength Index helps track sector performance and identify these scenarios.
Methodology:
Script requests current timeframe data for each of the sectors and assigns scores, based on its performance. It will work best on the daily and higher timeframes but can also be used on the lower timeframes.
Score assignment:
If the sector is green (positive performance) for the given timeframe, it receives positive points.
If the sector is red (negative performance), it receives negative points.
If the current close price is above the previous period high, additional positive points are assigned.
If the current close price is below the previous period low, additional negative points are assigned.
The scores for the six sectors are averaged to compute a total score, which is plotted on the chart. A table displays the performance of each sector, color-coded based on their scores for the last period.
Parameters:
Neutral Zone : Define the neutral zone threshold.
Heikin Ashi : Option to use Heikin Ashi candles instead of normal ones.
Show Divergency : Option to show divergences on the chart. Divergence occurs when the SPY is bullish, but the sector score is bearish, or vice versa. This option will only work on SPY chart.
Sector selections : Enable/disable specific sectors in score calculation.
Sectors
Sector relative strength and correlation by KaschkoThis script provides a quick overview of the relative strength and correlation of the symbols in a sector by showing a line chart of the close prices on a percent scale with all symbols starting at zero at the left side of the chart. It allows a great deal of flexibility in the configuration of the sectors and symbols in it. The standard preset sectors cover the most important futures markets and their symbols.
However, up to ten sectors with up to ten symbols each can be freely configured. Each sector is defined by a single line that has the following format:
Sector name:Symbol suffix:List of comma separated symbols
For example, the first predefined sector is defined as follows.
Energies:1!:CL,HO,NG,RB
1. The name of the sector is "Energies"
2. The suffix is "1!", i.e., to each symbol in the list "1!" is appended to get the continous future for the given symbol root. When using stock, forex or other symbols, simply leave the suffix empty.
3. The list of comma separated symbols is "CL,HO,NG,RB", i.e. crude oil, heating oil, natural gas and gasoline. As the suffix is "1!", the actual symbols whose prices are shown are "CL1!","HO1!","NG1!" and "RB1!"
You can choose to use settlement-as-close and back-adjusted contracts. The sector can also be determined automatically ("Auto-select"). In this case, it is determined to which sector the symbol currently displayed in the main chart belongs and the script displays it in the context of the other symbols in the sector.
By selecting a suitable chart time frame and time range, you can quickly determine which symbols in the sector are stronger or weaker and which are more or less strongly correlated.
The following symbols are best suited for a quick trial, as the sectors are preset for these:
CL1!,ES1!,6A1!,6B1!,6c1!,6E1!,6J1!,6M1!,6N1!,6S1!,GC1!,GF1!,HE1!,HG1!,HO1!,LBR1!,LE1!,NG1!,NQ1!,PA1!,PL1!,RB1!,SI1!,YM1!,ZB1!,ZC1!,ZF1!,ZL1!,ZM1!,ZN1!,ZO1!,ZR1!,ZS1!,ZT1!,ZW1!,CC1!,CT1!,DX1!,KC1!,OJ1!,SB1!,RTY1!
You can also use the script to compare any symbols (e.g. different shares) with each other. Preferably use the "Custom" sector for this.
S&P500 Sectors Relative Overviewdear fellows,
this indicator is yet another representation of S&P 500 industry sectors.
it is inspired by mr. stanley drukenmiller who in an interview mentioned that he knows no better market forecaster than the inside of the sp500 itself, which are its industry sectors.
thus, we have been for a while thinking on how to represent the performance of these sectors such that one could visually estimated the current stage of the cycle, and grasp the next one.
unfortunatelly, we believe this cannot be achieved by solely looking into SP500 industry sectors. perhaps coupled with a broad market indicator like our MRI, for instance, one can have greater odds of success.
what does it show
it displays colorfully through out time how each sector travels through its 200 period high and lows.
note that an alternative view of the sectors relatively to SPX could be considered, but by now we focused on the relative performance against its recent past (200 period, regardless the timeframe).
over the colored columns we've plotted in white the SPX under the same logic.
how is it calculated
each sector price is converged into a percentage of how near it is to its 200 period low.
so, when the price of the sector index equals the 200 period min, it is valued as 0.
when it equals the 200 period max, it is valued as 100.
same for the white plot of SPX above the colored columns.
thus a flat reading at 100 makes it indistinguishable a continued ATH extension from a pause at the ATH.
how is it colored
when the converted price results in a value lesser or equal 33, its respective bar is colored in red.
when it is between 33 and 66, the bar is colored in yellow.
and when it lies above 66, in green.
on how is it grouped
the specific ordering of the sectors is not yet settled.
we've grouped it visually based on likelihood.
on how to use this indicator
although we believe that it does not suffice for any conclusion on the market, we do not believe that an above chart can improve the resulting insight. so, at least by the time being, we recommend it to be stared alone, although not exclusively, by trader.
we are open to suggestions of any sort.
your feedback is much appreciated.
this is a work we'd have been looking for a while to put it out.
enjoy.
best regards.
GDP BreakdownProvides an easy way for viewing the sub sections that make up a country's total GDP. Not all countries provide data for each subsector (Agriculture, Construction, Manufacturing, Mining, Public Administration, Services, Utilities). Only countries that provide complete data are able to be selected in the settings. If I've missed any please let me know in the comment section so they can be added. This is much easier than having to individually selecting each ticker for each country when looking to compare how diversified an economy is.
Custom IndexEnables users to create their own custom Stock Index with up to 29 tickers! Has included optionality to include/exclude certain sectors, plot sectors individually and measure in gold. Good for having a look at how your favorite tickers have performed (with your modification of course). Also has option to show Moving Averages for your convenience.
EsIstTurnt's Relative Value Comparison Multi SymbolCompare the relative valuation of up to 8 tickers. By taking a shorter term moving average and dividing by a longer term moving average(optionally with an offset) we get a value that is either above or below 1. Easy to tell what is undervalued and overvalued with this setup. Useful for comparing different asset classes or sector specific securities looking for outperformers/underperformers. Overvalued and Undervalued levels marked by Red and Green background. Recommended in conjunction with other indicators of your choosing for confirmation of trend changes but this is good for getting a broader view of the market you're interested in. Multiple timeframes, sources available however you should tinker with it to find what gives you the best view for your preferred timeframe.
UK Sectors Comparison SMAProvides a chart showing SMA of UK equity indexes from CBOE www.cboe.com
Shows either percentage change from baseline, or absolute index values.
All configurable (including selected symbols), but the defaults are:
SMA 100,
Show Absolute Values = true
Baseline is set to CBOEEU:BUKAC
Sector indexes are:
UK Consumer Cyclicals = CBOEEU:BUKCONC
UK Mining and Minerals = CBOEEU:BUKMINP
UK Finance = CBOEEU:BUKFIN
UK Technology = CBOEEU:BUKTEC
UK Telecoms = CBOEEU:BUKTEL
UK Consumer Services = CBOEEU:BUKCONS
UK Healthcare = CBOEEU:BUKHLTH
UK Energy = CBOEEU:BUKENGY
UK Utilities = CBOEEU:BUKUTL
UK Business Services = CBOEEU:BUKBUS
UK Consumer Non-Cyclicals = CBOEEU:BUKCNC
UK Industrials = CBOEEU:BUKIND
UK Non-Energy Minerals = CBOEEU:BUKNIM
NOTE: takes a few seconds to load as it needs to request all the data
Check the tooltips in the settings for detailed help.
S&P Sector CorrelationScript for Macro:
This indicator shows the 9 day average of the correlation of the 11 S&P500 sectors with the security.
Recommend you use the indicator on SPX or SPY, but you can change the values to be compared.
GLHF
- DPT
SPX Intraday Mood IndicatorThe SPX Intraday Mood Indicator tries to gauge the intraday market direction of the S&P 500 (SPX) by focusing on internal market data.
Based on the 0DTE Mood Indicator concept. Overall strength/weakness is converted into a directional Mood Percentage which can help with choosing a trade type.
Use at your own risk and discretion. Potential trade ideas offer no guarantees. Intraday Charts Only. Turn off extended hours data. Only works on SPX.
This first version is untested and I am only sharing it to gather feedback on its accuracy, use at your own risk.
SectorsThis script attempts to show the relative strength of the 11 sectors in the SPX, which can be accomplished in three ways:
1. Sectors - displays all sector indices as they appear normally
2. Sector Relativity - displays each sector divided by the sum of the other 10 sectors
3. Sector Alpha - displays the alpha of each sector as compared to the sum of the other 10 sectors
I have seen some other iterations of this script that compare each sector to the SPX as a whole, a couple problems with that:
1. SPX sector weightings are unequal and change quarterly, meaning you will get an inaccurate depiction of relative sector strength across time.
2. Even if using an equal-weight SPX, you would be comparing a sector to itself as all 11 sectors are included in the SPX, not just the complementary 10 you are looking to compare one sector to.
For more information on the sectors in the SPX or the calculation of Alpha, visit the links at the top of the script.
*Includes an option for repainting -- default value is true, meaning the script will repaint the current bar.
False = Not Repainting = Value for the current bar is not repainted, but all past values are offset by 1 bar.
True = Repainting = Value for the current bar is repainted, but all past values are correct and not offset by 1 bar.
In both cases, all of the historical values are correct, it is just a matter of whether you prefer the current bar to be realistically painted and the historical bars offset by 1, or the current bar to be repainted and the historical data to match their respective price bars.
As explained by TradingView,`f_security()` is for coders who want to offer their users a repainting/no-repainting version of the HTF data.
Current RSI vs Sector RSI ComparisonIn the example above GOOGL's RSI is being compared against the RSI for XLK, the technology sector fund. The red and green areas make it easy to see if Google is under or overperforming relative to other tech stocks. I've included a normal RSI above it for comparison.
You can compare any stock to a sector, i.e. JP Morgan (JPM) versus the financial sector (XLF), or whatever your heart desires. All major sectors are selectable from a drop-down box and the output can also be visualised as a histogram too, much like a MACD.
Sectors Relative Strength Normal DistributionI wrote this indicator as an attempt to see the Relative Strengths of different sectors in the same scale, but there is also other ways to do that.
This indicator plots the normal distribution for the 10 sectors of the SPY for the last X bars of the selected resolution, based on the selected comparative security. It shows which sectors are outperforming and underperforming the SPY (or any other security) relatively to each other by the given deviation.