mql5/Experts/Advisors/ERMT_7x/ERMT_7.1_ERMT-ML.ex5
darashikoh 51b8b942b1 feat: Implement ERMT PME v1.3 - Complete Three-Solution Optimization
BREAKING CHANGES:
- Phase locks now operate as safety floors only (no dynamic tightening)
- Adaptive trailing is phase-aware with ATR-based multipliers
- Partial closure schedule optimized (earlier triggers, larger percentages)

🎯 Solution 1: Decouple Phase Locks from Adaptive Trailing (PRIMARY)
- Modified ProfitMaximizer_PME.mqh: Phase locks = minimum profit guarantees only
  * Removed progressive locking calculations (lines 1047-1101)
  * Removed breathing room reduction logic
  * Removed retreat tightening (multiplier now 1.0, was 1.2)
  * Phase locks only move up when higher phases achieved, never tighten

- Modified PositionManager_PME_Complete.mqh: Phase-aware adaptive trailing
  * CalculateTrailDistance(): Phase-based multipliers 2.5x-3.5x ATR (lines 980-1066)
  * ApplyTrailingStop(): Respects phase floor minimums (lines 873-975)
  * FIXED volatility logic: Now WIDENS stops in high vol by 30% (was tightening!)
  *
2025-12-03 15:22:48 +00:00

159 KiB