All indicators

Relative Performance Areas

By LuxAlgoNov 19, 2025

Relative Performance Areas is an indicator on Vela, our next-generation charting platform, written in Pine Script®.

Relative Performance Areas shades every session by whether the charted asset beat or trailed a chosen benchmark, turning relative performance into something read straight off the price panel. Sessions where the asset outperforms are backed in green, underperformance shows red, and the benchmark itself is plotted as a rescaled line, SPX by default, switchable to any symbol.

How to Trade the Relative Performance Areas?

  • Green session area: the asset outperformed the benchmark across that session.
  • Red session area: the benchmark won the session.
  • Benchmark line color: green or red depending on whether the benchmark sits above or below the asset, with an extra shaded area whenever the benchmark path travels beyond the session's high or low.
  • Streak behavior: strings of same-colored sessions flag persistent leadership or lag; the dashboard quantifies them so momentum and mean-reversion tendencies stand out.

Three display modes control how benchmark returns are transformed before comparison. Net Returns uses raw session returns; Rescaled Returns adjusts them by the ratio of asset-to-benchmark volatility; Standardized Returns converts them to a z-score before rescaling by the asset's volatility, the most robust choice when the two instruments behave very differently.

Relative Performance Areas Settings

  • Benchmark: the comparison ticker (SPX by default).
  • Display Mode: Net Returns, Rescaled Returns, or Standardized Returns.
  • Dashboard, Position, Size: toggle the statistics panel and control its placement and scale.
  • Style: show or hide the overperforming areas, underperforming areas, and benchmark line, with color choices for each.

Frequently Asked Questions

Free to use

Run it on Vela. Go further with a paid plan.

  • Up to 500 Custom Alerts, with webhook automation
  • Up to 10× the chart history of Free
  • Orderflow lookback up to full history
  • More Quant usage to customize it, plus extra usage when you need it
  • Futures data alongside crypto, stocks, forex and commodities
See plans

Also works on

TradingView
NinjaTrader
Original indicatorBuilt in-house by LuxAlgo

Run it on Vela. Make it yours with Quant.

Open this indicator free on Vela, our next-generation charting platform. Then ask Quant, our coding agent built into Vela, to retune it or turn it into a backtested strategy of your own.