I am placing multiple trend lines on a chart via an EA using OBJ_TREND and I want the lines to have a text lablel.
I can get a text label by using the OBJPROP_TEXT but there is no control over where this goes it simply goes to the beginning of the trend line position.
I want the text label to be at the end of the trend line position ie: to the right hand side but this appears to be impossible to achieve. I thought I could do it by having the start price/time being the right hand end but then the text is upside down..
So it seems to me that the only way to get a text label on the line is to create a second object OBJ_TEXT just to label the line which seems a bit crazy and causing unnecessary graphical object handling.
Am I wrong is there another way to label a trend line at the end instead of the beginning of the line?
thanks
edit: the same appears to be for horizontal lines, the text description appears to the left of the chart.
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.
I am placing multiple trend lines on a chart via an EA using OBJ_TREND and I want the lines to have a text lablel.
I can get a text label by using the OBJPROP_TEXT but there is no control over where this goes it simply goes to the beginning of the trend line position.
I want the text label to be at the end of the trend line position ie: to the right hand side but this appears to be impossible to achieve. I thought I could do it by having the start price/time being the right hand end but then the text is upside down..
So it seems to me that the only way to get a text label on the line is to create a second object OBJ_TEXT just to label the line which seems a bit crazy and causing unnecessary graphical object handling.
Am I wrong is there another way to label a trend line at the end instead of the beginning of the line?
thanks
edit: the same appears to be for horizontal lines, the text description appears to the left of the chart.