High of 7 bar high volume candle

I want the high price in scanner of that bar which generated highest volume in last 7 days (not week) on daily chart.

Ex. if 25th Aug the bar made highest volume in last 7 sessions on daily chart then I want the high price of that daily bar(25th Aug) on scanner.

Can anyone share the script for the above query?

Hi,

Are you after the value within the last 7 days of the chart only? Or is this a rolling criteria where you want historical values as well as the current 7 bar period?