Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Indicators

News Event Marker - indicator for MetaTrader 5

Pavel Polikarpov
Pavel Polikarpov
  • Директор at  Мотосервисе
  • Russia
  • 418
Энтузиаст который познает технологии!
Views:
23
Published:
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
News Event Marker

News Event Marker is a MetaTrader 5 chart indicator. It reads the economic calendar that is built into the terminal and marks selected events on the chart with a vertical line, an optional shaded time window and a short label. A corner panel lists upcoming and recent events, with actual and forecast figures when the calendar has them. The indicator does not place, modify or close orders.

What it shows

A vertical line at the scheduled time of each event that passes the filters, in the colour of its importance (high, medium or low).
An optional shaded window around the event, whose half-width is set in minutes (default 15).
A rotated short label on high-impact events (currency plus a shortened name). Medium-impact labels can appear when the list is short.
A corner panel with the next events and the most recent events, a countdown or “ago” time, and actual / forecast values for past releases.
Optional alerts a chosen number of minutes before a high- or medium-impact event.

If you attach the indicator on a Saturday or Sunday, the panel still lists the previous week’s releases and the events scheduled for the coming days. The chart marks those times on historical bars.

Filters

By default the indicator keeps high- and medium-impact events and hides low-impact ones.

The currency filter is automatic when the input is left empty: the name of the chart symbol is scanned for three-letter currency codes (for example XAUUSD contributes USD, EURUSD contributes EUR and USD). You can type a comma-separated list instead, such as USD,EUR,GBP.

The horizon is set in calendar days: how far back to draw, and how far ahead to list and draw (default 7 and 7). A cap limits how many events are drawn on the chart, so a busy week does not cover the candles.

Inputs

Filters
Currencies (empty = auto from the symbol).
Show or hide high, medium and low importance, and events with no importance set.

Horizon
Past days, upcoming days, maximum events on the chart, number of upcoming and recent rows in the panel.

Display
Lines, labels, shaded windows and their half-width, panel corner, offsets, font size and colours.

Alerts
Minutes of warning before an event (0 = off), terminal alert window, push notification.

How the times are read

Event times come from the MetaTrader 5 economic calendar (CalendarValueHistory and the related functions). They are drawn in broker server time, which is also the time axis of the chart. No website is called and no DLL is used. If the terminal has not yet downloaded the calendar, the panel says so; open the Economic Calendar once in the terminal so that MetaTrader can fill it.

Actual, forecast and previous figures are taken from the calendar when they are present. A missing figure is shown as a dash.

Requirements

Platform: MetaTrader 5, with the built-in economic calendar available in the terminal.
Works on any symbol. The currency filter decides which events are kept.
No DLL calls, no WebRequest and no internet connection from the indicator itself.
Objects are removed when the indicator is removed from the chart.

About the author

Author of Golden Sniper XAU: https://www.mql5.com/en/market/product/207995
Author of the free indicator Swing Structure ATR: https://www.mql5.com/en/market/product/208384
Multi-Timeframe Trend Dashboard Multi-Timeframe Trend Dashboard

A compact dashboard that classifies EMA trends across multiple timeframes and displays slope, ATR distance, duration and an alignment summary.

Support/Resistance and Fair Value Gap Zones Support/Resistance and Fair Value Gap Zones

Draws support and resistance levels from confirmed swing highs and lows, and the fair value gaps (3-candle gaps) that price has not filled yet. Rule-based, merges nearby levels by ATR, removes a gap as soon as price trades back through it.

Accelerator Oscillator (AC) Accelerator Oscillator (AC)

The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

MACD Signals MACD Signals

Indicator edition for new platform.