Join our fan page
- Views:
- 4079
- Rating:
- Published:
- 2025.01.21 15:30
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
The EA uses the MQL5 Calendar functions to identify upcoming news events relevant to the symbol being traded. If a high-impact event is detected for the base or quote currency, the EA implements a breakout trading strategy by placing pending orders (Buy Stop and Sell Stop) above and below the current price. This approach aims to capture price movements driven by volatility from news releases.
The EA provides several customizable inputs to adjust its behavior:
-
Type: The user can select whether the EA should operate in trading mode, or alerts should be sent instead whenever a high impact news event is in the near future.
-
Magic: Specifies the Magic number of the orders, if trading mode is selected.
-
TPPoints: Take Profit points, only relevant if trading mode is selected.
-
SLPoints: Stop Loss points, only relevant if trading mode is selected.
-
Volume: The Volume used for the pending orders, only relevant if trading mode is selected.
If you'd like to understand the code or the news in general and want to better understand how the calendar is structured in mql5, make sure to watch the youtube video I've made about it:

An advancement of the MetaQuotes zigzag with an oscillator mode, current bar leg tracking, fib levels, and dynamic scaling

Unfortunately, I discovered that some brokers are a bit sloppy with the server time change due to the daylight saving time (DST), which I did not expect and which surprised me a lot. Here is a script with which anyone can check their broker.

Candle Range MetaTrader indicator — is a very simple and lightweight indicator that displays the candle's range in pips on mouseover. In addition, to the High/Low range, it can optionally display the body size (Open/Close) for candles. Multiple display parameters are available to control how the indicator looks. This indicator is available for both MT4 and MT5 versions of the trading platform.

Negative Volume Index (NVI) is a free technical indicator for advanced chart analysis in MT4, MT5 platforms. It is based on tick volume (can be substituted with real volume in MT5) and has two useful features added: Support for multi-timeframe (MTF) operation. Can be switched to show Positive Volume Index.