Hi, I am testing relative strength indicators available in PRT.V12. I found two of them: Mansfields’ Relative Strength and Relative strength (Comparison).
Based on my testing, Mansfields one will give the average ratio (stock / index) of last n bars, while Comparison one will give ratio difference between current bar to last bar (diff = ratio(t) – ratio (t-1)).
I would like to check if it is possible to set Relative strength (Comparison) calculation to previous n bar instead of last bar ? (e.g If I want to compare the performance of 5 bars ago diff = ratio(t) – ratio (t-5))
Or if this can be achieved using PRT custom code?
Any help and advices are appreciated.
Thank you.