Different color bar depends on indicator

 
My first post.

I´am trying to write some script but my knowlegde of the Metaquotes Language are very limited because I have been using for only a week.

So, my question is: Is there any way to change the bar color depending on the two indicators values? It´s possible?

Using the Awesome Oscillator and the Accelerator/Deacelerator (called AO and AC) in a bar chart:
If the AO and the AC bars are higher than their immediately preceding bars, the corresponding price bar will be colored green.
If the AO and the AC bars are lower than their immediately preceding bars, the corresponding price bar will be colored red.
If the AO and the AC bars are different, the corresponding price bar will be colored grey.

Thanks
Reason: