A question about the RIC

Hi, If I want to know how much a stock is outperforming the SPX index by percentage points, is this a correct script to achieve that [RIC(DATESEL=Year to date, ZEROBASED=True, INDEX=SPX)/100]? Is it dividing the year to date return of the stock by the year to date return of the index?
Also, is there a way to use this function to calculate a certain period range in history instead of going from the start date all the way to the present date?

Thanks in advance

1 Like

Correct - note that the /100 is only required if displaying as a Percentage in a watchlist.

From the text pop-up in the script editor you can change the Normalization comparison period, but it can’t be a range - only one of these options:

image

Thank you very much Darren!