Attention Programmers: A Quick Challenge For You

This actually isn’t EA related; it’s just a simple indicator I’d like to have made if anyone has the spare time. I’d simply like a indicator that can take the D1 candle from a selectable number of bars back and put out this information for each weekday separately:
Average Volume
Average Hi-Low Range
Average Open-Close Range
The average open-close range divided by the average hi-low range to give a percentage

I’m terrible with programming but I think the information alone should be easy to formulate, but the tricky part might be separating it for each weekday individually.

Any help would be greatly appreciated!