You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
How can I align a label to the top right?
I made this helper class, using the Standard Library. I do set the Anchor property (using https://www.mql5.com/en/docs/standardlibrary/chart_object_classes/obj_controls/cchartobjecttext/cchartobjecttextanchor), but it has no effect. The label is positioned at the top right, but it is still anchored top left.
Interestingly enough, when I set the label anchor manually in the terminal (see screenshot below), it gets aligned just fine (!).
Bonus: It does the same with Button Objects.