Regression Channel Momentum MT5
- エキスパート
-
Wasim Zayed
25+ years in global financial markets, specializing in structuring financiak companies, building algorithmic strategy design, Forex, CFDs, and quantitative models on MetaTrader 5. I develop professional-grade Expert Advisors designed for long-term consistency, dynamic equity-based risk management - バージョン: 2.17
- アクティベーション: 5
Weekly Regression Breakout Pro is a systematic, rule-based Expert Advisor developed for MetaTrader 5 that captures weekly momentum breakouts and volatility expansions using multi-tier Linear Regression channels.
The EA constructs an Ordinary Least Squares (OLS) regression channel from the preceding trading week on the H4 timeframe, computes dynamic standard error boundaries, and projects clean, objective trigger levels for the active week.
Key Features
- Multi-Tier OLS Regression: Automatically calculates the slope, median line, and standard deviation outer boundaries of prior price action.
- H4 Bar-Close Execution: Eliminates intraday noise and false wick breakouts by executing strictly upon the completion of 4-hour candles.
- ATR Volatility Filter: Confirms true momentum breakouts using dynamic Average True Range (ATR) confirmation buffers.
- Dual Strategy Modes: Switch between trend-following breakout execution (MODE_BREAKOUT) and mean-reversion exhaustion fades (MODE_MEAN_REVERSION).
- Weekly Directional Quotas: Limits exposure by restricting entries in the same direction to once per calendar week, protecting against choppy consolidations.
- Capital & Risk Preservation: Dynamic lot sizing scaled strictly against account equity with ATR-based Stop Loss, Take Profit, and dynamic trailing stop options.
- Weekend Holding Flexibility: Toggle between closing positions on Friday at 23:00 server time or carrying trades into the following week.
Recommended Setup
- Platform: MetaTrader 5 (MT5)
- Timeframe: H4
- Assets: EURUSD, XAUUSD
- Account Type: Raw Spread, ECN, or Low-Commission STP
- Minimum Balance: $1000 (with InpRiskPercent = 1.0% or 0.01 lot fallback)
Input Parameters Summary
- Risk Management:
* InpRiskPercent: Percentage of equity risked per trade.
* InpFixedLot: Fallback lot size if calculation fails.
* InpMagicNumber: Unique trade identifier.
* InpMaxSpreadPoints: Spread protection filter.
- Strategy Configuration:
* InpStrategyMode: Select Breakout or Mean Reversion.
* InpCloseEndOfWeek: When TRUE, closes trades Friday at 23:00; when FALSE, relies on SL/TP.
* InpATRPeriod / InpATRBufferMultiplier: Sensitivity controls for breakout confirmation.
* InpATRExitMultiplier: Volatility multiplier for Stop Loss distance.
* InpEnableTrailingStop: Enables real-time dynamic trailing stops.
- Visual Customization:
* InpChannelUpperColor / LowerColor / MiddleColor: Customize chart display styling.
Important: Past performance does not guarantee future results. Please backtest thoroughly on your broker's historical data and test on a demo account before running on live capital.
