OPEN-SOURCE SCRIPT

Sector Performance (2x12 Grid, labeled)

138
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:”)

Exención de responsabilidad

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.