Request for Opening Range Breakout

Request someone to help me in coding of the following buying and selling strategy on intraday basis

Bar interval = 5 minutes

Strategy to buy

when price closes above high price of FIRST 45 minutes of the day

Strategy to Sell

when price closes below low price of FIRST 45 minutes of the day

Thanks in advance

DSR

As per the above condition, use one day 1 minute time frame

Buy Script:

CLOSE > HHV(45)

Sell Script:

CLOSE < LLV(45)

Thank you my friend for your time in responding to my query