PI alerts script

Hi
Plz plz…
Can some one please help me by providing pi scanner alert script for below condition
My candle is 5 mins heikinashi
Need alert whenever price crosses previous high or previous low

Thanks in advance

In Pi scanner works based on candle stick OHLC and it is not possible to scan based on heiken ashi