Price-Volume breakout code

Hi,
Does anyone know how to write a scanner code for the following simple setup?

  1. The price of the stock is higher than previous day’s high.
  2. The current volume (day’s volume in the scrip upto that time; not minute volume or hour volume) is higher than the previous day’s total volume).

That means, during today’s trading,

  • when the price of the scrip is higher than yesterday’s high
  • AND
  • when today’s traded volume crossses yesterday’s traded volume, the scanner should give an alert.

This can be for the Nifty-50 stocks or whatever, depending on which stocks I enter in the screener.

I thought this would be simple enough, but Pi screener kept returning irrelevant results. Probably I was dumb enough not to key in the proper code.

Could somebody out there please help this mortal friend of yours?

Thanks and regards.

As scanner works only on intraday it is not possible to scan based on previous day;s OHLC values