I have a few comments that I've added to chart and they appear at the top left corner. They overwrite 3 lines that are already there and I need to
move my comments down but I can't find out how to do it.
- Download MetaTrader 5 build 1730 with new trader features
- How to become a signal provider and receive monthly fees
- Technical analysis tools in MetaTrader 5
Kenneth Bachelor:
I have a few comments that I've added to chart and they appear at the top left corner. They overwrite 3 lines that are already there and I need to move my comments down but I can't find out how to do it.
I have a few comments that I've added to chart and they appear at the top left corner. They overwrite 3 lines that are already there and I need to move my comments down but I can't find out how to do it.
Add multiple "\n" at the start of your comment
Mladen Rakic:
Thank you for the quick response Mladen, but I've tried that and it overwrites the 3 lines with blanks.
Add multiple "\n" at the start of your comment
Kenneth Bachelor:
Thank you for the quick response Mladen, but I've tried that and it overwrites the 3 lines with blanks.
Thank you for the quick response Mladen, but I've tried that and it overwrites the 3 lines with blanks.
If you already have comments on chart (not objects, comments) you can do the following :
- get the content of the comment (using ChartGetString(0,CHART_COMMENT)) into a string and patch it with the rest of the comment you want to add and output it as a comment again
- the issue is that you can end up with adding your part multiple times - you need to have some sort of a control
- use objects instead of using comments (labels or text type objects are usually used for that or, if you want to make it perfect use canvas)
- needless to say that you shall have to do much more coding for this option
Mladen Rakic:
Thank you again Mladen.
If you already have comments on chart (not objects, comments) you can do the following :
- get the content of the comment (using ChartGetString(0,CHART_COMMENT)) into a string and patch it with the rest of the comment you want to add and output it as a comment again
- the issue is that you can end up with adding your part multiple times - you need to have some sort of a control
- use objects instead of using comments (labels or text type objects are usually used for that or, if you want to make it perfect use canvas)
- needless to say that you shall have to do much more coding for this option
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