OPEN-SOURCE SCRIPT
Updated Relative Performance Table

This indicator is based on the Performance section in the TradingView's sidebar and uses new Pine tables functionality, originally coded by @Beeholder. It compares the current price of the symbol to its past price and calculates the rate of return to make it easier to track the performance of the symbol. Note that the Performance sidebar is not updated in real-time, while this indicator is, so on real-time charts the values between the two can differ (the indicator's values are more recent). Made a number of enhancement from Bee's script including relative performance of a selected ticker, dynamic table columns, and other options.
The formula of the calculation is (Current value - Past value) * 100 / Past value, where Past value is:
--Future development will include the ability to transpose the table columns/rows
The formula of the calculation is (Current value - Past value) * 100 / Past value, where Past value is:
- 1W
- 1M
- 3M
- 6M
- 9M
- 52W (1 Year)
- WTD (Week to Date)
- MTD (Month to Date)
- YTD (Year to Date
--Future development will include the ability to transpose the table columns/rows
Release Notes
--Minor fix to tooltipRelease Notes
Added 52 week high calculation to quickly screen whether a ticker is within 25% of the 52 week HighsOpen-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.