- Static variables
- Client terminal global variables
- Assignment and initialization, expressions and arrays
Hi. Is there anybody here who has ever written an expert adviser which being able to read news feeds, and then distinguish between bullish and bearish ones? (Ex. Reuters, New York Times, Bloomberg, etc)
For a primer on fetching news from external sources, see:
From Novice to Expert: Animated News Headline Using MQL5 (II)
Clemence Benjamin, 2025.06.20 10:38
Today, we take another step forward by integrating an external news API as the source of headlines for our News Headline EA. In this phase, we’ll explore various news sources—both established and emerging—and learn how to access their APIs effectively. We'll also cover methods for parsing the retrieved data into a format optimized for display within our Expert Advisor. Join the discussion as we explore the benefits of accessing news headlines and the economic calendar directly on the chart, all within a compact, non-intrusive interface.For a primer on fetching news from external sources, see:
😅 On the face of the matter, so true. In fact, I don't have a bias filter in my news events code because I filter out news events--trading is blocked for several minutes before and several minutes after.
But as a potential caveat, professional quants get paid big money to statistically quantify news events based on historic data. Granted, we're talking about a different level of trader here. A quant typically has field programmable gate array (FPGA) computer, or an FPGA/quantum hybrid computer very close to the exchange data center. Super massive amounts of news data, from Twitter (X) feeds to global economic numbers, are analyzed and frequently incorporated with real high frequency trading (HFT). Real HFT involves massive amounts of data and massive amounts of orders sent with fractions of a second--often manipulating inefficiencies of the order queue, itself. There is a heavy focus on discovering news data before anyone else does.
Of course, the lack of any centralized exchange in the retail forex/CFD markets poses a challenge. The extent to which a retail MT5 trader can be a quant is debatable, but the Article in Post #1 provides some hope.
Yeah I made a fancy EA for myself once and had news blocker , no external apps needed and what one calendar might determine high impact another might peg medium ,It could get messy .So simply just block the times manual wins every time . If someone has this all singing and dancing EA they think can just run with no manual input then they are on to a loser .Yes Quant firms institution trading and not retail wins the day but we don't get to see behind the curtain and are at the mercy of manipulation.
Truth be told, I coded a EURUSD EA that does just fine completely disregarding news events. It really just absorbed them and kept on trucking. I only added a news trading blocker to a new version of the EA for prop firm compliance purposes. The firm has instrument/asset-specific news events that can't be traded. So for EUR and USD combined, there are 24. Identifying was fairly straightforward because those news events are all in the MT5 Calendar. But holy "stringy" typing, Batman--just to identify each event by name. And as for the end result of adding the news blocker... No difference whatsoever. 😅
Of course, the Fiber (EURUSD) is rather stable/sluggish. I wouldn't recommend trying this with stocks, crypto, etc.
Also, my FX broker-dealer is connected to the interbank market. In contrast, a CFD broker-dealer won't be so stable.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use