mql5/Experts/Advisors
darashikoh 4ec6b0ddc7 Summary - ATR Indicator Error 4302 Fixed
Problem
The EA was failing to initialize because the ATR indicator couldn't be created (error 4302), which occurs when:
Not enough historical bars are loaded on the chart
Chart data isn't ready when EA initializes
Solution Applied
1. Enhanced error handling in TechnicalAnalysis module (TechnicalAnalysis_PME_Optimised.mqh:81-155):
Added bar count check before creating indicators
Individual error logging for each indicator with error codes
Non-fatal initialization - returns success if core indicators load
2. Made Technical Analysis initialization non-fatal (ERMT_PME_1.2.mq5:432-440):
EA continues even if indicators fail initially
Logs warning instead of aborting
Position management can work without technical indicators
Expected Behavior Now
When you attach the EA:
If insufficient data: You'll see a WARNING message but EA will continue
Indicators will be created on first successful data load
EA remains functional for position management
Detailed error
2025-10-28 10:47:19 +00:00
..
Modules ERMT_6.8 - attempt to define dashboard 2025-09-05 18:17:25 +01:00
Modules_optimised Commit from local main repo as cannot checkout due to some unsaved version - which ones is unclear 2025-08-19 18:36:26 +01:00
Modules_PME Summary - ATR Indicator Error 4302 Fixed 2025-10-28 10:47:19 +00:00
ATR_Dynamic_Risk_Manager.ex5 ERMT_PME 2.0 - Optimised Profit Maximisation for Contrarian M5/M7/M9 2025-10-06 12:16:00 +01:00
ATR_Dynamic_Risk_Manager.mq5 ERMT_PME - fully compiled 2025-09-29 12:26:22 +01:00
ERMT_PME_1.0.mq5 Integrate Phase-Based Profit Maximization into ERMT_PME_1.0 >1.1 - Debug complete 2025-10-27 23:16:57 +00:00
ERMT_PME_1.0.mq5.backup Integrate Phase-Based Profit Maximization into ERMT_PME_1.0 2025-10-27 20:24:20 +00:00
ERMT_PME_1.1.mq5 Integrate Phase-Based Profit Maximization into ERMT_PME_1.0 >1.1 - Debug complete 2025-10-27 23:16:57 +00:00
ERMT_PME_1.2.mq5 Summary - ATR Indicator Error 4302 Fixed 2025-10-28 10:47:19 +00:00
ERMT_PME_2.0_M5.ex5 Profit maximisation update 2025-10-27 18:54:25 +00:00
ERMT_PME_2.0_M5.mq5 ERMT_PME 1.0 and 2.0 to run simultaneously via updated Utlities_PME.mqh and creating instances PME1 and PME2. 2025-10-09 12:09:59 +01:00
ExpertMACD.ex5 Profit maximisation update 2025-10-27 18:54:25 +00:00
ExpertMACD.mq5 ERMT_PME_2.0 Optimisation for M5 contrarian - Removed hardcoded disaster stop and made it configurable as contrarian signals were getting stopped out early 2025-10-09 09:53:03 +01:00
ExpertMAMA.ex5 Profit maximisation update 2025-10-27 18:54:25 +00:00
ExpertMAMA.mq5 ERMT_PME_2.0 Optimisation for M5 contrarian - Removed hardcoded disaster stop and made it configurable as contrarian signals were getting stopped out early 2025-10-09 09:53:03 +01:00
ExpertMAPSAR.ex5 Profit maximisation update 2025-10-27 18:54:25 +00:00
ExpertMAPSAR.mq5 ERMT_PME_2.0 Optimisation for M5 contrarian - Removed hardcoded disaster stop and made it configurable as contrarian signals were getting stopped out early 2025-10-09 09:53:03 +01:00
ExpertMAPSARSizeOptimized.ex5 Profit maximisation update 2025-10-27 18:54:25 +00:00
ExpertMAPSARSizeOptimized.mq5 ERMT_PME_2.0 Optimisation for M5 contrarian - Removed hardcoded disaster stop and made it configurable as contrarian signals were getting stopped out early 2025-10-09 09:53:03 +01:00
Galileo FX_Pro_MT5.ex5 Commit from local main repo as cannot checkout due to some unsaved version - which ones is unclear 2025-08-19 18:36:26 +01:00
PME_Diagnostic_Script.ex5 ERMT_PME 2.0 - Optimised Profit Maximisation for Contrarian M5/M7/M9 2025-10-06 12:16:00 +01:00
PME_Diagnostic_Script.mq5 2025-10-03 10:03:10 +01:00
PME_Monitor_Dashboard.ex5 ERMT_PME 2.0 - Optimised Profit Maximisation for Contrarian M5/M7/M9 2025-10-06 12:16:00 +01:00
PME_Monitor_Dashboard.mq5 2025-10-03 10:03:10 +01:00
PME_PerformanceTest_Patch.ex5 ERMT_PME 2.0 - Optimised Profit Maximisation for Contrarian M5/M7/M9 2025-10-06 12:16:00 +01:00
PME_PerformanceTest_Patch.mq5 2025-10-03 10:03:10 +01:00
PME_TestRunner.ex5 ERMT_PME 2.0 - Optimised Profit Maximisation for Contrarian M5/M7/M9 2025-10-06 12:16:00 +01:00
PME_TestRunner.mq5 2025-10-03 10:03:10 +01:00
PME_TestRunner_Corrected.ex5 ERMT_PME 2.0 - Optimised Profit Maximisation for Contrarian M5/M7/M9 2025-10-06 12:16:00 +01:00
PME_TestRunner_Corrected.mq5 2025-10-03 10:03:10 +01:00
PME_TestRunner_Diagnostic.ex5 ERMT_PME 2.0 - Optimised Profit Maximisation for Contrarian M5/M7/M9 2025-10-06 12:16:00 +01:00
PME_TestRunner_Diagnostic.mq5 2025-10-03 10:03:10 +01:00
PME_Validation_Test.ex5 ERMT_PME 2.0 - Optimised Profit Maximisation for Contrarian M5/M7/M9 2025-10-06 12:16:00 +01:00
PME_Validation_Test.mq5 2025-10-03 10:03:10 +01:00