Hi
I was searching for the way of creating text object in chart and I find this page :
https://docs.mql4.com/constants/objectconstants/enum_anchorpoint
it seems to be exactly what I need .
in the same page there was an example , I copy it in meta editor an while compiling I got this error :
ANCHOR-BOTTOM -Cannot convert enum
I find also this page with same problem in some indicator and Marco vd Heijden solved the problem but unfortunately he didn't explain how he solved it.
Here are the codes:
please help me to understand what is the problem and how it will solve.
ANCHOR_BOTTOM is of ENUM_ARROW_ANCHOR type
Change the ANCHOR_BOTTOM to ANCHOR_LOWER or change ENUM_ANCHOR_POINT to ENUM_ARROW_ANCHOR (whichever is needed to be used)
ANCHOR_BOTTOM is of ENUM_ARROW_ANCHOR type
Change the ANCHOR_BOTTOM to ANCHOR_LOWER or change ENUM_ANCHOR_POINT to ENUM_ARROW_ANCHOR (whichever is needed to be used)
Thank you Mladen Rakic
I changed ANCHOR_BOTTOM to ANCHOR_LOWER and problem Solved.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi
I was searching for the way of creating text object in chart and I find this page :
https://docs.mql4.com/constants/objectconstants/enum_anchorpoint
it seems to be exactly what I need .
in the same page there was an example , I copy it in meta editor an while compiling I got this error :
ANCHOR-BOTTOM -Cannot convert enum
I find also this page with same problem in some indicator and Marco vd Heijden solved the problem but unfortunately he didn't explain how he solved it.
Here are the codes:
please help me to understand what is the problem and how it will solve.