How to make this scripts to display the forex new on left top corner of my chart

 

This Script is capable of downloading forex news from the website(  https://nfs.faireconomy.media/ff_cale...) and uses two includes files that helps it with downloading the news . As you can see it uses PrintFormat to write the news. So what I want it to do is to display news on my chart top left corner and also to  display or write event vertically from down (x-axis ) with corresponding with their time and date. Furthermore I need it to uses different colour for different news impact for example High=Red, Medium=Green and Low=yellow.

Your help will be highly appreciated as I am Newbie into Coding and I'm willing to learn from the best. 

please find the attached documents. 


Kind regards 

Nelson

Files:
 
Nelson3056:

This Script is capable of downloading forex news from the website(  https://nfs.faireconomy.media/ff_cale...) and uses two includes files that helps it with downloading the news . As you can see it uses PrintFormat to write the news. So what I want it to do is to display news on my chart top left corner and also to  display or write event vertically from down (x-axis ) with corresponding with their time and date. Furthermore I need it to uses different colour for different news impact for example High=Red, Medium=Green and Low=yellow.

Your help will be highly appreciated as I am Newbie into Coding and I'm willing to learn from the best. 

please find the attached documents. 


Kind regards 

Nelson

Have a look at the "comment" statement help - there is a code example which should give you an idea how to do it.

Instead of PrintFormat you can use StringFormat to add the data to a string variable, and then put it onscreen with the "comment" command

https://docs.mql4.com/common/comment

Comment - Common Functions - MQL4 Reference
Comment - Common Functions - MQL4 Reference
  • docs.mql4.com
Comment - Common Functions - MQL4 Reference
 
R4tna C #:

Have a look at the "comment" statement help - there is a code example which should give you an idea how to do it.

Instead of PrintFormat you can use StringFormat to add the data to a string variable, and then put it onscreen with the "comment" command

https://docs.mql4.com/common/comment

Thanks for your respond I have try it but the problem is that it given me only one line of the News report instead of  all the daily news for that specific currency pairs on the chart
Reason: