Highest high for a range

S

summerguy

Hi I am trying to calculate the highest high for a range on a rolling basis
eg. the highest high for the past 50 days.

For example, the 50-day resistance level is the highest high in the past 50
days.
 
Top