OPEN-SOURCE SCRIPT

Relative Strength Scatter Plot [LuxAlgo]

Updated
The Relative Strength Scatter Plot indicator is a tool that shows the historical performance of various user-selected securities against a selected benchmark.

This tool is inspired by Relative Rotation Graphs®. Relative Rotation Graphs® is a registered trademark of JOOS Holdings B.V. This script is neither endorsed, nor sponsored, nor affiliated with them.

🔶 USAGE

snapshot

This tool depicts a simple scatter plot using the relative strength ratio as the X-axis and its momentum as the Y-axis of the user-selected symbols against the selected benchmark.

The graph is divided into four quadrants, and the interpretation of the graph is done depending on where a point is situated on the graph:

  • A point in the green quadrant would indicate that the security is leading the benchmark in strength, with positive strength momentum.
  • A point in the yellow quadrant would indicate that the security is leading the benchmark in strength, with negative strength momentum.
  • A point in the blue quadrant would indicate that the security is lagging behind the benchmark in strength, with positive strength momentum.
  • A point in the red quadrant would indicate that the security is lagging behind the benchmark in strength, with negative strength momentum.


snapshot

The trail of each symbol allows the user to see the evolution of the relative strength momentum relative to the relative strength ratio. The length of the trail can be controlled by the "Trail Length" setting.

🔶 DETAILS

snapshot

Our relative strength ratio estimate is first obtained from the relative strength between the symbol of interest and the benchmark, the result is then smoothed using a linearly weighted moving average (wma). This result is then normalized with a wma of the smoothed relative strength, this ratio is again smoothed with the wma and multiplied by 100.

The relative strength momentum estimate is obtained from the ratio between the previously estimated RS-Ratio and its wma, this ratio is then multiplied by 100.

🔶 SETTINGS

  • Calculation Window: Calculation window of the RS-Ratio and RS-Momentum metrics.
  • Symbols: Symbols used for the computation of the graph, each settings line allows us to determine whether the symbol is to be displayed on the graph as well as its color.
  • Benchmark: Benchmark symbol used for the computation of the graph. Indices are commonly used as a benchmark.


🔹Graph Settings

  • Trail Length: Number of past data points to display on the graph for each symbol.
  • Resolution: Controls the horizontal length of the graph.
Release Notes
- Script now supports greater resolutions setting
Release Notes
- Minor changes
luxalgorelativestrengthRelative Strength ComparisonscannerscatterplotstrengthTrend Analysis

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


Get access to our exclusive tools: luxalgo.com

Join our 150k+ community: discord.gg/lux

All content provided by LuxAlgo is for informational & educational purposes only. Past performance does not guarantee future results.
Also on:

Disclaimer