asq news filter
Info
The asq news filter is a Library for MetaTrader 5 that asq news filter v1. 2 — free, open-source tool to protect your ea from news-driven volatility.
Usage
This tool is typically used for enhancing chart analysis and decision making.
Platform
This Library works exclusively on MetaTrader 5 (both build 600+ and newer versions).
Setup
Place the downloaded file in MQL5/Libraries folder via File ? Open Data Folder in MetaTrader 5.
How to Install and Use asq news filter
1. Storage: Place library files in the MQL/Libraries directory to ensure they are accessible to your projects.
2. Implementation: Include the library in your code using the #import directive, ensuring you match the exact function names and parameters.
3. Compilation: Ensure the library is present in the directory before you compile your main EA or script, as the compiler links them during this phase.
4. Management: Keep libraries organized in sub-folders if you manage many custom functions to maintain a clean project structure.
Frequently Asked Questions
Q: What is a library file used for? A: Libraries store reusable code modules, allowing you to centralize common logic used by multiple EAs or indicators.
Q: Is a library executable? A: No, libraries are non-executable files containing functions; they must be imported into an EA, indicator, or script to function.
Q: Can I update a library while the platform is running? A: You should compile your EA or script after updating a library to ensure the latest code changes are integrated.
What this tool does
asq news filter v1.
Typical Use Case
This Library excels in automated trading and technical analysis on MetaTrader 5.
Compatible Platform & Setup
This Library works on MetaTrader 5. Place the file in the MQL5/Libraries folder and restart the terminal.
Description & Settings
Related: session time filter library - another powerful library for MetaTrader 5 traders.
asq news filter v1.2 — free, open-source tool to protect your ea from news-driven volatility. this filter integrates with the mql5 calendar api, fetching live economic events and blocking trading during high-impact releases.Also recommended: mq l 5 wizard - simpler intraday time filter - similar library with strong performance on MetaTrader 5.
features:
- live event fetching from mql5 calendar api every 5 minutes, including actual, forecast, and previous values.
- impact filtering with modes: high only, high+medium, and all.
- customizable pre- and post-news trading pauses, ranging from 5 to 120 minutes.
- extended cooldowns for specific events like nfp (60 minutes) and fomc (90 minutes), adjustable to your needs.
- coverage of 9 central banks: fed (fomc), ecb, boe, boj, rba, boc, snb, rbnz, and nfp, with built-in date schedules.
- automatic event classification for nfp, fomc, cpi, gdp, pmi, retail, and employment events.
- currency-specific filtering, handling broker suffixes (e.g., eurusdm, eurusd.r).
- news intensity scoring with 4 levels: calm, caution, danger, and blackout.
- upcoming events list with impact levels and countdowns.
- deduplication and cleanup of passed events.
- custom event support for adding your events programmatically.
demo ea included:
attach to any forex chart for a comprehensive dashboard:
- trading status with intensity meter.
- next event details, including currency, impact, type, and countdown.
- pre- and post-news window indicators with cooldown display.
- upcoming events list with impact color dots.
- event counts by impact level and total events.
usage:
place both files in the same folder for instant compilation.
files:
- asq_newsfilter.mqh — library (1,034 lines)
- asq_newsfilter_demo.mq5 — demo ea (395 lines)
compatible with metatrader 5, all brokers, forex instruments, and timeframes. 1,429 lines of mql5 code. algosphere quant — ensuring precision in trading.
You may also like: smooth algorithms - corrected/modified - library for meta trader 5 - excellent alternative for library users on MetaTrader 5.
Source Code
#property copyright "robotfx"
#property link "https://robotfx.org"
#property version "1.20"
#property description "This code is provided AS IS and intended for educational purposes only. Professional trading EAs and indicators - robotfx www.robotfx.org"
#property description "This code is provided AS IS and intended for educational purposes only. Professional trading EAs and indicators - robotfx www.robotfx.org"
#property description "This code is provided AS IS and intended for educational purposes only. Professional trading EAs and indicators - robotfx www.robotfx.org"
#property description "This code is provided AS IS and intended for educational purposes only. Professional trading EAs and indicators - robotfx www.robotfx.org"
#property description "This code is provided AS IS and intended for educational purposes only. Professional trading EAs and indicators - robotfx www.robotfx.org"
#include "asq_newsfilter.mqh"
input group "═══ news filter settings ═══"
.......
⚠ Limitations & Risk Warning
- This tool is provided for educational and testing purposes only.
- Past performance does not guarantee future results.
- Trading involves substantial risk of loss. Use on a demo account first.
- Results may vary depending on market conditions, broker, and settings.
- We recommend thorough backtesting and forward testing before using with real funds.