I want to draw multiple letters above the chart. The problem is that the letters I am currently drawing are relative to window, not to chart. How can I change that?
This is my code :
for(int i=0; i < limit; i++) {
...
string name = "symbol" + i;
ObjectCreate(name, OBJ_LABEL, 0, 0, 0, 0, 0);
ObjectSetText(name, "H", 10, "Times New Roman", Green);
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hi,
I want to draw multiple letters above the chart. The problem is that the letters I am currently drawing are relative to window, not to chart. How can I change that?
This is my code :
for(int i=0; i < limit; i++) {
...
string name = "symbol" + i;
ObjectCreate(name, OBJ_LABEL, 0, 0, 0, 0, 0);
ObjectSetText(name, "H", 10, "Times New Roman", Green);
ObjectSet(name, OBJPROP_COLOR, Red);
ObjectSet(name, OBJPROP_XDISTANCE, 100 + i * 10);
...
}