OPEN-SOURCE SCRIPT
Relative Strength Screener [TradingFinder] RS Rotation Matrix

🔵Introduction
There are times when several markets or symbols move higher at the same time, but that does not mean they are showing the same level of strength. An asset may rise and appear strong at first glance, while its benchmark has performed even better over the same period. In that situation, simply knowing which symbol is moving higher is not enough. The more important question is which asset is actually outperforming the market and which one is beginning to lose relative strength.

This is where Relative Strength analysis becomes useful. Instead of evaluating each symbol independently, a group of assets can be compared against the same benchmark to identify where relative strength is concentrated. This approach can be applied to stocks, indices, funds, currencies, commodities, cryptocurrencies, or any other comparable group of symbols.
Alongside Relative Strength, Relative Momentum adds another important layer because a current leader may still look strong while its relative momentum is starting to weaken, while a weaker symbol may already be entering an improving phase.
The Relative Strength Screener [TradingFinder] is designed to make these changes easier to identify. It compares multiple symbols against a common benchmark, ranks them using Relative Strength and Relative Momentum, and organizes the results inside a Ranking Dashboard. At the same time, the Rotation Matrix classifies each symbol as Leading, Improving, Weakening, or Lagging, making it easier to distinguish current leaders, emerging strength, weakening leadership, and persistent relative weakness.
This structure helps traders understand where relative strength is currently concentrated and where that strength may be moving next without manually reviewing a large number of charts. The purpose of the screener is not to generate direct Buy or Sell signals. Its main role is to support asset selection, Market Leadership analysis, Market Rotation analysis, and the creation of a more focused watchlist for further technical analysis.
🔵How to Use
After adding the Relative Strength Screener to the chart, the first step is to define the group of assets that will be compared with one another. This group, or universe, should ideally contain instruments that make sense to evaluate within the same context. For example, users can compare stocks from the same industry, different market indices, funds, commodities, currencies, cryptocurrencies, or any other group of related assets. The indicator supports between 2 and 10 active symbols, and all Relative Strength and Relative Momentum calculations are based on this selected universe.

By default, the screener includes 10 sector funds from the US stock market and uses
SPY as the Benchmark. This setup provides a practical example of Sector Rotation analysis.
XLK represents Technology,
XLF represents Financials,
XLE represents Energy,
XLV represents Health Care, and
XLY represents Consumer Discretionary. The remaining symbols are
XLP for Consumer Staples,
XLI for Industrials,
XLB for Materials,
XLU for Utilities, and
XLRE for Real Estate.
These default symbols are only an example universe. The Relative Strength Screener is not limited to sector funds or the US market. Users can replace every symbol and the Benchmark to build a universe that matches their own analysis.
For example, several stocks from the same industry can be compared against a sector index, global equity indices can be compared against a broader market benchmark, or a group of cryptocurrencies can be evaluated relative to a selected crypto market reference. The important point is that all selected instruments should belong to a meaningful comparison framework.
🟣Benchmark and Scan Timeframe
The Benchmark is the reference point for all Relative Strength calculations. With the default settings, SPY serves as this reference. This means the screener does not simply measure whether a symbol has risen or fallen. Instead, it evaluates how that symbol performed relative to SPY.
For example, an asset may gain 3 percent during the selected period and appear strong when viewed independently. However, if the Benchmark gains 5 percent over the same period, the asset has still underperformed the broader market. This distinction separates Absolute Performance from Relative Performance and helps identify assets that are truly gaining leadership rather than simply moving in the same direction as the market.
The Scan Timeframe determines the timeframe used by the ranking engine. If the Scan Timeframe is set to Daily, for example, the Performance Length and Momentum Length are calculated using daily scan bars. When the Scan Timeframe is equal to or higher than the chart timeframe, the screener uses confirmed scan data. When the Scan Timeframe is lower than the chart timeframe, the indicator uses the latest available intrabar information to create the current snapshot.

The current data mode is displayed directly in the Ranking Dashboard. If lower timeframe data is unavailable or incomplete, the screener displays a visible NO DATA or LIMITED DATA message rather than presenting a potentially misleading ranking.
🟣Relative Strength and Relative Momentum
The core model of the screener is built around two measurements: Relative Strength and Relative Momentum.
Relative Strength measures how each symbol has performed compared with the Benchmark over the selected Performance Length. A positive Relative Return means the symbol has outperformed the Benchmark, while a negative value means the symbol has underperformed it. This information is displayed directly in the vs Benchmark column.
For example, if the dashboard shows 0.80% ahead, the symbol has delivered approximately 0.80 percent more relative performance than the Benchmark over the selected period. If the table shows 0.45% behind, the symbol has underperformed the Benchmark by approximately 0.45 percent on a relative basis.

