mql5/Logs/20260302.log

30 lines
7.2 KiB
Text
Raw Permalink Normal View History

feat(M5): Implement v2.1 config enforcement and graduated stops in M5 contrarian mode BREAKING CHANGES: - M5 mode now enforces all v2.1 delayed BE/trailing parameters - Graduated stop system replaces legacy disaster stop when enabled - Max bars limit now triggers hard position close Changes to PositionManager_PME_Complete.mqh: 1. Max Bars Hard Close Enforcement - Added check for m_m5_config.max_bars at start of ApplyM5ContrarianManagement() - Forces EXIT_TIME close when position age exceeds configured limit (300 bars) - Prevents indefinite position holding in extended phases 2. Graduated Stop-Loss System - Implements ATR-based phase-progressive stops: * Phase 1 (0-60 bars): 3.5 ATR wide initial protection * Phase 2 (60-180 bars): 2.5 ATR tightened stop * Phase 3 (180+ bars): 2.0 ATR mature stop - Replaces legacy disaster stop when m_config.use_graduated_stops enabled - Falls back to disaster stop (150pt @ -100pt) if graduated stops disabled - Updates m_positions[].current_sl after successful modification 3. Delayed Breakeven Enforcement (v2.1) - Respects m_config.breakeven_min_bars (20 bars minimum age) - Respects m_config.breakeven_min_profit_bars (5 consecutive profit bars) - Applied to both Phase 1 fast BE (25pts) and Phase 2 maturity BE (30pts) - Logs bar count and consecutive profit bars on activation 4. Delayed Trailing Enforcement (v2.1) - Respects m_config.trail_min_bars (40 bars minimum age) - Applied to percentage trail in Phase 2 (30%/40% based on reversal speed) - Sets trail_activated flag and increments m_metrics.trails_activated - Logs activation with percentage and bar count 5. M5 Trailing Helper Metric Sync - Created ApplyM5PercentageTrail() with current_sl sync - Created ApplyM5PointsTrail() with current_sl sync - Created ApplyM5DynamicTrail() with current_sl sync - Standard helpers (ApplyPercentageTrail, etc.) preserved for non-M5 use - M5 contrarian management now calls M5-specific versions exclusively - Fixes metric/state desync between MT5 server and in-memory position tracking Architecture: - M5 mode continues to bypass standard management path (intentional isolation) - Standard trailing/technical/time-exit engines remain unused in M5 mode - Configuration separation maintained: ManagementConfig for standard + v2.1 fields, M5Config for contrarian-specific - No changes to main EA file (ERMT_PME_2.1_M5.mq5) Compatibility: - No breaking changes to standard (non-M5) management path - Existing M5 backtest results remain valid (behavior refinement only) - All v2.1 configuration fields now honored in M5 runtime
2026-03-02 17:08:42 +00:00
<EFBFBD><EFBFBD>KQ 0 09:22:31.778 Galileo FX_Pro_MT5 (GBPUSD,H1) CTrade::OrderSend: market buy 0.10 GBPUSD [auto trading disabled by client]
LF 0 09:40:00.222 Galileo FX_Pro_MT5 (USDJPY,M5) CTrade::OrderSend: market buy 0.10 USDJPY [auto trading disabled by client]
MI 0 09:55:00.108 Galileo FX_Pro_MT5 (USDJPY,M5) CTrade::OrderSend: market sell 0.10 USDJPY [auto trading disabled by client]
LI 0 10:00:00.264 Galileo FX_Pro_MT5 (USDJPY,M5) CTrade::OrderSend: market sell 0.10 USDJPY [auto trading disabled by client]
CI 0 11:15:00.244 Galileo FX_Pro_MT5 (USDJPY,M5) CTrade::OrderSend: market sell 0.10 USDJPY [auto trading disabled by client]
LI 0 11:20:00.168 Galileo FX_Pro_MT5 (USDJPY,M5) CTrade::OrderSend: market sell 0.10 USDJPY [auto trading disabled by client]
GI 0 12:04:22.415 Galileo FX_Pro_MT5 (GBPUSD,H1) CTrade::OrderSend: market sell 0.10 GBPUSD [auto trading disabled by client]
PI 0 12:05:00.092 Galileo FX_Pro_MT5 (USDJPY,M5) CTrade::OrderSend: market sell 0.10 USDJPY [auto trading disabled by client]
RH 0 12:10:00.074 Galileo FX_Pro_MT5 (USDJPY,M5) CTrade::OrderSend: market sell 0.10 USDJPY [auto trading disabled by client]
CH 0 12:15:02.009 Galileo FX_Pro_MT5 (USDJPY,M5) CTrade::OrderSend: market sell 0.10 USDJPY [auto trading disabled by client]
KH 0 12:20:01.299 Galileo FX_Pro_MT5 (USDJPY,M5) CTrade::OrderSend: market sell 0.10 USDJPY [auto trading disabled by client]
GH 0 12:49:04.633 Galileo FX_Pro_MT5 (USDJPY,M5) CTrade::OrderSend: market sell 0.10 USDJPY [auto trading disabled by client]
DH 0 12:50:13.663 Galileo FX_Pro_MT5 (USDJPY,M5) CTrade::OrderSend: market sell 0.10 USDJPY [auto trading disabled by client]
NH 0 12:58:44.100 Galileo FX_Pro_MT5 (USDJPY,M5) CTrade::OrderSend: market sell 0.10 USDJPY [auto trading disabled by client]
MH 0 13:00:00.093 Galileo FX_Pro_MT5 (USDJPY,M5) CTrade::OrderSend: market sell 0.10 USDJPY [auto trading disabled by client]
HH 0 15:12:54.434 Galileo FX_Pro_MT5 (USDJPY,M5) CTrade::OrderSend: market sell 0.10 USDJPY [auto trading disabled by client]
FD 0 16:35:00.114 Galileo FX_Pro_MT5 (USDJPY,M5) CTrade::OrderSend: market buy 0.10 USDJPY [auto trading disabled by client]
PK 0 17:00:00.144 Galileo FX_Pro_MT5 (USDJPY,M5) CTrade::OrderSend: market sell 0.10 USDJPY [auto trading disabled by client]
IK 0 17:40:19.051 Galileo FX_Pro_MT5 (USDJPY,M5) CTrade::OrderSend: market sell 0.10 USDJPY [auto trading disabled by client]
MK 0 17:45:00.038 Galileo FX_Pro_MT5 (USDJPY,M5) CTrade::OrderSend: market sell 0.10 USDJPY [auto trading disabled by client]
NK 0 17:50:00.862 Galileo FX_Pro_MT5 (USDJPY,M5) CTrade::OrderSend: market sell 0.10 USDJPY [auto trading disabled by client]
OK 0 18:38:48.202 Galileo FX_Pro_MT5 (USDJPY,M5) CTrade::OrderSend: market sell 0.10 USDJPY [auto trading disabled by client]
ID 0 18:50:00.020 Galileo FX_Pro_MT5 (USDJPY,M5) CTrade::OrderSend: market buy 0.10 USDJPY [auto trading disabled by client]
HE 0 19:39:42.533 Galileo FX_Pro_MT5 (USDJPY,M5) CTrade::OrderSend: market buy 0.10 USDJPY [auto trading disabled by client]
IE 0 19:43:22.889 Galileo FX_Pro_MT5 (USDJPY,M5) CTrade::OrderSend: market buy 0.10 USDJPY [auto trading disabled by client]
CJ 0 21:19:51.319 Galileo FX_Pro_MT5 (USDJPY,M5) CTrade::OrderSend: market sell 0.10 USDJPY [auto trading disabled by client]
JJ 0 21:20:00.433 Galileo FX_Pro_MT5 (USDJPY,M5) CTrade::OrderSend: market sell 0.10 USDJPY [auto trading disabled by client]
CE 0 21:35:03.916 Galileo FX_Pro_MT5 (USDJPY,M5) CTrade::OrderSend: market buy 0.10 USDJPY [auto trading disabled by client]
CE 0 23:04:05.158 Galileo FX_Pro_MT5 (USDJPY,M5) CTrade::OrderSend: market sell 0.10 USDJPY [auto trading disabled by client]
feat(M5): Implement v2.1 config enforcement and graduated stops in M5 contrarian mode BREAKING CHANGES: - M5 mode now enforces all v2.1 delayed BE/trailing parameters - Graduated stop system replaces legacy disaster stop when enabled - Max bars limit now triggers hard position close Changes to PositionManager_PME_Complete.mqh: 1. Max Bars Hard Close Enforcement - Added check for m_m5_config.max_bars at start of ApplyM5ContrarianManagement() - Forces EXIT_TIME close when position age exceeds configured limit (300 bars) - Prevents indefinite position holding in extended phases 2. Graduated Stop-Loss System - Implements ATR-based phase-progressive stops: * Phase 1 (0-60 bars): 3.5 ATR wide initial protection * Phase 2 (60-180 bars): 2.5 ATR tightened stop * Phase 3 (180+ bars): 2.0 ATR mature stop - Replaces legacy disaster stop when m_config.use_graduated_stops enabled - Falls back to disaster stop (150pt @ -100pt) if graduated stops disabled - Updates m_positions[].current_sl after successful modification 3. Delayed Breakeven Enforcement (v2.1) - Respects m_config.breakeven_min_bars (20 bars minimum age) - Respects m_config.breakeven_min_profit_bars (5 consecutive profit bars) - Applied to both Phase 1 fast BE (25pts) and Phase 2 maturity BE (30pts) - Logs bar count and consecutive profit bars on activation 4. Delayed Trailing Enforcement (v2.1) - Respects m_config.trail_min_bars (40 bars minimum age) - Applied to percentage trail in Phase 2 (30%/40% based on reversal speed) - Sets trail_activated flag and increments m_metrics.trails_activated - Logs activation with percentage and bar count 5. M5 Trailing Helper Metric Sync - Created ApplyM5PercentageTrail() with current_sl sync - Created ApplyM5PointsTrail() with current_sl sync - Created ApplyM5DynamicTrail() with current_sl sync - Standard helpers (ApplyPercentageTrail, etc.) preserved for non-M5 use - M5 contrarian management now calls M5-specific versions exclusively - Fixes metric/state desync between MT5 server and in-memory position tracking Architecture: - M5 mode continues to bypass standard management path (intentional isolation) - Standard trailing/technical/time-exit engines remain unused in M5 mode - Configuration separation maintained: ManagementConfig for standard + v2.1 fields, M5Config for contrarian-specific - No changes to main EA file (ERMT_PME_2.1_M5.mq5) Compatibility: - No breaking changes to standard (non-M5) management path - Existing M5 backtest results remain valid (behavior refinement only) - All v2.1 configuration fields now honored in M5 runtime
2026-03-02 17:08:42 +00:00