Download MetaTrader 5

Help with MACD indicator and changing bar colors

To add comments, please log in or register
Unable to find the answer to your question? Use the search!
Robert
7
Robert 2016.08.25 19:10 

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. 

Kaleem Haider
73203
Kaleem Haider 2016.09.01 03:34  
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.
To add comments, please log in or register