Get the current color
-
Hello,
I'm trying to make a simple script that changes the chart (background, foreground, ...) colors. This way I can save presets of colors, instead of saving a full Template in MT4 which ovewrite everything.
I found how I can do that, but each time I use the script again it resets the color selection boxes, this is normal at the moment.I want the color box to show the current color of elements. Then I need to define my constants parameters to the current color of each of them.
But I can't figure out to do that. I tried to put 'CHART_COLOR_BACKGROUND' (found in list of constant on mql5 website) in the value of the constant of the background color. No error during compilation but it doesnt show the current color, it shows a wrong color code instead.
Is there a way to achieve that?Also, next step will be to try to apply colors on multiple charts at the same time (all, same pair, same ea)... but I still don't know how I will do that, any idea?
thx in advance
Tom