ProTradeLib
- ライブラリ
-
Noel Anjao Alube
Dedicated to developing smart, data-driven trading solutions with a strong focus on performance, risk management, and innovation. Committed to transforming trading ideas into automated strategies. - バージョン: 1.0
- アクティベーション: 5
Complete Developer Toolkit for MetaTrader 5
ProTradeLib is a production-ready, single-file MQL5 include library designed for professional developers building Expert Advisors and trading systems. With seven integrated modules, it provides all the essential building blocks needed to create robust, feature-rich trading applications.
Key Features
1. Risk Manager
-
Calculate lot sizes based on account balance percentage, fixed USD risk, or fixed lots
-
Enforce maximum drawdown limits with automated trading halt
-
Track and enforce daily loss limits with automatic reset at server midnight
-
Integrated safety checks to prevent overtrading
2. Trailing Stop Management
-
Three trailing modes: ATR-based, Breakeven, and Fixed Pip
-
ATR trailing uses configurable multiplier and timeframe
-
Breakeven mode moves stop to entry plus offset when profit target is reached
-
Fixed pip trailing for classic stop management
-
Handles both Buy and Sell positions
3. Alert Engine
-
Multi-channel alerts: screen popup, sound, push notifications, and email
-
Cooldown system per alert type to prevent notification spam
-
Configurable cooldown intervals
4. Multi-Timeframe Data
-
Clean wrapper for OHLCV data across any timeframe
-
Indicator buffer value retrieval
-
New bar detection with caching to minimize performance impact
5. Market Session Detection
-
Identifies active sessions: Sydney, Tokyo, London, New York
-
Detects session overlaps
-
Killzone detection for London and New York opens
-
DST-aware with configurable offsets
6. News Filter
-
Fetches high-impact news events from built-in MetaTrader 5 calendar
-
Currency filtering with auto-detection from chart symbol
-
Configurable alert windows before and after events
-
60-minute cache to optimize performance
7. UI Dashboard
-
Lightweight on-chart display using native MT5 objects
-
Shows current session, trading status, daily P&L, current lot size, and last alert
-
Compact design positioned at top-right corner
-
Dark background with color-coded status indicators
-
Automatic object cleanup on deinitialization
Technical Specifications
-
Single File: All modules included in one .mqh file
-
Zero Dependencies: No external DLLs or third-party libraries required
-
Professional Code: Clean, well-commented, and production-ready
-
Complete Integration: Master class instantiates all modules for easy implementation
-
Marketplace Ready: Designed for commercial distribution
| Module | Purpose | Key Methods |
|---|---|---|
| RiskManager | Position sizing and risk limits | GetLotSize(), CanTrade(), Update() |
| TrailingSL | Automatic stop management | Manage(), SetMode() |
| AlertEngine | Multi-channel notifications | Send(), SetCooldown() |
| MultiTimeframe | Data access across timeframes | GetClose(), GetHigh(), IsNewBar() |
| MarketSession | Session detection | IsSession(), CurrentSession(), IsKillzone() |
| NewsFilter | News event monitoring | IsNewsWindow(), SetCurrencies() |
| UIPanel | On-chart dashboard | Draw(), Update(), Destroy() |
Requirements
-
MetaTrader 5 build 2000 or higher
-
MQL5 compiler
-
No additional libraries or DLLs required
About ProTradeLib
ProTradeLib is designed for MQL5 developers who want to accelerate their development process without compromising on quality or functionality. Each module is fully commented and follows MQL5 best practices, making it easy to understand, customize, and integrate into your projects.
Whether you are building Expert Advisors for personal use or developing commercial trading systems for the MetaTrader Marketplace, ProTradeLib provides the professional foundation you need.
Files Included
-
ProTradeLib.mqh - Complete library file
-
Ready-to-use master class for instant access to all modules
Support
Technical support and updates are included with your purchase.
Licensing
Commercial license allowing use in both personal and commercial MQL5 projects. Resale of the library itself is not permitted.