Relative Strength describes the current position of an asset, but that alone does not show whether the situation is improving or deteriorating. This is why the indicator also calculates Relative Momentum. Relative Momentum measures how Relative Return has changed compared with its value a specified number of scan bars earlier.
A symbol can therefore remain ahead of the Benchmark while its Relative Momentum becomes negative. In this case, the asset is still an outperformer, but its previous advantage is beginning to fade. In the opposite situation, a symbol may still be behind the Benchmark while Relative Momentum becomes positive. This can be an early sign that its previous weakness is starting to reverse.

🟣Ranking Dashboard
The Ranking Dashboard is the main analytical component of the Relative Strength Screener. It ranks the selected symbols using a combination of Relative Strength and Relative Momentum, while also showing the evidence behind each position.
The purpose of the table is not simply to tell the user which symbol ranks first or last. It is designed to answer several more useful questions. Which assets deserve further attention? Which leaders are maintaining their strength? Which symbols are improving? Which leaders are beginning to fade? And how persistent has the current relative strength been?
🟣Rank
The Rank column shows the current position of each valid symbol within the selected universe.
If a symbol displays 1 of 10, it currently has the highest Composite Score among the 10 valid symbols. A reading of 6 of 10 means that five other assets currently have a higher score.
Rank is useful for quickly identifying the strongest members of the universe, but it should not be interpreted in isolation. Ranking is relative to the selected symbols. A symbol can rank first and still be underperforming the Benchmark if the entire universe is weak.
For this reason, Rank should normally be analyzed together with the vs Benchmark column.
🟣Takeaway and Evidence
The Takeaway / Evidence column converts several underlying calculations into a more readable conclusion. Instead of requiring the user to interpret Relative Return, Momentum, Rank, Rank Change, and Persistence separately, the screener combines these conditions into descriptive states.
Sustained Leadership indicates that the symbol is ahead of the Benchmark, its Relative Momentum is not negative, it is ranked inside the top group, and it has maintained that position for the required Leadership Confirmation period. This condition represents established relative leadership and can identify assets that deserve further technical analysis.
Outperforming, Fading appears when the symbol is still ahead of the Benchmark but its Relative Momentum has turned negative. The asset remains relatively strong, but its advantage is shrinking. This can provide an early warning that an existing market leader is losing strength.
Climbing the Ranks indicates positive Relative Momentum together with an improvement in Rank. A symbol that moves from Rank 8 to Rank 6 and then to Rank 4 is progressively strengthening compared with the other members of the universe.
Recovering, Still Behind describes a symbol that continues to underperform the Benchmark but is showing positive Relative Momentum and improving Rank. This is not confirmed leadership. Instead, it represents an early recovery phase that may justify placing the asset on a watchlist.

Behind, No Recovery indicates that the symbol is behind the Benchmark and is not showing meaningful improvement in either Momentum or Rank. In a Relative Strength based selection process, these assets would normally receive lower priority.

