Multi Colored Bars on MQL4

 

Hello,

 I see some samples about multi colored bars indicator(heiken ashi etc.), but i want to do same thing with 3 colors.

For example blue bars for up trend, red bars for down trend and gray bars for neutral trend.

I tried do this but some reason MT4 not painting third color to the chart.

How can i do this?

Thanks,

AA 

 
Show us your attempt. Use SRC when posting codes.
 
deysmacro:
Show us your attempt. Use SRC when posting codes.

Thanks my friend because of your response to my post.

After send my post i deleted source of my indicator completely and try to rewrite.

Good news is now my  indicator working correctly, bad news is because deleted old source code, i didn't know why old indicator doesn't worked.

So i don't know what was my fault but for now working. Sorry about  my unnecessary post.

Reason: