AlfyParticipant
Average
Hi guys, i was hoping someone could help. Im looking to recreate the IDB relative strength line which compares the momentum of a stock over 3 months, 6 months and 12 months relative to an index like the S&P 500. Pro real time has something similar called Mansfield relative strength but its not the same. Ive added the basic code of the momentum of the stock but im having trouble with the rest comparing it to the S&P 500. Can anyone help please?
Trendstrength=(2*close/close[63])+(close/close[126])+(close/close[189])+(close/close[252])
Return(trendstrength)
It is not possible for an indicator to look at two instruments.