I couldn't make it work, because my MinMax period was longer then the LookBack period.

Someone might find this information useful: LookBack period has to be longer then the MinMax period.

I am using the MinMax Zorro function for finding Min and Max values of the series.