separating colors into two separate buffers

 

I am trying to use this Indicator in an EA, but it appears that it fills one buffer with each color depending on whether the indicator is ascending or descending. I need it to change between two buffers when it ascends or descends like every indicator I have ever seen written in MQL4. any help is greatly appreciated.

 

James 

Files:
colorhma.mq5  7 kb
 
James Roberts:

I am trying to use this Indicator in an EA, but it appears that it fills one buffer with each color depending on whether the indicator is ascending or descending. I need it to change between two buffers when it ascends or descends like every indicator I have ever seen written in MQL4. any help is greatly appreciated.

 

James 

Why do you need 2 buffers for values ?

By the way, you already have 2, one for values, one for colors.