Experts: News Detector for both Mt4 and Mt5

 

News Detector for both Mt4 and Mt5:

One code that works for both Mt4 and Mt5 combined. Salient features of the code: -Filter News by High, Low or Medium Volatility -Filter By currencies -Filter by News Keyword -Auto GMT offset check -Dashboard to show upcoming News (Can be enabled or disabled) -Lines on chart for all Upcoming events -Code can be easily modified to place trade at certain time before or after an event or to just stop trading during events.

News Detector for both Mt4 and Mt5

Author: Muhammad Haris

 
For it to be good, you can't focus on pairs and on assets, ideally, it gets the news just by the level of criticality or we can choose countries, then yes it would be excellent, the less variables you have put in the EA the better.
 

Hello,

How we can add a more feature to this code to send notification to mobile before any news event ?

 

why there's no object, alerts or error messege on my mt5 ?... 

 
Hello, dear friend, thank you for your code, it was great
How can I use this code in Metatrader 5 in backtest?
In fact, I want to check the news in the market history on the strategy test, it gives this warning
2024.02.16 11:36:50.221 2022.01.03 01:07:21 ERROR_TXT IN WebRequest
 
the GMT offset remains in UTC for me, even though my broker us GMT+3. even going into the code and forcing the variable TIME_CORRECTION to a different value makes no difference, it still draws in UTC. I'm using IC markets, which is UTC+3 with US DST shift schedule.