Mixed Evidence is displayed when the available signals do not point in the same direction. Momentum may be improving while Rank remains weak, or other confirmation conditions may not yet be satisfied. The indicator intentionally keeps the conclusion neutral in these situations rather than forcing a stronger interpretation.
If one or more symbols in the universe lack valid data, the dashboard can display Incomplete Comparison. If the individual symbol itself does not have enough valid history, the result becomes Insufficient Data. Since Percentile and Rank calculations depend on cross sectional comparison, the indicator avoids producing strong conclusions when the available universe is incomplete.
🟣vs Benchmark
The vs Benchmark column shows the actual relative performance of each symbol against the selected Benchmark.
An ahead value means the asset has outperformed the Benchmark over the configured Performance Length. A behind value means it has underperformed.
This column is especially important because it prevents a high Rank from being mistaken for genuine market outperformance. A symbol may rank first among the selected assets while still showing 0.20% behind. In that case, it is the strongest member of the selected universe, but it has not yet outperformed the Benchmark itself.
🟣Score
The Score column combines Strength Percentile and Momentum Percentile into a single comparison score.
With the default settings, 65 percent of the score is assigned to Strength and 35 percent is assigned to Momentum. A higher score means the symbol has a stronger combination of Relative Strength and Relative Momentum compared with the other members of the universe.
The score is not a probability measurement. A value of 90 does not mean there is a 90 percent probability of a profitable trade, a 90 percent win rate, or a 90 percent probability that the asset will rise. It is simply a relative comparison metric used to rank the selected symbols.
🟣Top Group Streak
The Top Group Streak shows how long a symbol has remained inside the strongest portion of the selected universe.
The top group is defined using the top quartile. In a universe of 10 symbols, this generally corresponds to the top three ranked assets.
If a symbol displays 8 scans, it means that the asset has remained in the top group for eight consecutive ranking checks. This helps distinguish a temporary jump in Rank from more persistent market leadership.
Top Group Streak does not count how many consecutive times a symbol has outperformed the Benchmark. It only measures persistence inside the top ranking group.
🟣Rank Change
The Rank Change column shows how the position of a symbol has changed since the previous completed ranking check.
A value such as ↑ 2 places means the symbol improved by two ranking positions. A value of ↓ 2 places means it dropped by two positions. Unchanged means the ranking remained the same.
Current Rank shows where the asset is now, while Rank Change helps show the direction in which it is moving.
For example, a symbol currently ranked fifth may have improved from Rank 9 over the previous scans. This can indicate strengthening relative performance. Another symbol may still hold Rank 3 but may have fallen from Rank 1, suggesting that its leadership is beginning to deteriorate.
🟣Rotation Matrix
The Rotation Matrix provides a faster and more visual summary of the entire universe. While the Ranking Dashboard shows detailed numerical evidence for every symbol, the Rotation Matrix focuses on the relationship between Strength and Momentum.
The matrix compares Strength Percentile and Momentum Percentile using the 50th percentile as the default boundary. Every valid symbol is then classified as Leading, Improving, Weakening, or Lagging.
A symbol in the Leading state has both Strength and Momentum in the stronger half of the universe. These assets represent the current relative leaders. If a symbol remains in Leading for several scans and the Ranking Dashboard also confirms Benchmark outperformance and a strong Top Group Streak, the evidence for persistent leadership becomes stronger.
An Improving symbol still has Strength in the weaker half of the universe, but its Momentum has moved into the stronger half. This state is particularly useful for identifying Emerging Leadership. The asset is not yet a confirmed leader, but its Relative Performance has started to improve.
One of the most important positive rotation sequences is: Lagging → Improving → Leading
This progression shows an asset moving from relative weakness into improving momentum and eventually into relative leadership.
A Weakening symbol still has above median Strength but below median Momentum. The asset remains relatively strong, but the quality of that strength is deteriorating.
A Leader moving into Weakening may be showing the first signs of losing its previous advantage.
If the deterioration continues, the sequence may become: Leading → Weakening → Lagging
However, a Weakening symbol can also return to Leading if Momentum recovers. For this reason, Weakening should be treated as a change in relative conditions rather than an automatic Sell signal.
A Lagging symbol has both Strength and Momentum in the weaker half of the universe. These assets usually receive lower priority in a Relative Strength selection process. However, movement out of Lagging can be important. A transition from Lagging to Improving can be the first indication that the relative trend is beginning to change.
🟣Combining the Ranking Dashboard and Rotation Matrix
The most useful way to analyze the indicator is to read the Rotation Matrix and Ranking Dashboard together.
The Rotation Matrix provides the first overview. It shows where Relative Strength is concentrated and which assets are currently Leading, Improving, Weakening, or Lagging. The Ranking Dashboard then provides the numerical evidence needed to understand the quality of each state.
For example, if a symbol appears in Leading, the trader can check the Dashboard to determine whether it is actually ahead of the Benchmark, how high it ranks, how strong its Score is, how long it has remained in the top group, and whether its Rank is improving or deteriorating.
Two symbols can both appear in Leading while having very different profiles. One may be ahead of the Benchmark, ranked first, and have a long Top Group Streak. Another may have only recently entered the stronger half of the universe and have little persistence. The Rotation Matrix places both in the same broad state, while the Ranking Dashboard explains the difference between them.
The same principle applies to Improving. A symbol may be improving while still remaining behind the Benchmark. Another may already have crossed into relative outperformance. Rank Change can then show whether the improvement in Momentum is also beginning to affect its broader ranking.
For Weakening assets, the combination of negative Relative Momentum, declining Rank, and lower persistence can provide stronger evidence that leadership is deteriorating. If Rank remains stable and Momentum weakness is temporary, the condition may simply represent a short pause in relative strength.
It is important to understand that the Dashboard conclusions and Rotation Matrix do not use identical logic. The Rotation Matrix is based only on Strength Percentile and Momentum Percentile. The Dashboard also considers Relative Return, Relative Momentum, Rank Change, and Persistence.
For this reason, a symbol can appear as Improving in the Rotation Matrix while its Dashboard conclusion still shows Mixed Evidence. These outputs are not contradictory. They describe different dimensions of the same relative strength analysis.
🟣Practical Workflow
A practical workflow begins by selecting a meaningful universe and an appropriate Benchmark. The Scan Timeframe, Performance Length, and Momentum Length can then be adjusted according to the intended analysis horizon.
The Rotation Matrix can first be used to identify current leaders, emerging strength, weakening leadership, and persistent laggards. The Ranking Dashboard can then be used to verify Benchmark Relative Performance, Rank, Score, Rank Change, and leadership persistence.
Symbols in Leading can be examined for current market leadership. Improving assets can be monitored for emerging Relative Strength. Weakening can help identify existing leaders that are beginning to lose Momentum, while Lagging identifies the weaker part of the selected universe.
The strongest or most interesting candidates can then be moved into a focused watchlist for further analysis of Price Structure, Trend, Liquidity, Entry Conditions, and Risk Management.
🔵Settings
Number of Symbols: Determines how many symbols are included in the Relative Strength Screener. Users can select between 2 and 10 symbols. Only the first selected number of symbol inputs will be included in the Ranking Dashboard and Rotation Matrix.
Symbol 1 to Symbol 10: Defines the assets used in the Relative Strength comparison. Each symbol can be replaced with any preferred stock, index, fund, currency, commodity, cryptocurrency, or other supported TradingView symbol. For more meaningful results, the selected symbols should belong to a logically comparable market universe.
Benchmark: Defines the reference asset used for all Relative Strength calculations. Each selected symbol is compared with this Benchmark to determine whether it is outperforming or underperforming the reference market. The default Benchmark is SPY.
Scan Timeframe: Determines the timeframe used by the Relative Strength ranking engine. The Scan Timeframe can be higher than, equal to, or lower than the chart timeframe. Higher and equal timeframe calculations use confirmed data, while lower timeframe settings use the latest available intrabar data.
Performance Length: Defines the number of Scan Timeframe bars used to calculate Benchmark Relative Performance. Higher values measure Relative Strength over a longer period, while lower values make the calculation more responsive to recent performance changes.
Momentum Length: Determines the period used to measure changes in Relative Performance. It compares the current Relative Return with its previous value to identify whether Relative Strength is improving or deteriorating.
Momentum Weight %: Defines how much influence Relative Momentum has on the final Score. The remaining percentage is automatically assigned to Relative Strength. For example, the default value of 35 percent creates a Score based on 35 percent Momentum and 65 percent Strength.
Leadership Confirmation: Defines how many consecutive Top Group checks are required before a symbol can be classified as having Sustained Leadership. Higher values require longer persistence before leadership is confirmed.
Symbol: Selects the asset displayed in the Relative Performance Oscillator. The selected symbol should be one of the active screener symbols. If another symbol is selected, Symbol 1 is used automatically.
Performance Length: Determines the lookback period used to calculate the selected symbol's performance relative to the Benchmark in the oscillator. Unlike the Ranking Dashboard, this setting is calculated using chart timeframe bars.
Smoothing: Defines the smoothing period applied to the Relative Performance line. Higher values create a smoother oscillator with less short term fluctuation, while lower values make the line more responsive.
Signal Length: Determines the EMA period used for the oscillator Signal Line. The relationship between the Relative Performance line and its Signal Line can be used to evaluate short term acceleration or deceleration in relative performance.
Show Signal: Enables or disables the oscillator Signal Line and the Relative Acceleration ribbon.
Show Last Value: Enables or disables the label showing the selected Symbol and Benchmark pair together with the latest Relative Performance value.
Send Alerts: Enables or disables the Relative Strength event engine. When enabled, alerts can be generated for Leader Group entries, Rotation State changes, Leadership Loss, and Leadership Confirmation events.
Leader Rank: Defines the Top N ranking group used for Leader Entry and Leadership Loss alerts. For example, when this value is set to 3, a symbol entering the Top 3 can trigger a Leader Entry event, while leaving the Top 3 can trigger a Leadership Loss event.
Show Ranking Table: Shows or hides the Relative Strength Ranking Dashboard on the chart.
Ranking Table Size: Adjusts the visual size of the Ranking Dashboard. Available options include Tiny, Small, Normal, and Large.
Ranking Table Position: Determines where the Ranking Dashboard appears on the chart. Users can select from nine positions using Top, Middle, or Bottom combined with Left, Center, or Right.
Show Rotation Matrix: Shows or hides the Rotation Matrix on the chart.
Matrix Table Size: Adjusts the visual size of the Rotation Matrix. Available options include Tiny, Small, Normal, and Large.
Matrix Table Position: Determines where the Rotation Matrix appears on the chart. Users can select from nine available positions. A different position from the Ranking Dashboard should be selected when both tables are enabled to prevent overlap.
🔵Conclusion
Markets rarely move in a perfectly uniform way. While one group of assets is gaining leadership, another may be losing momentum, and somewhere else a previously weak symbol may already be starting to recover. Looking at price alone can make these shifts difficult to recognize, especially when several assets are moving in the same direction at the same time.
The Relative Strength Screener [TradingFinder] is built to make that rotation easier to see. By comparing a selected group of symbols against a common Benchmark, the indicator helps reveal which assets are truly outperforming, which ones are improving, and which current leaders are beginning to fade. The Ranking Dashboard adds the numerical evidence behind that comparison, while the Rotation Matrix turns the same market into a clearer picture of Leading, Improving, Weakening, and Lagging assets.
The goal is not to replace chart analysis or generate an automatic Buy or Sell signal. The value of the screener comes earlier in the decision process, when the trader is still asking which symbols deserve attention in the first place. Once the stronger, improving, or weakening assets have been identified, the next step is to return to the chart and evaluate Price Structure, Trend, Liquidity, Entry Conditions, and Risk Management.
There are times when several markets or symbols move higher at the same time, but that does not mean they are showing the same level of strength. An asset may rise and appear strong at first glance, while its benchmark has performed even better over the same period. In that situation, simply knowing which symbol is moving higher is not enough. The more important question is which asset is actually outperforming the market and which one is beginning to lose relative strength.
This is where Relative Strength analysis becomes useful. Instead of evaluating each symbol independently, a group of assets can be compared against the same benchmark to identify where relative strength is concentrated. This approach can be applied to stocks, indices, funds, currencies, commodities, cryptocurrencies, or any other comparable group of symbols.
Alongside Relative Strength, Relative Momentum adds another important layer because a current leader may still look strong while its relative momentum is starting to weaken, while a weaker symbol may already be entering an improving phase.
The Relative Strength Screener [TradingFinder] is designed to make these changes easier to identify. It compares multiple symbols against a common benchmark, ranks them using Relative Strength and Relative Momentum, and organizes the results inside a Ranking Dashboard. At the same time, the Rotation Matrix classifies each symbol as Leading, Improving, Weakening, or Lagging, making it easier to distinguish current leaders, emerging strength, weakening leadership, and persistent relative weakness.
This structure helps traders understand where relative strength is currently concentrated and where that strength may be moving next without manually reviewing a large number of charts. The purpose of the screener is not to generate direct Buy or Sell signals. Its main role is to support asset selection, Market Leadership analysis, Market Rotation analysis, and the creation of a more focused watchlist for further technical analysis.
🔵How to Use
After adding the Relative Strength Screener to the chart, the first step is to define the group of assets that will be compared with one another. This group, or universe, should ideally contain instruments that make sense to evaluate within the same context. For example, users can compare stocks from the same industry, different market indices, funds, commodities, currencies, cryptocurrencies, or any other group of related assets. The indicator supports between 2 and 10 active symbols, and all Relative Strength and Relative Momentum calculations are based on this selected universe.
By default, the screener includes 10 sector funds from the US stock market and uses
These default symbols are only an example universe. The Relative Strength Screener is not limited to sector funds or the US market. Users can replace every symbol and the Benchmark to build a universe that matches their own analysis.
For example, several stocks from the same industry can be compared against a sector index, global equity indices can be compared against a broader market benchmark, or a group of cryptocurrencies can be evaluated relative to a selected crypto market reference. The important point is that all selected instruments should belong to a meaningful comparison framework.
🟣Benchmark and Scan Timeframe
The Benchmark is the reference point for all Relative Strength calculations. With the default settings, SPY serves as this reference. This means the screener does not simply measure whether a symbol has risen or fallen. Instead, it evaluates how that symbol performed relative to SPY.
For example, an asset may gain 3 percent during the selected period and appear strong when viewed independently. However, if the Benchmark gains 5 percent over the same period, the asset has still underperformed the broader market. This distinction separates Absolute Performance from Relative Performance and helps identify assets that are truly gaining leadership rather than simply moving in the same direction as the market.
The Scan Timeframe determines the timeframe used by the ranking engine. If the Scan Timeframe is set to Daily, for example, the Performance Length and Momentum Length are calculated using daily scan bars. When the Scan Timeframe is equal to or higher than the chart timeframe, the screener uses confirmed scan data. When the Scan Timeframe is lower than the chart timeframe, the indicator uses the latest available intrabar information to create the current snapshot.
The current data mode is displayed directly in the Ranking Dashboard. If lower timeframe data is unavailable or incomplete, the screener displays a visible NO DATA or LIMITED DATA message rather than presenting a potentially misleading ranking.
🟣Relative Strength and Relative Momentum
The core model of the screener is built around two measurements: Relative Strength and Relative Momentum.
Relative Strength measures how each symbol has performed compared with the Benchmark over the selected Performance Length. A positive Relative Return means the symbol has outperformed the Benchmark, while a negative value means the symbol has underperformed it. This information is displayed directly in the vs Benchmark column.
For example, if the dashboard shows 0.80% ahead, the symbol has delivered approximately 0.80 percent more relative performance than the Benchmark over the selected period. If the table shows 0.45% behind, the symbol has underperformed the Benchmark by approximately 0.45 percent on a relative basis.
Relative Strength describes the current position of an asset, but that alone does not show whether the situation is improving or deteriorating. This is why the indicator also calculates Relative Momentum. Relative Momentum measures how Relative Return has changed compared with its value a specified number of scan bars earlier.
A symbol can therefore remain ahead of the Benchmark while its Relative Momentum becomes negative. In this case, the asset is still an outperformer, but its previous advantage is beginning to fade. In the opposite situation, a symbol may still be behind the Benchmark while Relative Momentum becomes positive. This can be an early sign that its previous weakness is starting to reverse.
🟣Ranking Dashboard
The Ranking Dashboard is the main analytical component of the Relative Strength Screener. It ranks the selected symbols using a combination of Relative Strength and Relative Momentum, while also showing the evidence behind each position.
The purpose of the table is not simply to tell the user which symbol ranks first or last. It is designed to answer several more useful questions. Which assets deserve further attention? Which leaders are maintaining their strength? Which symbols are improving? Which leaders are beginning to fade? And how persistent has the current relative strength been?
🟣Rank
The Rank column shows the current position of each valid symbol within the selected universe.
If a symbol displays 1 of 10, it currently has the highest Composite Score among the 10 valid symbols. A reading of 6 of 10 means that five other assets currently have a higher score.
Rank is useful for quickly identifying the strongest members of the universe, but it should not be interpreted in isolation. Ranking is relative to the selected symbols. A symbol can rank first and still be underperforming the Benchmark if the entire universe is weak.
For this reason, Rank should normally be analyzed together with the vs Benchmark column.
🟣Takeaway and Evidence
The Takeaway / Evidence column converts several underlying calculations into a more readable conclusion. Instead of requiring the user to interpret Relative Return, Momentum, Rank, Rank Change, and Persistence separately, the screener combines these conditions into descriptive states.
Sustained Leadership indicates that the symbol is ahead of the Benchmark, its Relative Momentum is not negative, it is ranked inside the top group, and it has maintained that position for the required Leadership Confirmation period. This condition represents established relative leadership and can identify assets that deserve further technical analysis.
Outperforming, Fading appears when the symbol is still ahead of the Benchmark but its Relative Momentum has turned negative. The asset remains relatively strong, but its advantage is shrinking. This can provide an early warning that an existing market leader is losing strength.
Climbing the Ranks indicates positive Relative Momentum together with an improvement in Rank. A symbol that moves from Rank 8 to Rank 6 and then to Rank 4 is progressively strengthening compared with the other members of the universe.
Recovering, Still Behind describes a symbol that continues to underperform the Benchmark but is showing positive Relative Momentum and improving Rank. This is not confirmed leadership. Instead, it represents an early recovery phase that may justify placing the asset on a watchlist.
Behind, No Recovery indicates that the symbol is behind the Benchmark and is not showing meaningful improvement in either Momentum or Rank. In a Relative Strength based selection process, these assets would normally receive lower priority.
Mixed Evidence is displayed when the available signals do not point in the same direction. Momentum may be improving while Rank remains weak, or other confirmation conditions may not yet be satisfied. The indicator intentionally keeps the conclusion neutral in these situations rather than forcing a stronger interpretation.
If one or more symbols in the universe lack valid data, the dashboard can display Incomplete Comparison. If the individual symbol itself does not have enough valid history, the result becomes Insufficient Data. Since Percentile and Rank calculations depend on cross sectional comparison, the indicator avoids producing strong conclusions when the available universe is incomplete.
🟣vs Benchmark
The vs Benchmark column shows the actual relative performance of each symbol against the selected Benchmark.
An ahead value means the asset has outperformed the Benchmark over the configured Performance Length. A behind value means it has underperformed.
This column is especially important because it prevents a high Rank from being mistaken for genuine market outperformance. A symbol may rank first among the selected assets while still showing 0.20% behind. In that case, it is the strongest member of the selected universe, but it has not yet outperformed the Benchmark itself.
🟣Score
The Score column combines Strength Percentile and Momentum Percentile into a single comparison score.
With the default settings, 65 percent of the score is assigned to Strength and 35 percent is assigned to Momentum. A higher score means the symbol has a stronger combination of Relative Strength and Relative Momentum compared with the other members of the universe.
The score is not a probability measurement. A value of 90 does not mean there is a 90 percent probability of a profitable trade, a 90 percent win rate, or a 90 percent probability that the asset will rise. It is simply a relative comparison metric used to rank the selected symbols.
🟣Top Group Streak
The Top Group Streak shows how long a symbol has remained inside the strongest portion of the selected universe.
The top group is defined using the top quartile. In a universe of 10 symbols, this generally corresponds to the top three ranked assets.
If a symbol displays 8 scans, it means that the asset has remained in the top group for eight consecutive ranking checks. This helps distinguish a temporary jump in Rank from more persistent market leadership.
Top Group Streak does not count how many consecutive times a symbol has outperformed the Benchmark. It only measures persistence inside the top ranking group.
🟣Rank Change
The Rank Change column shows how the position of a symbol has changed since the previous completed ranking check.
A value such as ↑ 2 places means the symbol improved by two ranking positions. A value of ↓ 2 places means it dropped by two positions. Unchanged means the ranking remained the same.
Current Rank shows where the asset is now, while Rank Change helps show the direction in which it is moving.
For example, a symbol currently ranked fifth may have improved from Rank 9 over the previous scans. This can indicate strengthening relative performance. Another symbol may still hold Rank 3 but may have fallen from Rank 1, suggesting that its leadership is beginning to deteriorate.
🟣Rotation Matrix
The Rotation Matrix provides a faster and more visual summary of the entire universe. While the Ranking Dashboard shows detailed numerical evidence for every symbol, the Rotation Matrix focuses on the relationship between Strength and Momentum.
The matrix compares Strength Percentile and Momentum Percentile using the 50th percentile as the default boundary. Every valid symbol is then classified as Leading, Improving, Weakening, or Lagging.
A symbol in the Leading state has both Strength and Momentum in the stronger half of the universe. These assets represent the current relative leaders. If a symbol remains in Leading for several scans and the Ranking Dashboard also confirms Benchmark outperformance and a strong Top Group Streak, the evidence for persistent leadership becomes stronger.
An Improving symbol still has Strength in the weaker half of the universe, but its Momentum has moved into the stronger half. This state is particularly useful for identifying Emerging Leadership. The asset is not yet a confirmed leader, but its Relative Performance has started to improve.
One of the most important positive rotation sequences is: Lagging → Improving → Leading
This progression shows an asset moving from relative weakness into improving momentum and eventually into relative leadership.
A Weakening symbol still has above median Strength but below median Momentum. The asset remains relatively strong, but the quality of that strength is deteriorating.
A Leader moving into Weakening may be showing the first signs of losing its previous advantage.
If the deterioration continues, the sequence may become: Leading → Weakening → Lagging
However, a Weakening symbol can also return to Leading if Momentum recovers. For this reason, Weakening should be treated as a change in relative conditions rather than an automatic Sell signal.
A Lagging symbol has both Strength and Momentum in the weaker half of the universe. These assets usually receive lower priority in a Relative Strength selection process. However, movement out of Lagging can be important. A transition from Lagging to Improving can be the first indication that the relative trend is beginning to change.
🟣Combining the Ranking Dashboard and Rotation Matrix
The most useful way to analyze the indicator is to read the Rotation Matrix and Ranking Dashboard together.
The Rotation Matrix provides the first overview. It shows where Relative Strength is concentrated and which assets are currently Leading, Improving, Weakening, or Lagging. The Ranking Dashboard then provides the numerical evidence needed to understand the quality of each state.
For example, if a symbol appears in Leading, the trader can check the Dashboard to determine whether it is actually ahead of the Benchmark, how high it ranks, how strong its Score is, how long it has remained in the top group, and whether its Rank is improving or deteriorating.
Two symbols can both appear in Leading while having very different profiles. One may be ahead of the Benchmark, ranked first, and have a long Top Group Streak. Another may have only recently entered the stronger half of the universe and have little persistence. The Rotation Matrix places both in the same broad state, while the Ranking Dashboard explains the difference between them.
The same principle applies to Improving. A symbol may be improving while still remaining behind the Benchmark. Another may already have crossed into relative outperformance. Rank Change can then show whether the improvement in Momentum is also beginning to affect its broader ranking.
For Weakening assets, the combination of negative Relative Momentum, declining Rank, and lower persistence can provide stronger evidence that leadership is deteriorating. If Rank remains stable and Momentum weakness is temporary, the condition may simply represent a short pause in relative strength.
It is important to understand that the Dashboard conclusions and Rotation Matrix do not use identical logic. The Rotation Matrix is based only on Strength Percentile and Momentum Percentile. The Dashboard also considers Relative Return, Relative Momentum, Rank Change, and Persistence.
For this reason, a symbol can appear as Improving in the Rotation Matrix while its Dashboard conclusion still shows Mixed Evidence. These outputs are not contradictory. They describe different dimensions of the same relative strength analysis.
🟣Practical Workflow
A practical workflow begins by selecting a meaningful universe and an appropriate Benchmark. The Scan Timeframe, Performance Length, and Momentum Length can then be adjusted according to the intended analysis horizon.
The Rotation Matrix can first be used to identify current leaders, emerging strength, weakening leadership, and persistent laggards. The Ranking Dashboard can then be used to verify Benchmark Relative Performance, Rank, Score, Rank Change, and leadership persistence.
Symbols in Leading can be examined for current market leadership. Improving assets can be monitored for emerging Relative Strength. Weakening can help identify existing leaders that are beginning to lose Momentum, while Lagging identifies the weaker part of the selected universe.
The strongest or most interesting candidates can then be moved into a focused watchlist for further analysis of Price Structure, Trend, Liquidity, Entry Conditions, and Risk Management.
🔵Settings
Number of Symbols: Determines how many symbols are included in the Relative Strength Screener. Users can select between 2 and 10 symbols. Only the first selected number of symbol inputs will be included in the Ranking Dashboard and Rotation Matrix.
Symbol 1 to Symbol 10: Defines the assets used in the Relative Strength comparison. Each symbol can be replaced with any preferred stock, index, fund, currency, commodity, cryptocurrency, or other supported TradingView symbol. For more meaningful results, the selected symbols should belong to a logically comparable market universe.
Benchmark: Defines the reference asset used for all Relative Strength calculations. Each selected symbol is compared with this Benchmark to determine whether it is outperforming or underperforming the reference market. The default Benchmark is SPY.
Scan Timeframe: Determines the timeframe used by the Relative Strength ranking engine. The Scan Timeframe can be higher than, equal to, or lower than the chart timeframe. Higher and equal timeframe calculations use confirmed data, while lower timeframe settings use the latest available intrabar data.
Performance Length: Defines the number of Scan Timeframe bars used to calculate Benchmark Relative Performance. Higher values measure Relative Strength over a longer period, while lower values make the calculation more responsive to recent performance changes.
Momentum Length: Determines the period used to measure changes in Relative Performance. It compares the current Relative Return with its previous value to identify whether Relative Strength is improving or deteriorating.
Momentum Weight %: Defines how much influence Relative Momentum has on the final Score. The remaining percentage is automatically assigned to Relative Strength. For example, the default value of 35 percent creates a Score based on 35 percent Momentum and 65 percent Strength.
Leadership Confirmation: Defines how many consecutive Top Group checks are required before a symbol can be classified as having Sustained Leadership. Higher values require longer persistence before leadership is confirmed.
Symbol: Selects the asset displayed in the Relative Performance Oscillator. The selected symbol should be one of the active screener symbols. If another symbol is selected, Symbol 1 is used automatically.
Performance Length: Determines the lookback period used to calculate the selected symbol's performance relative to the Benchmark in the oscillator. Unlike the Ranking Dashboard, this setting is calculated using chart timeframe bars.
Smoothing: Defines the smoothing period applied to the Relative Performance line. Higher values create a smoother oscillator with less short term fluctuation, while lower values make the line more responsive.
Signal Length: Determines the EMA period used for the oscillator Signal Line. The relationship between the Relative Performance line and its Signal Line can be used to evaluate short term acceleration or deceleration in relative performance.
Show Signal: Enables or disables the oscillator Signal Line and the Relative Acceleration ribbon.
Show Last Value: Enables or disables the label showing the selected Symbol and Benchmark pair together with the latest Relative Performance value.
Send Alerts: Enables or disables the Relative Strength event engine. When enabled, alerts can be generated for Leader Group entries, Rotation State changes, Leadership Loss, and Leadership Confirmation events.
Leader Rank: Defines the Top N ranking group used for Leader Entry and Leadership Loss alerts. For example, when this value is set to 3, a symbol entering the Top 3 can trigger a Leader Entry event, while leaving the Top 3 can trigger a Leadership Loss event.
Show Ranking Table: Shows or hides the Relative Strength Ranking Dashboard on the chart.
Ranking Table Size: Adjusts the visual size of the Ranking Dashboard. Available options include Tiny, Small, Normal, and Large.
Ranking Table Position: Determines where the Ranking Dashboard appears on the chart. Users can select from nine positions using Top, Middle, or Bottom combined with Left, Center, or Right.
Show Rotation Matrix: Shows or hides the Rotation Matrix on the chart.
Matrix Table Size: Adjusts the visual size of the Rotation Matrix. Available options include Tiny, Small, Normal, and Large.
Matrix Table Position: Determines where the Rotation Matrix appears on the chart. Users can select from nine available positions. A different position from the Ranking Dashboard should be selected when both tables are enabled to prevent overlap.
🔵Conclusion
Markets rarely move in a perfectly uniform way. While one group of assets is gaining leadership, another may be losing momentum, and somewhere else a previously weak symbol may already be starting to recover. Looking at price alone can make these shifts difficult to recognize, especially when several assets are moving in the same direction at the same time.
The Relative Strength Screener [TradingFinder] is built to make that rotation easier to see. By comparing a selected group of symbols against a common Benchmark, the indicator helps reveal which assets are truly outperforming, which ones are improving, and which current leaders are beginning to fade. The Ranking Dashboard adds the numerical evidence behind that comparison, while the Rotation Matrix turns the same market into a clearer picture of Leading, Improving, Weakening, and Lagging assets.
The goal is not to replace chart analysis or generate an automatic Buy or Sell signal. The value of the screener comes earlier in the decision process, when the trader is still asking which symbols deserve attention in the first place. Once the stronger, improving, or weakening assets have been identified, the next step is to return to the chart and evaluate Price Structure, Trend, Liquidity, Entry Conditions, and Risk Management.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
💎Paid Space (VIP): tradingview.com/spaces/TradingFinder/
✅Telegram support team: t.me/TFLABS
🧠Free Forex, Crypto & Stock Trading tutorial, same as ICT, Smart Money & Price Action:
tradingfinder.com/education/forex/
✅Telegram support team: t.me/TFLABS
🧠Free Forex, Crypto & Stock Trading tutorial, same as ICT, Smart Money & Price Action:
tradingfinder.com/education/forex/
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
💎Paid Space (VIP): tradingview.com/spaces/TradingFinder/
✅Telegram support team: t.me/TFLABS
🧠Free Forex, Crypto & Stock Trading tutorial, same as ICT, Smart Money & Price Action:
tradingfinder.com/education/forex/
✅Telegram support team: t.me/TFLABS
🧠Free Forex, Crypto & Stock Trading tutorial, same as ICT, Smart Money & Price Action:
tradingfinder.com/education/forex/
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.