I managed to finish this just to find out there is a similar indior called market profile that's been developed w/ an whole system of trading. Start looking for this, you'll discover it.
The difficulty w/ arrays is that there is a succession of oddities from the way MT4 handles arrays. I'd call them bugs, frankly, but anything. I had another post on this subject discovered one work-around, but there are circumstances. Long story short, arrays don't always work. And the more complied they are, the less likely they are supposed to get the job done. The largest difficulty I had was w arrays, MT4 does not manage them.