Alpha FX News Filter
- 지표
- Andreas Smigadis
- 버전: 1.0
- 활성화: 5
Overview
Alpha News Shield is an MT4 indicator designed to help you plan and reduce trading activity around scheduled economic events.
It displays upcoming events on the chart (panel, countdown, and optional vertical lines) and can control terminal-wide protection using global variables.
When the protection window is active, the indicator can set a “trading allowed” flag that other Expert Advisors can read before sending new orders.
Optional auto-close rules can close positions before selected events (if enabled).
The indicator requires an internet connection and WebRequest permission to download the calendar feed.
What the Indicator Does
The indicator downloads economic calendar data via WebRequest and parses upcoming events.
It shows a compact list of upcoming events and a countdown to the next event.
It can draw vertical event lines on the chart at the scheduled time.
When protection is enabled, it sets terminal global variables to indicate whether new trading should be blocked during a configurable time window.
Optional auto-close rules can close positions before events based on your settings (for example, close all or only profitable positions).
Key Features
-
On-chart news panel with upcoming events and countdown timer
-
Optional vertical event lines for visual reference
-
Impact filters (high/medium/low and other categories if provided)
-
Currency filters (select only the currencies you trade)
-
Terminal-wide protection via global variables (one indicator can protect the whole terminal)
-
Optional auto-close before events (all positions or profitable-only, configurable)
-
Alerts (popup/sound/email/push if enabled in your terminal)
-
Auto-update interval for calendar refresh
Risk Management & Safety Notes
This indicator does not open trades by itself. Trading decisions and execution remain your responsibility.
Trading involves risk, and losses are possible—especially during fast news moves where spreads and slippage can increase.
Auto-close and trading-block logic depends on terminal connectivity, broker execution, and correct time settings.
Calendar availability depends on the data source and your terminal’s ability to connect via WebRequest.
For terminal-wide blocking to work, your EAs must be designed to read the provided global variables before opening trades.
Always test your settings on a demo account first.
Inputs
News & Filters
-
Enable/disable event categories (impact levels and other types if available)
-
Keyword include/exclude filters (optional)
-
Number of upcoming events to display
Currencies
-
Enable/disable currencies to monitor (choose only what you trade)
-
Option to restrict display/protection to current chart symbol (if provided)
Trading Protection
-
EnableTradingProtection (on/off)
-
ProtectionMinutesBefore / ProtectionMinutesAfter
-
Global variable names used for the trading-allowed and protection flags (if configurable)
Auto-Close
-
AutoClosePositions (on/off)
-
CloseMinutesBefore
-
Close all positions or profitable-only (if provided)
-
Close current symbol only or all symbols (if provided)
Display & Chart
-
ShowPanel / ShowCountdown
-
ShowVerticalLines (on/off)
-
Corner/font/size options (if provided)
-
Optional chart info (spread, candle time left, daily change if provided)
Alerts
-
Enable popup/sound/email/push alerts (as supported by MT4)
-
Alert timing before/after events (if provided)
-
Custom sound file name (optional)
Setup
-
Copy the indicator file to MQL4/Indicators and restart MT4 (or refresh Navigator).
-
Attach Alpha News Shield to any chart (one chart is sufficient for terminal-wide protection).
-
In MT4: Tools → Options → Expert Advisors → enable “Allow WebRequest for listed URL” and add the domain required by the indicator (shown in the Journal/status text if access is blocked).
-
Choose your event filters (impact/categories) and currencies.
-
Enable Trading Protection and set the minutes before/after the event for the block window.
-
If desired, enable Auto-Close and define what to close and when.
-
If you want your EAs to respect the block, ensure they read the trading-allowed global variable before sending new orders.
Recommended Evaluation
Verify that the panel updates and events appear on a live or demo chart (internet/WebRequest required).
Check that the countdown matches your broker time and that event lines align with the expected time on the chart.
Enable protection with a wide window at first to confirm the “blocked/allowed” status changes as expected.
If using auto-close, test on a demo account to confirm which positions are closed and when.
Validate EA integration by confirming your EA skips new entries while trading is blocked.
Review logs in the Experts/Journal tabs to confirm feed updates and any access errors.
Compatibility
Platform: MetaTrader 4 (MT4).
Requires WebRequest and an active internet connection to download calendar data.
Works on live and demo charts; it is not intended for Strategy Tester because online data is required.
Terminal-wide protection requires EAs that check the global variable flag before opening trades.
FAQ
Q: Does this indicator place trades?
A: No. It only displays events and can set protection flags / perform optional auto-close if enabled.
Q: Can it protect all EAs in the terminal?
A: It can set terminal global variables. EAs must be coded to read the “trading allowed” flag before opening trades.
Q: Why don’t I see any news/events?
A: Check WebRequest permissions, internet connection, and whether your filters are too strict.
Q: Does it work in Strategy Tester?
A: It is not intended for Strategy Tester because the calendar download requires online access.
Q: Can I limit protection to certain currencies?
A: Yes, use the currency filter inputs.
Q: Where can I get support?
A: Support is provided via MQL5 comments or MQL5 messages only.
Changelog
-
Version history is available in the Market “Versions” tab.
