News Filter

 

Hi Guys,

How to code a news filter based on "Economic Calendar" object, include Event Time, Name, Currency, Importance,Actual,Forecast,Previous? 

 
s-LastPinkEventDate
  • votes: 3
  • 2010.10.19
  • Alexander P. (FinGeR) | English Russian Spanish Portuguese
  • www.mql5.com
Since Terminal build 344 added display of economic calendar news using special graphical objects (OBJ_EVENT). A script that outputs as a demonstration of the Economic Calendar with current economic data, the date of the last major (Pink) event.
 


Is there specific pbject properties for the "Economic Calendar", regarding Name, Currency, Importance,Actual,Forecast,Previous? How to get these values from the objects? easily?

 

I have already asked MetaQuotes if they are planning to implement in MQL5 functions to handle economic calendar news. Such functions should be able to deal with parameters of a particular event (date/time, currency, priority etc.), check x events nearest to certain date/time etc. The last response I got was that they "haven't planned such functions yet". 

 

Hopefully if more of us keeps asking for such funtionality, it might get implemented in MQL5. 

 

Functionality is already there you just have to code it. Read the Articles.... then create a mqh file or library with chart functions and filter them by color and time priority ...

Reason: