highandlow function

I think this one works without any problem