Breakout Execution Engine
- Experts
- Alex Amuyunzu Raymond
- Versione: 1.10
- Aggiornato: 29 gennaio 2026
- Attivazioni: 5
Overview
The Breakout Framework EA is a sophisticated, modular trading system designed for the MetaTrader 5 platform. This expert advisor implements six distinct breakout strategies within a unified, professionally-architected framework. Built with MQL5 Market validation compliance as a core design principle, the EA ensures deterministic execution, robust error handling, and consistent performance across all market conditions.
Core Architecture
Modular Strategy Design
The EA employs an enumeration-based strategy selection system, allowing traders to switch between different breakout methodologies without code modification. This modular approach separates strategy logic from core trading functions, ensuring maintainability and extensibility.
Validation-Compliant Design
Every component has been engineered to pass strict MQL5 Market validation requirements:
-
Deterministic execution based solely on historical bar data
-
Bar-locked trading to prevent tick-by-tick execution variances
-
Proper price normalization and order safety mechanisms
-
No adaptive money logic or balance-dependent calculations
Available Strategies
1. Daily Range Breakout
Identifies and trades breakouts beyond the previous day's high/low range. Features configurable buffer zones and session-based filtering to target optimal trading windows.
2. Hourly Range Breakout
Captures shorter-term momentum by trading breakouts of the hourly price range. Includes close confirmation options for reduced false signals.
3. Support & Resistance Breakout
Utilizes swing point analysis to identify key structural levels. Trades breakouts above resistance or below support with configurable lookback periods.
4. Pivot Point Breakout
Implements classical floor trader pivot point methodology. Traders can selectively enable/disable specific pivot levels (R1, R2, S1, S2, PP) based on preference.
5. SuperTrend Breakout
Incorporates the popular SuperTrend indicator for trend-following breakout signals. Configurable period and multiplier settings with trend flip filtering.
6. Moving Average Breakout
Trades breakouts relative to moving average levels. Supports multiple MA methods (EMA, SMA, etc.) with optional slope confirmation for enhanced signal quality.
Risk Management System
Position Sizing
-
Fixed Lot Mode: Consistent position size regardless of account balance
-
Risk Percentage Mode: Percentage-based sizing with built-in margin safety checks
-
Automatic Lot Normalization: Ensures compliance with broker-specific volume constraints
Stop Loss Mechanisms
-
Fixed Pips: Pre-defined pip-based stop losses
-
ATR-Based: Dynamic stops based on Average True Range volatility
-
Structure-Based: Stop placement at key structural levels (highs/lows)
Take Profit Strategies
-
Fixed Pips: Static profit targets
-
Risk/Reward Ratio: Multiple-based profit targets relative to stop loss
-
ATR Multiple: Volatility-adjusted profit targets
Advanced Trade Management
-
Breakeven Automation: Moves stop loss to breakeven after specified profit
-
Trailing Stop System: Progressive stop loss adjustment to lock in profits
-
Freeze Level Compliance: All modifications respect broker freeze level requirements
Entry Filtering & Validation
Spread Control
Configurable maximum spread filter prevents trading during unfavorable liquidity conditions.
Session Filtering
Global and strategy-specific session controls allow trading only during specified market hours.
Position Limits
-
Maximum open trades per symbol
-
Daily trade count limits
-
Concurrent position management
Technical Implementation
Indicator Integration
-
ATR (Average True Range) for volatility-based calculations
-
Moving Average for trend-based strategies
-
Efficient handle management for optimal resource utilization
Order Execution Safety
-
Filling mode detection and adaptation (IOC/FOK/RETURN)
-
Deviation control for slippage management
-
Comprehensive error code handling
-
Margin requirement pre-validation
Price Normalization
All prices undergo rigorous normalization ensuring:
-
Compliance with symbol digit specifications
-
Respect for stop level and freeze level requirements
-
Proper distance validation between entry, stop loss, and take profit
Dashboard & Monitoring
Real-Time Display
The integrated dashboard provides:
-
Current strategy status and market state
-
Spread monitoring and session timing
-
Open position tracking with limits
-
Daily trade statistics
-
Strategy-specific level displays
Notification System
Optional push notification support for:
-
Trade execution alerts
-
Risk limit breaches
-
System status updates
Validation Compliance Features
Deterministic Execution
-
All trading decisions based exclusively on historical bar data
-
No TimeCurrent() or server time dependencies in logic
-
Consistent trade generation across validation runs
Bar-Locked Trading
-
Strict new bar confirmation before any trade execution
-
Prevention of duplicate trades on the same bar
-
Timeframe-agnostic operation
Symbol Property Awareness
-
Automatic adaptation to symbol-specific constraints
-
Volume step, minimum/maximum lot enforcement
-
Tick value and point size calculations
Performance Characteristics
Consistent Execution
The EA produces identical trading results when presented with the same market data, ensuring reliable backtesting and forward testing consistency.
Resource Efficiency
Minimal CPU and memory footprint through efficient indicator handling and optimized tick processing.
Broker Compatibility
Designed to work across all broker types with automatic adaptation to:
-
Netting and hedging account modes
-
Various filling policies
-
Different margin calculation methods
Usage Guidelines
Recommended Settings
-
Start with Fixed Lot mode using 0.01 lot size
-
Enable session filtering during high-volatility periods
-
Utilize ATR-based stops for volatility-adjusted risk management
-
Implement breakeven functionality for risk-free trade management
Symbol Compatibility
Optimized for major, minor, and exotic currency pairs. Also compatible with metals, indices, and commodities with appropriate parameter adjustments.
Timeframe Suitability
All strategies function across multiple timeframes (M1 to D1) with strategy-specific optimizations available.
Development Philosophy
This EA represents professional MQL5 development practices:
-
Clean, commented code following MetaQuotes standards
-
Separation of concerns between strategy, risk management, and execution
-
Comprehensive input parameter validation
-
Graceful error handling and recovery
-
Market-ready robustness and reliability
The Breakout Framework EA provides institutional-grade trading automation in a accessible, configurable package suitable for both retail traders and professional money managers.
