Help with MACD indicator and changing bar colors

 

I am sure this has been asked a 100 times but is there an indicator currently available that will change the actual bar colors on the graph based on the MACD? For example: If the MACD is above the zero line and above the signal line then bar on the graph would be green.  If the MACD was below both the zero and signal line the bar would be red. And if none of the criteria were met then the bar would be black. 

 

Any help would be appreciated. 

 
Robert:

I am sure this has been asked a 100 times but is there an indicator currently available that will change the actual bar colors on the graph based on the MACD? For example: If the MACD is above the zero line and above the signal line then bar on the graph would be green.  If the MACD was below both the zero and signal line the bar would be red. And if none of the criteria were met then the bar would be black. 

 

Any help would be appreciated. 

You may need to change the logic in this file.  It works the same way. 

https://www.mql5.com/en/code/8220 

CCI CustomCandles
CCI CustomCandles
  • votes: 8
  • 2008.07.22
  • John Smith
  • www.mql5.com
The CCI CustomCandles indicator.
Reason: