mql5/Logs/20260302.log
darashikoh 3ba25ed9e0 fix(M5): Add stop level validation to prevent infinite BE retry loops
CRITICAL FIX:
- MoveToBreakeven() now validates against broker stop level before modification
- Prevents "Invalid stops" error causing infinite retry spam
- Marks breakeven_applied=true even on failed modify to stop retries

RELATED FIXES:
- Disabled analyzer cleanup in OnDeinit to prevent error 506 pointer access crash
- Analyzer GenerateAnalysisReport() file I/O unsafe during shutdown
- TODO: Refactor analyzer report generation to be shutdown-safe

Changes to PositionManager_PME_Complete.mqh:
- Lines 854-876: Added ValidateStopLoss() check in MoveToBreakeven()
- Failsafe: Mark BE attempted even if modify fails post-validation
- Prevents tick-spam when BE trigger met but SL too close to market price

Changes to ERMT_PME_2.1_M5.mq5:
- Lines 893-906: Commented out g_analyzer cleanup block in OnDeinit()
- Temporary disable pending shutdown-safe refactor

Testing:
- Before: "failed modify #7... [Invalid stops]" spam, backtest hangs
- After: Clean execution, BE either succeeds or silently skips
- Parametric optimization now completes successfully

Dependencies: Requires M5 v2.1 changes from previous commit
2026-03-03 11:16:01 +00:00

29 lines
7.2 KiB
Text

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]