Counting Histogram Bars

 

I have a MA that the slope is plotted as a Histogram bar. I am trying to Count the number of Histogram bars and plot them as the red line (see attachment).

This seems as if it would be really easy to code, and what I tried. ended up plotting the line backwards. I have looked everywhere for an example to do this, but couldn't find any.

If someone would give a hint/try, or any coding help would be greatly appreciated.

 
attachment
 
RaptorUK:
Probably need to see the attachment . . .

I chose the file, but it did not attach... hmm
 
 
Can you show what you actually ended up with . .
 

You might want to look at ArraySetAsSeries()

Reason: