Coding Larry Williams Idea into an Indicator

Please code this idea into MT4 indicator as i do not understand MQL4 despite my trying for it.
The idea for weekly and daily bars is (May be applicable to all TFs)

Sellers=High-Close
Buyers=High-Open

  1. Sellers/Buyers may be indicated as percentage of whole bar length that is High-low of the bar.
  2. Same data may be shown against last 20 bars against each bar in the mathmatical form.
  3. the indicator should also average out buyers and sellers of last 20 bars over the last lowest low and higest high of last 20 bars as a percentage of of 20 bar total range.
  4. The number of bars should remain variable so that can be adjusted by individual trader as per his own needs.
  5. The indicator may please be developed in indicator form in the lower pan or may be developed in mathmatically form with price.
  6. Any developmental idea will be appreciated
    Thanks and help will be highly appreciated.
    This is not mine idea and is basically been taken from Larry Williams book, Long Term Secrets to Short Term Trading.

This is great idea and will help every one trading any market and will help in many price action trading ideas.

Please help with idea and make it open for everyone to use with professional usage ideas of Larry Williams.