TradingCharts
IndicatorProtectedv4

Relative Performance Matrix

What it does

Instantly see whether your stock is beating or lagging the index. A compact 2-row table shows 1W / 1M / 3M / 6M / YTD / 1Y returns for the chart symbol and any benchmark you pick (default NSE:NIFTY), plus a 21-day ADR volatility column. Dark, high-contrast panel that looks sharp on light and dark themes.

How traders use it

Momentum filter: only take breakout trades in stocks beating NIFTY over 1M and 3M.

Rotation checks: compare a candidate against its sector leader before switching.

Avoiding laggards: a row full of negative returns vs a positive index row is an

immediate red flag.

Volatility fit: use ADR to match a stock's daily range to your trading style.

Notes

All figures are computed from completed daily data and update on the most recent bar.

Returns are simple price changes over the lookback, not total-return (dividends excluded).

ADR uses a 21-day average of (High − Low) / Low on the daily timeframe.

Risk disclaimer: This tool is for analysis and education only and is not investment advice.

Always do your own research before trading.

How to use it

  • Open the charts and go to Indicators › My scripts › Shared with me (or search the Community library) and press Add to chart.
  • The code is protected by the author: the script runs on the chart with the source hidden.

Version history

  • v4 — 28 Nov, 11:14 am · compiler 0.3.70
  • v3 — 28 Nov, 11:04 am · compiler 0.3.70
  • v2 — 28 Nov, 10:21 am · compiler 0.3.70
  • v1 — 28 Nov, 10:20 am · compiler 0.3.70