Get Indicator's Color Property
-
Fellow dreemaers,
I want to use MACD Tape for part of my EA on MT5. The indicator has an absolute color property, which is either green of red. However, after viewing its source code, it does not return its color and I an not familiar enough with buffers to export it myself.
Is it somehow possible to take the color of the MACD Tape? Below is a screenshot of the interface:http://www.forexmetatraderindicators.com/wp-content/uploads/2010/03/tape-macd-mt5-indicator.jpg
-
Do you care about the color or about the signal? Obviously there are 2 MA lines and the color depends on their position. And their position can be easily compared (and this will indirectly give you the color, if you really need it), you can check if the fastest MA is lower or above the slowest one. That should be at least 2 buffers for this indicator, one for each line.
Otherwise color or other attributes can be get from chart objects like arrows, lines and others. But I'm not sure that exactly these colorful areas are such types of objects, I think that they are something that the EA has no direct access to.