OPEN-SOURCE SCRIPT

Sector Performance (2x12 Grid, labeled)

159
Sector Performance Dashboard that tracks short-term and multi-interval returns for 24 major U.S. market ETFs. It renders a clean, color-coded performance grid directly on the chart, making sector rotation and broad-market strength/weakness easy to read at a glance.

The dashboard covers two full rows of liquid U.S. sector and thematic ETFs, including:

Row 1 (Core Market + GICS sectors)
SPY, QQQ, IWM, XLF, XLE, XLRE, XLY, XLU, XLP, XLI, XLV, XLB

Row 2 (Extended industries / themes)
XLF, XBI, XHB, CLOU, XOP, IGV, XME, SOXX, DIA, KRE, XLK, VIX (VX1!)


Key features include:

  1. Time-interval selector (1–60 min, 1D, 1W, 1M, 3M, 12M)
  2. Automatic rate-of-return calculation with inside/outside-bar detection
  3. Two-row, twelve-column grid with dynamic layout anchoring (top/middle/bottom + left/center/right)
  4. Uniform white text for clarity, while inside/outside candles retain custom colors
  5. Adaptive transparency rules (heavy/avg/light) based on magnitude of % change
  6. Ticker label normalization (cleans up prefixes like “CBOE_DLY:”)

Clause de non-responsabilité

Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.