INVITE-ONLY SCRIPT
已更新 Sortable Relative Performance | viResearch

Sortable Relative Performance | viResearch
Conceptual Foundation and Purpose
The Sortable Relative Performance indicator from viResearch is designed as a multi-asset ranking and comparison system that allows traders to evaluate the relative strength of up to 14 different assets over a user-defined lookback period. Unlike single-symbol indicators, this tool provides a comparative view of performance, making it ideal for traders seeking to understand how assets perform relative to each other within a watchlist, sector, or market segment. The indicator calculates the percentage return of each asset from a chosen starting point and presents the results both graphically and in a sorted, tabular format, helping traders identify outperformers and underperformers at a glance.
Technical Composition and Methodology
At its core, the script calculates the relative performance of each selected asset by comparing its current closing price with the closing price from the lookback period. This performance metric is expressed as a percentage and computed using Pine Script’s request.security() function, allowing for seamless cross-asset analysis within a single pane. Each asset is visually represented as a vertical column, color-coded according to a predefined identity map that reflects common asset branding. The best-performing asset is dynamically labeled on the chart, displaying its name and current return, while a real-time performance table updates and ranks all active assets in descending order based on their return values. The table and columns automatically adjust based on the user’s selection, creating an interactive and responsive comparative dashboard.
Features and Configuration
The indicator includes a customizable date filter, allowing traders to activate the display from a specific start date. This is particularly useful for performance reviews tied to events, such as earnings reports, Fed meetings, or macroeconomic releases. The lookback period is adjustable and determines how far back in time performance is measured, making the tool adaptable to both short-term and long-term strategies. Traders can toggle individual assets on or off, enabling focused analysis on specific coins, stocks, or indices. Up to 14 assets can be analyzed simultaneously, with each one clearly distinguished by unique, branded colors in both the plot and the ranking table. The script intelligently highlights the top performer with a floating label, drawing immediate attention to the strongest asset within the group.
Strategic Use and Application
This indicator is especially valuable for traders employing relative strength or momentum-based strategies. By visualizing asset performance in real time, it becomes easier to rotate capital into strong assets and away from laggards. Whether tracking cryptocurrencies, sectors, or forex pairs, the ability to assess comparative returns without switching charts provides an operational edge. The tool supports portfolio analysis, sector rotation, and cross-market studies, making it suitable for discretionary traders, systematic investors, and even macro analysts looking for a visual breakdown of market behavior.
Conclusion and Practical Value
The Sortable Relative Performance indicator by viResearch delivers a clean and effective way to measure and rank asset performance over time. By combining visual clarity with real-time calculation and dynamic sorting, it offers a powerful lens through which traders can evaluate market leadership and laggard behavior. Its flexibility and modular design ensure it can be integrated into a wide range of strategies and trading styles. Whether you're managing a crypto portfolio or monitoring traditional markets, this tool provides essential insights into where momentum resides and how capital is flowing across assets.
Note: Backtests are based on past results and are not indicative of future performance.
Conceptual Foundation and Purpose
The Sortable Relative Performance indicator from viResearch is designed as a multi-asset ranking and comparison system that allows traders to evaluate the relative strength of up to 14 different assets over a user-defined lookback period. Unlike single-symbol indicators, this tool provides a comparative view of performance, making it ideal for traders seeking to understand how assets perform relative to each other within a watchlist, sector, or market segment. The indicator calculates the percentage return of each asset from a chosen starting point and presents the results both graphically and in a sorted, tabular format, helping traders identify outperformers and underperformers at a glance.
Technical Composition and Methodology
At its core, the script calculates the relative performance of each selected asset by comparing its current closing price with the closing price from the lookback period. This performance metric is expressed as a percentage and computed using Pine Script’s request.security() function, allowing for seamless cross-asset analysis within a single pane. Each asset is visually represented as a vertical column, color-coded according to a predefined identity map that reflects common asset branding. The best-performing asset is dynamically labeled on the chart, displaying its name and current return, while a real-time performance table updates and ranks all active assets in descending order based on their return values. The table and columns automatically adjust based on the user’s selection, creating an interactive and responsive comparative dashboard.
Features and Configuration
The indicator includes a customizable date filter, allowing traders to activate the display from a specific start date. This is particularly useful for performance reviews tied to events, such as earnings reports, Fed meetings, or macroeconomic releases. The lookback period is adjustable and determines how far back in time performance is measured, making the tool adaptable to both short-term and long-term strategies. Traders can toggle individual assets on or off, enabling focused analysis on specific coins, stocks, or indices. Up to 14 assets can be analyzed simultaneously, with each one clearly distinguished by unique, branded colors in both the plot and the ranking table. The script intelligently highlights the top performer with a floating label, drawing immediate attention to the strongest asset within the group.
Strategic Use and Application
This indicator is especially valuable for traders employing relative strength or momentum-based strategies. By visualizing asset performance in real time, it becomes easier to rotate capital into strong assets and away from laggards. Whether tracking cryptocurrencies, sectors, or forex pairs, the ability to assess comparative returns without switching charts provides an operational edge. The tool supports portfolio analysis, sector rotation, and cross-market studies, making it suitable for discretionary traders, systematic investors, and even macro analysts looking for a visual breakdown of market behavior.
Conclusion and Practical Value
The Sortable Relative Performance indicator by viResearch delivers a clean and effective way to measure and rank asset performance over time. By combining visual clarity with real-time calculation and dynamic sorting, it offers a powerful lens through which traders can evaluate market leadership and laggard behavior. Its flexibility and modular design ensure it can be integrated into a wide range of strategies and trading styles. Whether you're managing a crypto portfolio or monitoring traditional markets, this tool provides essential insights into where momentum resides and how capital is flowing across assets.
Note: Backtests are based on past results and are not indicative of future performance.
發行說明
update| dynamic asset display 僅限邀請腳本
只有經作者批准的使用者才能訪問此腳本。您需要申請並獲得使用權限。該權限通常在付款後授予。如欲了解更多詳情,請依照以下作者的說明操作,或直接聯絡viResearch。
除非您完全信任其作者並了解腳本的工作原理,否則TradingView不建議您付費或使用腳本。您也可以在我們的社群腳本中找到免費的開源替代方案。
作者的說明
DM via https://x.com/viResearch_
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
僅限邀請腳本
只有經作者批准的使用者才能訪問此腳本。您需要申請並獲得使用權限。該權限通常在付款後授予。如欲了解更多詳情,請依照以下作者的說明操作,或直接聯絡viResearch。
除非您完全信任其作者並了解腳本的工作原理,否則TradingView不建議您付費或使用腳本。您也可以在我們的社群腳本中找到免費的開源替代方案。
作者的說明
DM via https://x.com/viResearch_
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。