ASQ Session Manager for MetaTrader 5
Info
The ASQ Session Manager for MetaTrader 5 is a Library for MetaTrader 5 that asq session manager v1. 2 is a free and open-source tool that brings institutional-grade session awareness to your EAs.
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 Session Manager for MetaTrader 5
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 Session Manager 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 Session Manager v1.2 is a free and open-source tool that brings institutional-grade session awareness to your EAs. It identifies active sessions, kill zones, and Asian range breakouts, empowering you to trade with precision.Also recommended: AT R-Based Stop Loss Manager - similar library with strong performance on MetaTrader 5.
Features:
- Detects 4 sessions: Sydney, Tokyo, London, and New York, with automatic broker GMT offset adjustment.
- Identifies critical kill zones: London Open, NY Open, Asian, London Close, and London-NY Overlap.
- Asian range breakout detection with automatic range calculation (00:00-06:00 GMT), breakout arrows, false-break filtering, and 1.5x expansion targets.
- Session volatility scoring using a 5-tier ATR-relative meter (Dead/Low/Normal/High/Explosive) compared to the 20-day average range.
- Countdown timer for upcoming session opens or kill zones, displaying hours and minutes remaining.
- Tracks session phases: Early, Active, Midday, and Late for each session.
- Built-in signal types: Asian Range Breakout, London Open Momentum, and Overlap Continuation with entry, stop-loss, and take-profit levels.
- Analyzes 20-day session ranges to identify the best sessions.
- NFP Friday detection to avoid trading during Non-Farm Payroll events on the first Friday of each month.
- Safety filters for weekend, Friday late close, and Monday early open protection.
- Session overlap analysis with priority resolution (London > NY > Tokyo > Sydney).
Demo Indicator:
The included demo indicator, ASQ_SessionManager_Demo, provides a comprehensive visual representation:
- Colored session boxes with labels (LDN=Blue, NYC=Red, TKY=Purple, SYD=Teal).
- Kill zone highlights in gold with tooltips for direction and strength.
- Asian range box with midline, breakout arrows, false-break markers, and expansion target lines.
- Multi-panel dashboard: session progress, kill zone countdown, volatility meter, next event countdown, Asian range state, signal panel, average ranges, and trading status with NFP Friday warning.
Usage:
#include "ASQ_SessionManager.mqh"
CASQSessionManager session;
session.Initialize(_Symbol, pipValue, 0); // 0 = auto-detect GMT offset
session.Update(bid, ask); // Call on every tick
Place both files in the same folder for easy compilation.
Files:
- ASQ_SessionManager.mqh (1,341 lines) - Library
- ASQ_SessionManager_Demo.mq5 (628 lines) - Demo indicator
Compatible with MetaTrader 5, all brokers, forex instruments, and timeframes. This powerful tool consists of 1,969 lines of production MQL5 code, ensuring precision in your trading strategies.
You may also like: ASQ Indicator Manager - excellent alternative for library users on MetaTrader 5.
⚠ 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.