Add News Filter MQL5

Martin  
Hi guys,  
  
I'm looking into the code of adding the economic calendar in an MQL5 EA. I would be interested in understanding how a code is built around, for example, not trading on the red days of the related currencies.   
  
I read through this, but I would like to see an sample code: https://www.mql5.com/en/forum/304240
 
I would like to learn how to use CalendarEventbyCurrency and implement it in the entry criteria of an EA.
   
Can anyone provide me with an example of how the bool CalendarEventbyCurrency function might be used as an entry criteria?
  
Thanks a lot,  
Martin
  
  
  

New MetaTrader 5 Platform build 2005: Economic Calendar, MQL5 applications as services
New MetaTrader 5 Platform build 2005: Economic Calendar, MQL5 applications as services
  • 2019.02.20
  • www.mql5.com
The MetaTrader 5 platform update will be released on February 21, 2019...