Trade script algo writing

Can any one help to write code for below strategy :-

Current price higher than yesterday’s high AND
Volume greater than 30 day simple moving average AND
opening price is not gapped up opening .

I use 5 min intra day chart for 60 days