Heikin Ashi Strategy Codeing Help

Buy - Heikin Ashi Current High > Previous High ( i dont want Close i want High coding)

Sell - Hekin Ashi Current Low < Previous Low (i dont want Close i want High coding)

Exit Buy - Hekin Ashi Current High < Previous High

Exit Short - Hekin Ashi Current Low > Previous Low

you can check heikin ashi strategy from below link

Hi, The code link you keep sending is not exactly what i want.
Please read what i mentioned above. I need your help.
Thank YOu