everything works great when all vertices of the square are inside the chart window, but when one vertex placed outside the chart window, the coordinates becomes negative and the code can not draw a correct square
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 every one,
i am trying to write a code to draw some graphical objects on chart, because one of the objects is circle, i have fixed the chart scale to 1:1
now i am trying to draw a square base on a trend line:
and the main square function is:
everything works great when all vertices of the square are inside the chart window, but when one vertex placed outside the chart window, the coordinates becomes negative and the code can not draw a correct square
can anybody help me with this
thanks a lot