separating colors into two separate buffers

To add comments, please log in or register
James Roberts
1257
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 

Files:
colorhma.mq5 7 kb
Alain Verleyen
36058
Alain Verleyen  
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.

To add comments, please log in or register