Using comment function to display info over chart
many expert advisors and indicators add text on chart.https://indian-forex.com/images/smilies/good.gif
Actually it is very simple MQL function Comment()
It takes any number of arguments which will be concatenated together to form the string you want to print.
This is an example:
Comment("Open: ", Open[1],"\nHigh: ", High[1],"\nLow: ", Low[1],"\nClose: ", Close[1]);
this will display the OHLC values on the chart window on the top left corner.
if you need to write multiple lines simply use the value "\n" for going to a new line.
To start open Meta Editor and create a new indicator then add the previous line of code inside the start function so it will look like this
After attaching the indicator to the chart it will show the values like this (See the top left corner of the window).