I am writing a basket trading ea, and so I am replacing the whole chart window with a custom user interface. To do this, I have written an initialization function that removes all the stuff that the chart shows by default, so that I can start with a black screen.
This works well, but I have not found a way to remove the small down pointing arrow at the top-left of the chart. This tiny arrow is used to show and hide the "Trade Panel" interface which I would like to remove from the chart. Even more annoyingly, that little arrow appears on top of every object I create, so there doesn't seem to be a way just to cover it with a black rectangle object. I found that by using the "Colour Properties" menu in MT4 and setting the foreground colour to black makes it invisible, but it's still there. Strangely, if I use the "CHART_COLOR_FOREGROUND" property in my ea and set it to black, then that pesky arrow is still there showing in white.
Does anyone have any MQL4 code that can be used to remove that arrow completely, or is there some other way I can stop it from being overlayed on top of my interface?
Any help would be much appreciated.
Here is the code I am using to blank the chart:
Is there an API call to hide the trade panel without hiding the "down" arrow next to it?
When I hide and then restore the trade panel, using the two calls below, it always pops the panel open rather than just showing the arrow next to
the symbol name.