Please help to write code for this logic

Please help to write code for this below logic :-

LTP is higher than yesterday’s high .

I am using 5 min intraday chart .

You can not do it with intraday chart