Please anyone help to color individual bar

 
Problem Description: I want to color the data bar individually, such as the volume bars in the volume histogram. For instance, when the current bar is greater than the previous one, color it Green; when it lower than the previous one, color it red. Please anyone advise me how to control each bar's color individually; I'll really appreciate!

Thanks in advance.

Randall
 

Look about the Heiken Ahsi Indicator in mql4 Code and then draw the bars with normal data and with if() you can set colors that you want.