Change 'candle' color according to a moving average

 

Are there any indicators that can change the color of the candles or bars in accordance of their placement of a high below a moving average, or a low above the moving average.

e.g.,

the stick's low is above a moving average line -> stick's color is green

stick's high is below a moving average -> stick is red

stick is between these two phases -> stick is gray

 

I've never seen this in Metatrader, but I saw an example using trade station. Would it be possible to find an indicator that does just this?


Thanks 

 
 
Heiken Ashi Smoothed not working for the purpose?
Reason: