Above high or Low for the day? Need code

Hi All, what is the Pi code for filtering stocks when it crosses the high so far the day or low so-far for the day? example: ABC 9:15 opened at 100 rs, went upto 102, and it is coming down, low for the day is 99, and again stock crosses 102, when it happens i need an alert, what would be the script for this

Not Supported on Tradescript at the moment.