News Window Guardian
- Утилиты
- Версия: 1.0
- Активации: 10
News Window Guardian keeps every Expert Advisor and every manual trade on your account out of trouble around high-impact economic news. Attach it to one chart: it reads the economic calendar built into MetaTrader 5, finds the releases you care about and, inside each protection window, closes or flattens positions, deletes pending orders, moves stops to break-even, blocks new trades and can pause other EAs. When the window ends, trading resumes on its own.
No WebRequest, no DLL, no GMT offset. The calendar comes from your MT5 terminal in trade-server time, so there is no website to whitelist, nothing that breaks behind a VPS firewall and no time-zone setting to get wrong. Works with any EA (no source code needed), on any symbol and timeframe, on hedging and netting accounts.
Which news
- Currencies – e.g. USD, EUR, GBP, JPY, CHF, CAD, AUD, NZD, or all.
- Impact – high only, medium and high, or all.
- Minutes before and after each release.
- Keyword rules with their own minutes – e.g. Nonfarm|NFP=30/30; FOMC|Federal Funds=45/45; CPI=20/20. Optionally a rule also catches lower-impact events.
- Ignore list – skip events whose name contains e.g. Speech|Auction.
- Your own events – add a date, time, currency and name for anything that is not in the calendar.
- Overlapping releases are merged into one window; holidays and events without an exact time are skipped.
What it protects (scope)
- Symbols of the news currency – a USD release protects EURUSD, USDJPY, XAUUSD, US30 and every other symbol quoted in USD; broker suffixes are handled automatically. Or the chart symbol only, or all symbols.
- Optional list of symbols, magic numbers to include or exclude, manual trades on or off.
Actions
- When a window starts: close all positions, only losing or only profitable ones (or keep them); delete pending orders; move the stop loss of profitable positions to break-even plus an offset.
- During the window – block new trades: any position or pending order opened inside the window, by any EA or by hand, is closed or deleted at once. This stops EAs you cannot edit without a DLL and without touching the AutoTrading button.
- Pause EA charts (optional): the EA is detached from its chart for the news (indicators and objects stay) and re-attached afterwards with exactly the same inputs. An exclude list keeps chosen EAs running. The list of paused charts survives a terminal restart, and removing the guard brings every paused EA back.
- Every action can be switched on or off directly on the panel; a master switch turns the guard off without removing it.
- Trade handling made for real accounts: filling modes, stop and freeze levels, trade permissions and all trade return codes; failed requests are retried without flooding the journal.
Weekend and Friday protection
- From a Friday time of your choice until Monday: close positions, delete pending orders, block new trades and optionally pause EA charts, to avoid weekend gaps.
Countdown panel
- State banner: CLEAR, NEWS SOON, NEWS WINDOW, WEEKEND or GUARD OFF, with a large countdown to the next window or to its end.
- Upcoming events with time, currency, impact bars, window and countdown; the running event is highlighted.
- Activity log of every action (closed, deleted, break-even, paused, resumed) and the number of positions and orders in scope.
- Dotted lines on the chart for every filtered event, with details in the tooltip.
- Dark and light themes, sharp at 100 % to 300 % screen scaling, movable and minimisable; settings are remembered per chart.
Alerts and integration
- Alert a chosen number of minutes before a window, when it starts and when it ends: popup, sound, push notification and e-mail. Optional alert for every action.
- Global variables for your own EAs: NWG_ACTIVE (1 inside a window or the weekend), NWG_WINDOW_END, NWG_NEXT_START and NWG_ACTIVE_USD etc. per currency.
Strategy Tester and free demo
The MT5 economic calendar is not available in the Strategy Tester. There the demo shows the full panel with a clearly labelled sample schedule, so you can see the countdown and states before you buy. On a live chart the real calendar is used automatically.
Getting started
- Allow Algo Trading in the terminal and attach News Window Guardian to any one chart (it protects the whole account according to its scope).
- Choose currencies, impact and minutes; keep or adjust the keyword rules.
- Pick the actions: the defaults delete pending orders and block new trades inside each window, and leave open positions alone.
News Window Guardian reduces exposure to news volatility, but it cannot prevent slippage, gaps or spread widening, and it acts only while the terminal is running and connected. It contains no trading strategy and does not open trades.

