Single-chart benchmark comparison

Relative Strength Labels

A minimalist label table that shows how the active chart is performing versus a benchmark over rolling 1M, 3M, and 6M trading windows.

Relative Strength Labels
NY VWAPAbove
ON VWAPAbove
PD NYAbove
OROutside
POC4498
21D RS+2.4%
63D RS+6.8%
126D RS+12.1%
PriceFree and open source
PlatformTradingView Pine Script
Best forActive stock traders who want benchmark-relative context on a single chart.
MarketsStocks, ETFs, Benchmark comparisons

Problem

What it solves

Relative Strength Labels keep a clean benchmark comparison on the chart. They are useful when you want to know whether a stock is actually leading the market or just moving with it.

The point is not to outsource your decision. It is to make structure, leadership, and location easier to see so your own trade plan has cleaner context.

Visual read

How to read the screen

01

Check if a stock is outperforming the broad market before adding it to a watchlist.

02

Monitor whether a swing idea is gaining or losing relative momentum.

03

Add a benchmark lens without adding a full dashboard to the chart.

Core Features

What the script includes

Shows 21, 63, and 126 trading-day relative strength windows.

Defaults to CBOE:SPX as the benchmark for high-quality index comparison.

Uses conditional coloring to separate outperformance from lagging behavior.

Keeps the UI small so price action remains the focus.

Setup

Add it without overcomplicating the chart

  1. 1

    Add the script to the chart you are analyzing.

  2. 2

    Keep the default SPX benchmark or choose your preferred index.

  3. 3

    Read the rolling windows together rather than over-weighting one value.

  4. 4

    Use positive relative strength as a filter, not a standalone entry signal.

Limits

Important notes

The script is designed around daily relative strength calculations.

A positive value means the asset outperformed the benchmark over that window.

A negative value means the asset lagged the benchmark over that window.