The ССomment class was designed to extend the capabilities of the standard Comment
function. Its purpose is to display a multi-line comment on a panel.
Methods of this class allow you to specify text color, font, style and
line spacing. You can move the panel within the screen space with the
For the purpose of backwards compatibility, we preserved the standard
way of outputting the comment in the upper left corner of the chart.
The class has the ability to automatically adjust the colors in case the
color scheme is changed regularly. In this mode, the background color
is analyzed and contrasting text color is set automatically.
The panel is useful for displaying main settings of an Expert
Advisor. An example of such EA is included. Its code is compatible with
Author: Andrey Voytenko
Thanks for the awesome tool! I modded it a bit to suit my needs so I'm going to post it here...
I added a Zone method that return a bool if the x,y on chart click was on the comment window so nothing behind it can get activated. I also overrode the OnChartEvent method to move the comment when resizing the window.