How to create custom comment/label

Many people are asking me how to create a label or other object in the separate window so I will describe it now. First we will see what can be created using labels.


As we see on the example, label can be put at any place on the chart. Label can be put at any window that u want to. You can point the window on which label should be put. But let's start from the begining.



What is label?

Label is an object. It means that when u draw label (manual or by script), u can change it's properties. U can change the color, and placement, even the shape of it. The second very important property of the object is that he don't vanish when u close metatrader and open it again. Once drow it stays on the chart till u close the chart window or delete the object.

(...) to be continoued...