Commit graph

  • 97a21593e1 feature/pme-1x-optimization darashikoh 2026-03-31 21:45:39 +01:00
  • 6e3dd40e62 chore: expand venv replication instructions and dependency checks darashikoh 2026-03-26 21:29:58 +00:00
  • de6b8a3fc3 chore: add script to export and recreate venv darashikoh 2026-03-26 21:27:34 +00:00
  • 16a2b2abdb chore: checkpoint current workspace updates darashikoh 2026-03-26 21:26:25 +00:00
  • 6be2c3c9e9 fix(pme): resolve enum migration compile errors darashikoh 2026-03-26 20:57:40 +00:00
  • 36e0f5b74b docs(pme): add Track A closeout summary darashikoh 2026-03-26 19:05:14 +00:00
  • 4da4fe3f8d feat(pme-1.5): A3 enum migration + A5 cleanup + gitignore expansion darashikoh 2026-03-26 17:02:22 +00:00
  • 70c6f3d196 docs(pme): add Track B/C implementation roadmap darashikoh 2026-03-25 12:49:17 +00:00
  • 6fe50afe02 feat(pme-1.5): Track A - fix retracement buffer semantics and enhance dashboard darashikoh 2026-03-25 12:49:17 +00:00
  • 2b1a90ac99 docs(pme): add v2.2 implementation plan roadmap darashikoh 2026-03-25 11:35:41 +00:00
  • 34df3edc37 chore(gitignore): add runtime noise ignore rules feature/ermt-2x-optimisation darashikoh 2026-03-25 00:33:12 +00:00
  • d970c20f4e chore(gitignore): ignore runtime noise and untrack local chart artifacts darashikoh 2026-03-25 00:33:05 +00:00
  • 0e9fdab53a feat(ermt-2x): consolidate 2.1+2x optimisation updates and add 2.2 source darashikoh 2026-03-25 00:31:09 +00:00
  • 720c4fa87a Merge branch 'feature/ermt-2.1-optimization' into feature/ermt-2x-optimisation darashikoh 2026-03-25 00:28:51 +00:00
  • 850baaad00 feat(pme): add v1.5 ATR partials, retracement gate, and symbol-class presets darashikoh 2026-03-24 23:54:05 +00:00
  • c4d4c3aab1 Refine dashboard UX and startup profile visibility darashikoh 2026-03-23 16:00:09 +00:00
  • 22aab41aad v1.4 input interface cleanup - streamlined to essentials only darashikoh 2026-03-23 15:22:26 +00:00
  • b018bba0f1 ERMT_PME_1.4: add safe/aggressive startup profiles and delay trailing darashikoh 2026-03-23 13:43:22 +00:00
  • ca4024ed3a feat: bring ERMT_PMEx folder (incl. v1.3) onto pme-1x-optimization branch darashikoh 2026-03-23 13:02:37 +00:00
  • f73720b88c chore: save 2.1 optimisation session state and snapshot (2026-03-23) feature/ermt-2.1-optimization darashikoh 2026-03-23 12:58:33 +00:00
  • 9ff226f990 Update compiled EA binary for PME 2.1 M5 fixes darashikoh 2026-03-18 17:14:19 +00:00
  • b4eda1ed42 Fix backtest entry gating and improve M5 contrarian stop logic darashikoh 2026-03-17 14:58:17 +00:00
  • a8611dc48d fix: resolve M5 parameter conflicts and align config with user inputs ERMT_WiP darashikoh 2026-03-04 16:04:16 +00:00
  • bd91767a97 The M5 contrarian mode now respects global enable flags while preserving specialized delay logic. darashikoh 2026-03-03 12:57:29 +00:00
  • 3ba25ed9e0 fix(M5): Add stop level validation to prevent infinite BE retry loops darashikoh 2026-03-03 11:16:01 +00:00
  • 428fd88c60 feat(M5): Implement v2.1 config enforcement and graduated stops in M5 contrarian mode darashikoh 2026-03-02 17:08:42 +00:00
  • d0c861b744 feat(ERMT PME v2.1): Add optional bar-counting entry system for backtesting darashikoh 2026-02-01 11:52:53 +00:00
  • 5a3b8a13fd Based on the work we just completed on the contrarian M5 optimization, here's an appropriate commit message: darashikoh 2026-02-01 11:24:52 +00:00
  • 6aa699022d feat: ERMT PME v2.1 - Contrarian Entry Optimization with Graduated Protection Basma Qazi Chaudhry 2026-01-31 14:02:30 +00:00
  • 2b23261c88 darashikoh 2026-01-31 12:29:07 +00:00
  • f5de41d739 Fix v1.3 partial closures integration and streamline dashboard darashikoh 2025-12-04 12:00:09 +00:00
  • 51b8b942b1 feat: Implement ERMT PME v1.3 - Complete Three-Solution Optimization darashikoh 2025-12-03 15:22:48 +00:00
  • cea5a4e393 ERMT 1.2-> 1.3: Solution 1: Phase locks guarantee minimum profit for highest phase achieved. Adaptive trailing manages dynamic protection above that floor. Partial closures realize profits progressively. Together, they work in harmony instead of conflict. darashikoh 2025-12-03 13:57:36 +00:00
  • 0181be03c9 darashikoh 2025-11-19 11:20:38 +00:00
  • 300ca310db Refactor code structure for improved readability and maintainability; removed redundant code blocks and optimized functions. darashikoh 2025-11-18 10:37:19 +00:00
  • 945312b13e Add new optimization profiles for ERMT_7.1_ERMT-ML on EURUSD M5 darashikoh 2025-11-13 07:52:49 +00:00
  • efd4c0e156 Analysis: Let me chronologically analyze this conversation to capture all technical details, code patterns, and architectural decisions. darashikoh 2025-11-11 17:23:18 +00:00
  • d1349ddad8 Finished ERmt_7.1_ML debug and initialisation Created mql5 project knowledge darashikoh 2025-10-29 13:34:40 +00:00
  • 14165aac8c ERMT 7.1 (ERMT‑ML): add Entry‑Only mode, harden compilation on macOS/Wine, fix datatype order, and clean includes darashikoh 2025-10-28 23:35:47 +00:00
  • d12bddd4df High-level summary TechnicalAnalysis_PME_Fixed.mqh (call it "Fixed") is oriented toward robust ATR handling and keeps indicator handles as class members with create/release helpers. It contains fallback logic for ATR creation and a manual ATR calculation if indicator creation fails. TechnicalAnalysis_PME_Optimised.mqh (call it "Optimised") provides a richer set of analysis methods (advanced exit checks, divergence, ADX trend strength, MACD retrieval, volatility ratio) and more conservative/confirmed exit logic. It is more feature-rich for exit decision-making but uses simpler ATR handling (no manual fallback) and often creates temporary indicator handles in getters. File / header differences Fixed header: "Fixed Version with Proper ATR Handling". Optimised header: "Optimized Technical Analysis for PME (v1.1) — [FIXED: Premature Exit Signals]". Optimised defines a local enum ENUM_SIGNAL_TYPE (includes SIGNAL_EXIT); Fixed relies on similar enums but the file you provided doesn't show a local definition for ENUM_SIGNAL_TYPE — the Fixed class uses ENUM_SIGNAL_TYPE and ENUM_MARKET_CONDITION in its API (assumed defined in included headers). Class design and indicator handle management Fixed: Class members: m_atr_handle, m_ma_handle, m_rsi_handle, m_sar_handle, m_macd_handle, m_bb_handle. Has CreateIndicators() and ReleaseIndicators() helper methods to create and clean up member indicator handles. Initialize() calls CreateIndicators() and returns true (even if some indicators fail). It logs warnings and does not fail initialization on missing indicators. GetATR prefers the member m_atr_handle when symbol == _Symbol, otherwise creates a temporary handle; if indicators fail, it contains a manual ATR calculation fallback (averaging TR). Optimised: Class members: same set, initialized in Initialize, released in destructor. Initialize() creates the indicators directly (no separate CreateIndicators function). It returns success boolean only if essential indicators were created (checks m_atr_handle, m_ma_handle, m_rsi_handle). GetATR creates a temporary handle every time (iATR(symbol,...)), copies the buffer and releases the handle — no manual ATR fallback. Destructor explicitly releases any member indicator handles. Implication: Fixed is more defensive about indicator creation and provides fallback ATR computation for resilience on limited indicator support or resource errors. Optimised is simpler/leaner but will return 0 if ATR creation fails (no manual fallback). darashikoh 2025-10-28 13:59:12 +00:00
  • 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 darashikoh 2025-10-28 10:47:19 +00:00
  • 9f9dc62d16 Phase Management Integration - Complete Documentation Overview The ERMT_PME EA now has a fully integrated phase-based profit management system that adapts position management strategies based on profit levels. The system is modular and follows MQL5 best practices. Modular Architecture ERMT_PME_1.1.mq5 (Main EA) ├── DataTypes_PME.mqh (Base structures & enums) ├── Utilities_PME.mqh (Logging & utilities) ├── RiskManager_PME.mqh (Risk management) ├── TechnicalAnalysis_PME_Optimised.mqh (Market analysis) ├── PositionManager_PME_Complete.mqh (Position management) └── ProfitMaximizer_PME.mqh (Phase-based profit optimization) ← NEW Phase System Definition The system uses 6 distinct profit phases defined in ProfitMaximizer_PME.mqh:49-57: enum ENUM_PROFIT_PHASE { PHASE_INITIAL, // 0 - Early position development PHASE_PROTECTION, // 1 - Basic protection phase (40+ points) PHASE_ACCUMULATION, // 2 - Profit building phase (60+ points) PHASE_MAXIMIZATION, // 3 - Adv darashikoh 2025-10-27 23:36:10 +00:00
  • 41ef4f9808 Integrate Phase-Based Profit Maximization into ERMT_PME_1.0 >1.1 - Debug complete darashikoh 2025-10-27 23:16:57 +00:00
  • fe3ef20878 Integrate Phase-Based Profit Maximization into ERMT_PME_1.0 darashikoh 2025-10-27 20:24:20 +00:00
  • d1f4e8650f Profit maximisation update darashikoh 2025-10-27 18:54:25 +00:00
  • 07813ab51c ERMT_PME 1.0 and 2.0 to run simultaneously via updated Utlities_PME.mqh and creating instances PME1 and PME2. darashikoh 2025-10-09 12:09:59 +01:00
  • d26f4b72d3 ERMT_PME_2.0 Optimisation for M5 contrarian - Removed hardcoded disaster stop and made it configurable as contrarian signals were getting stopped out early darashikoh 2025-10-09 09:53:03 +01:00
  • f056e779bd darashikoh 2025-10-06 14:47:18 +01:00
  • 9e01e715b3 ERMT_PME 2.0 Optimised for Contrarian Profit Max - Debugged darashikoh 2025-10-06 14:46:38 +01:00
  • 5c73ff6fc6 ERMT_PME 2.0 - Optimised Profit Maximisation for Contrarian M5/M7/M9 darashikoh 2025-10-06 12:16:00 +01:00
  • cddf8b5a4c darashikoh 2025-10-03 10:03:10 +01:00
  • c2626acdfa darashikoh 2025-09-29 12:27:03 +01:00
  • 6e35c52728 darashikoh 2025-09-29 12:26:45 +01:00
  • 017ce2ff6e ERMT_PME - fully compiled darashikoh 2025-09-29 12:26:22 +01:00
  • 6bee286b93 main darashikoh 2025-09-23 11:34:40 +01:00
  • 0c08a0963b Delete experts (2).dat darashikoh 2025-09-23 10:29:07 +00:00
  • c9fe7020b8 Delete experts (1).dat darashikoh 2025-09-23 10:29:00 +00:00
  • 876c45ee28 Delete Profiles/Charts/Default/chart01.chr darashikoh 2025-09-23 09:26:46 +00:00
  • 35a84d589d Delete experts.dat darashikoh 2025-09-22 19:16:54 +00:00
  • 9492f99906 Delete experts (2).dat darashikoh 2025-09-22 19:16:48 +00:00
  • dfb8fbc376 Delete experts (1).dat darashikoh 2025-09-22 19:16:43 +00:00
  • 6a5877927f ERMT PME v1.0 - Quick Fix Guide Fixed Compilation Errors Error 1: Mismatched #ifdef/#endif pair in RiskManager_PME.mqh Problem: Missing closing #endif and required includes Solution: Created RiskManager_PME_Fixed.mqh with: darashikoh 2025-09-22 15:09:42 +01:00
  • 33f9bb20eb New ERMT: darashikoh 2025-09-22 13:24:18 +01:00
  • e3a22f4a97 darashikoh 2025-09-22 12:39:17 +01:00
  • 1ed8cf3d51 darashikoh 2025-09-22 12:39:05 +01:00
  • 848116acb9 Moved all previous ERMTs, with internal and limited external trade opening and management, to 'Previous' Folder darashikoh 2025-09-22 12:38:24 +01:00
  • ee2f97a700 darashikoh 2025-09-05 18:18:59 +01:00
  • f388e35a62 ERMT_6.8 - attempt to define dashboard darashikoh 2025-09-05 18:17:25 +01:00
  • 2866994557 Merge commit from 'origin' darashikoh 2025-09-05 10:15:01 +01:00
  • a3154f398c ExternalTradeManager.mqh - FINAL VERSION (just fixed) ERMT_7x darashikoh 2025-09-04 16:10:10 +00:00
  • 6f8c06a4d4 Dashboard colour as input darashikoh 2025-08-28 12:15:26 +01:00
  • 74a75d3681 revert 06e7431edc darashikoh 2025-09-02 09:20:47 +00:00
  • 443ce2d4f2 ERMT_6.9 Compilaton Errors part 1 - complete ERMT_6.9x darashikoh 2025-09-01 16:55:52 +01:00
  • bdca805d54 Two ERMTs, 6.8 original with 6.9 Dual Dash darashikoh 2025-08-29 19:26:00 +01:00
  • fd4ce1a083 EntrySystem v3.0 - Optimized & Future-Proofed I've completely rebuilt the EntrySystem with the following improvements: Architecture Enhancements: darashikoh 2025-08-29 12:50:38 +01:00
  • 6c32c0bae3 Both dashboards running simultaneously Original dashboard on left (X=20) New self-contained dashboard on right (X=350) Complete trading logic preserved darashikoh 2025-08-29 12:47:50 +01:00
  • 722baf8db9 Complete ERMT 6.9_DD with Dual Dashboard Support I've created the complete ERMT 6.9 system with both dashboards fully integrated for side-by-side testing: What's Included: darashikoh 2025-08-29 11:26:14 +01:00
  • 06e7431edc Dashboard colour as input darashikoh 2025-08-28 12:15:26 +01:00
  • 1b2b21dc59 ExternalTradeManager.mqh - FINAL VERSION (just fixed) The version I just provided fixes ALL the compilation errors: darashikoh 2025-08-27 21:53:01 +01:00
  • a2ae9dd5b6 Main Changes: darashikoh 2025-08-27 19:51:34 +01:00
  • a673c29a5a 1. TechnicalAnalysis.mqh - Complete Technical Analysis Module Key Features: darashikoh 2025-08-27 17:49:01 +01:00
  • 17bacd0374 1. Complete RiskManager.mqh A fully featured risk management module including: darashikoh 2025-08-27 16:59:00 +01:00
  • 63fab7676b The complete Utilities.mqh now includes all the missing implementations: darashikoh 2025-08-27 16:22:33 +01:00
  • 0404c71a35 3. Utilities.mqh - Remove Duplicates & Add Missing Members darashikoh 2025-08-27 15:53:29 +01:00
  • 493d01fe6d 2. ExternalTradeManager.mqh - Remove Duplicate Enum darashikoh 2025-08-27 15:49:38 +01:00
  • 2df3d42041 DataTypes.mqh - Complete Enums and Structures darashikoh 2025-08-27 15:48:27 +01:00
  • 0fb1bd1b0a Module Integration Summary for External Trade Management Overview To fully integrate the enhanced external trade management system, updates are required to 5 out of 7 existing modules. The updates maintain backward compatibility while adding new functionality for external trade handling. Module Update Requirements 🟢 No Updates Required (2 modules) darashikoh 2025-08-27 14:21:02 +01:00
  • 158a4f2d51 Key Improvements Made: 1. Proper Module Encapsulation * All risk management functions are now properly encapsulated within the CRiskManager class * Functions like ValidateAndAdjustRisk, CalculateTradeRisk, and NormalizeLotSize are now class methods 2. Consistent Method Calls * All risk management operations use the (*RiskMgr).MethodName() pattern * No more mixed standalone functions and class methods 3. Enhanced Risk Manager Features * Kelly Criterion implementation for optimal position sizing * Daily drawdown tracking and limits * Market condition-based risk adjustment * Performance metrics tracking for adaptive risk management 4. Fixed Compilation Issues * Resolved all function call errors * Added copy constructor to EntrySignal to fix deprecation warning * Proper parameter passing between modules Benefits of This Architecture: 1. Maintainability: All risk logic is in one place - the RiskManager module 2. Testability: Each module can be tested i darashikoh 2025-08-22 17:47:03 +01:00
  • 3f34c8cde5 new files added darashikoh 2025-08-22 17:46:10 +01:00
  • 4951f74957 Recompile and re-debug of ERMT_6.6; the last functional EA for external management darashikoh 2025-08-20 12:53:47 +01:00
  • 5dce04606c new files added darashikoh 2025-08-20 10:52:10 +01:00
  • 050880d47e Merge commit from 'origin' darashikoh 2025-08-19 18:36:58 +01:00
  • 8b1ff58567 Commit from local main repo as cannot checkout due to some unsaved version - which ones is unclear darashikoh 2025-08-19 18:36:26 +01:00
  • ad5ddad485 Merge pull request 'WIP-ERMT-Recovery of lost files - 18082025' (#1) from ERMT-ML into main darashikoh 2025-08-19 17:28:48 +00:00
  • a559f7ae04 Update Experts/Advisors/ERMT_7.1_ERMT-ML.mq5 darashikoh 2025-08-19 17:16:43 +00:00
  • 7caa89db31 Update Experts/Advisors/ERMT_7.1_main.mq5 darashikoh 2025-08-19 17:16:02 +00:00
  • ff69c0f3ad darashikoh 2025-08-15 23:05:57 +01:00
  • 19493874a2 darashikoh 2025-08-15 14:56:24 +01:00
  • 9c05f130ea new files added darashikoh 2025-08-15 14:53:55 +01:00
  • 4e7d1b3bb6 darashikoh 2025-08-15 13:14:24 +01:00