MQL4 object positioning problem with pixel coordinates on the chart window (in mt4)
Matteo Ceccarelli: , I don't know what to do.
ObjectSetInteger(ChartID(),"Label_Name",OBJPROP_XDISTANCE,100); //-- X coordinate ObjectSetInteger(ChartID(),"Label_Name",OBJPROP_YDISTANCE,65); //-- Y coordinate
You hard coded the location. Of course, all labels created by that function will overlap.
Hi all guys, I have a problem in mql4.
I create objects (labels and buttons) to display on a graph by specifying anchoring and coordinates in pixels.
Unfortunately, however, in some MT4s the position of the object is not correct, it overlaps with other objects, while in other MT4s you see everything regularly. this doesn't seem to be affected by the coordinate scale of the graphs or the screen resolution, I don't know what to do. I leave a portion of code to show how I create and impose the positioning coordinates.
Thanks in advance to anyone who will answer. 🙏🙏🙏