Thanks acidburn!

This was driving me crazy!

Especially because MaxVal seemed to cope just fine without LookBack.

Another strange issue is why a LookBack of 80 doesn't work.

BTW does this code successfully use daily bars with a daily close of 5pm ET?