News Filter MT5 FX
- 유틸리티
- Sebastiano Rao
- 버전: 1.0
- 활성화: 5
Important: Contact me for installation instruction
What Is NewsFilter MT5 FX?
NewsFilter MT5 FX is a professional news protection Expert Advisor for MetaTrader 5. It automatically monitors the economic calendar, detects high-impact news events, closes all open positions before the release, and disables AlgoTrading during the volatility window — then re-enables everything automatically once the window has passed. No manual intervention required.
It is designed to be overlaid on any chart alongside your main trading EA, acting as a silent guardian that activates only when needed.
How It Works
The EA fetches the upcoming economic calendar for the next 7 days at startup and refreshes it every 5 minutes. For each event it computes a time window:
-
Stop zone starts N minutes before the news release
-
Resume zone starts N minutes after the news release
Both values are fully configurable. When the current broker time enters the stop zone the EA:
-
Closes all open positions across all symbols on the account using a robust retry mechanism
-
Disables AlgoTrading at terminal level via the native MT5 WinAPI toggle — the same button you would press manually
-
Displays a live countdown on the panel showing when trading will resume
When the window expires it re-enables AlgoTrading automatically and resets to normal state. If the EA is removed while AlgoTrading is still disabled, it re-enables it during OnDeinit to leave no orphaned state.
Key Features
News Filtering
-
Filter by impact level independently: LOW / MED / HIGH — enable or disable each tier
-
Filter by currency: monitor only the pairs you trade ( USD , EUR , GBP , CAD , AUD , NZD , or any combination)
-
Optional keyword filter: restrict protection to specific event names (e.g. "NFP" , "CPI" , "employment" )
-
Upcoming news shown up to 7 days ahead
Position Management
-
Closes all open positions account-wide, across all symbols
-
Robust retry loop: configurable max attempts and delay between retries
-
Full diagnostic logging: every close attempt (success or failure) is printed to the Journal with ticket, symbol, volume and error code
-
Alert() popup if any position could not be closed after all retries — critical for prop firm compliance
AlgoTrading Control
-
Uses native MT5 WinAPI PostMessageW to toggle the AlgoTrading button — identical to pressing it manually
-
Confirms the state change after 400ms and logs a warning if the toggle did not take effect
-
Safe re-enable on EA removal via OnDeinit
Timezone System
-
Broker Server Time mode (recommended): automatically calculates the offset between broker time and UTC — zero configuration needed, works with any broker
-
Manual GMT mode: set a fixed GMT offset manually; a dedicated Ref. time line on the panel shows the current adjusted time in real-time so you can verify the offset is correct
Info Panel
-
Always-on overlay panel showing:
-
Filter status (NORMAL / NEWS WINDOW ACTIVE)
-
AlgoTrading state (ON / OFF / disabled by EA)
-
Open positions count
-
Local broker time
-
Timezone mode and offset
-
Reference time (Manual GMT mode)
-
Live countdown to next news and to stop zone
-
Up to 7 upcoming filtered events with impact color coding
-
-
Each news line color-coded: 🟡 LOW · 🟠 MED · 🔴 HIGH
-
Sub-line shows the full event name in grey
-
Resume in countdown shown in green during active window
-
Fully customizable: position, width, font, size, colors, border
Vertical Chart Lines
-
Optional vertical lines drawn at each news event time directly on the chart
-
Separate color per impact level (LOW / MED / HIGH)
-
Configurable style (solid, dot, dash) and width
-
Lines automatically removed for past events on each reload
Ideal For
-
Prop firm traders (FTMO, My Forex Funds, The Funded Trader, etc.) where news trading is restricted or positions must be flat before high-impact releases
-
Algorithmic traders running EAs 24/5 who need automatic news protection without monitoring the screen
-
Any trader who wants a professional, zero-maintenance news guard running alongside their strategy
