TradingView
cwood119
2020年9月29日晚上9點18分

Price Relative / Relative Strength 

S&P 500 Information TechnologySP

描述

The Price Relative indicator compares the performance of one security to another. This indicator can be used to compare the performance of a stock against a benchmark index, such as the S&P 500, or its sector/industry group. This makes it possible to determine if a stock is leading or lagging its peers.

The Price Relative is used to gauge relative strength, which is important when it comes to stock selection. Many portfolio managers compare their performance to a benchmark, such as the S&P 500. Their goal is to outperform that benchmark. In order to achieve this goal, managers often look for stocks that are showing relative strength. Enter the Price Relative. The Price Relative rises when a stock shows relative strength and is outperforming its benchmark. Conversely, the Price Relative falls when a stock shows relative weakness and is underperforming its benchmark.

Source: https://school.stockcharts.com/doku.php?id=technical_indicators%3Aprice_relative

This script allows the user to
  • Add a new indicator pane for Price Relative (PR)
  • Edit the benchmark symbol (Comparative Symbol)
  • Edit or hide the moving average
  • Quickly determine if the symbol is outperforming or underperforming its benchmark
  • Quickly determine if the symbols is trending higher or lower based on a simple moving average
評論
leonardoabad
Thanks, it is great. Do you know why is not showing the value if I change the input symbol?
cwood119
@leonardoabad, Hey thanks. What value are you referring to?
leonardoabad
@cwood119, The PR value. It´s showing only 0,0 when I tested with the IBOV input symbol
cwood119
@leonardoabad, It only shows 2 decimals on the plot, so any base symbol priced under 1,000 will plot as 0.00 when comparing to IBOV. You can test manually by dividing the most recent close price of your base symbol by the most recent IBOV close. Also, try this: right-click in the price-axis area of the PR plot (the area on the right with all the 0.00s) and select Indexed to 100.
leonardoabad
@cwood119, Thank you, I will try it
更多