I want code for LTP price is greater then todays high or LTP is lees than todays low for PI

I want following code for PI Scanner in any time frame ( i.e 1min ,2min…etc.)

BUY : When CMP is greater then todays high

SELL : When CMP is lees than todays low

HeLlO TrAdEr,

Day specific High and Low are not codeable in Tradescript.