I am using below script for formation period of momentum portfolio of t-12 to t-2. So i want to find the highest high between said time period. I am using offset function for the same as below.
But it is wrong as when i calculate the highest high 2 months back it will take 12 month look back. Is there a way to find a highest high in the said period.
Regards,
Deepak
HIGHESTHIGH(RANGE=Look Back Period, BARS=12, INCBAR=True, BACKTYPE=Months)[2]
I’m not 100% sure what it is you want to identify? Do you mean you want to find where the highest high from the last 12 months has occurred within 2 months of the current date?
If the above is what you are after this script would work…