OPEN-SOURCE SCRIPT

Market Inner Strength Index

업데이트됨
The "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.
릴리즈 노트
UPD 1.1: added dividends adjustment
릴리즈 노트
UPD 1.2: This update adds an additional dimension: whether the strength or weakness is driven by growth (risk-on) sectors such as XLK and XLY. These growth sectors often serve as 'canaries in the coal mine,' reflecting investors' enthusiasm or fear. Observing the strength or weakness in these sectors can provide further confirmation of broader market sentiment.
You can switch on/off this feature in the settings.
Breadth IndicatorsrotationsectorrotationsectorssentimentSPX (S&P 500 Index)S&P 500 (SPX500)us500

오픈 소스 스크립트

진정한 TradingView 정신에 따라, 이 스크립트의 저자는 트레이더들이 이해하고 검증할 수 있도록 오픈 소스로 공개했습니다. 저자에게 박수를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰에 의해 관리됩니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

차트에 이 스크립트를 사용하시겠습니까?


또한 다음에서도:

면책사항