Detect the color change of the moving average.
-
I would like to detect the color change to allow or disallow entries.
Follows shared project. https://fxdreema.com/shared/K6U6lplJc
The indicator is also attached.
I have a habit of using buffers to achieve the goal but this indicator seems to have a single buffer for all colors.
The condition would be:
If the line color is green, authorize purchase
If the line color is red, authorize sale

-
0_1583416750650_hull_variation.mq5 this is a indicator.
-
If it was an mq4 file the solution woudl be easy. However, in MT5 it cannot be used. There is one only buffer including both colours.
Is there ant MT5 programmer here showing how to distinguish to values for one same buffer?