Trying to check if it really gives the HH of the number of bars desired:

function run()

{
BarPeriod = 1440;
vars H = series(priceHigh());
var h32to36 = MaxVal(H+32,5);
printf("Result = %.f", h32to36);

}

It gives Result = 1. How to do so also it gives decimals and check what it really does? I am trying to see how it works.