Messing up histogram indicator bars.

 

hi...


A question regarding histograms......first what I did was to use a standard indicator that pretty much only counts bars,,like example the momentum indicator, and I just changed the calculation at the end to display what I needed....all I was doing was showing a histogram of the Close - Open...nothing more..

But what I was finding is...that sometimes it work fine and then there would be a bar missing or going in the wrong direction when printed...so I have no clue as to why its doing this...I was thinking that as it worked most of the time it was working....until I compared it to a price chart and found out differently.. ..oh it does work fine on the daily..probably becuase it only changed once...but on a 15min chart there could be a few messed up bars...