From e21ca01ceb3357693d6b1f707f594130d659d1af Mon Sep 17 00:00:00 2001 From: Hadi Khazaee Asl Date: Thu, 5 Feb 2026 00:53:11 +0330 Subject: [PATCH] last ... --- ...saherelm.x121.xki.x-poi.detector.class.mq5 | 62 +++++++++++++++++++ X121XKIEA/Libraries/.gitkeep | 0 2 files changed, 62 insertions(+) delete mode 100644 X121XKIEA/Libraries/.gitkeep diff --git a/X121XKIEA/Classes/x-saherelm.x121.xki.x-poi.detector.class.mq5 b/X121XKIEA/Classes/x-saherelm.x121.xki.x-poi.detector.class.mq5 index 97163aa9..34c9da77 100644 --- a/X121XKIEA/Classes/x-saherelm.x121.xki.x-poi.detector.class.mq5 +++ b/X121XKIEA/Classes/x-saherelm.x121.xki.x-poi.detector.class.mq5 @@ -78,6 +78,68 @@ class XCX121XKIPOIDetector : public XCMarketPatternDetector // Actions and Tools ... // #region Zone Detectors ... + int DetectDemands( + XBoxZone &zones[], + int barIndex, + string forSymbol = NULL, + ENUM_TIMEFRAMES forPeriod = NULL, + int loopback = 50, + int confluence = 1, + int confluenceLoopback = 50 // + ) + { + // + int result = 0; + + // + XClean(zones); + + // + // Normalize ... + + // + if (barIndex < 0) + { + barIndex = 0; + } + + // + if (!IsXValid(forSymbol)) + { + forSymbol = symbol; + } + + // + if (!IsXValid(forPeriod)) + { + forPeriod = period; + } + + // + if (loopback < 2) + { + loopback = 2; + } + + // + if (confluence < 0) + { + confluence = 0; + } + + // + if (confluenceLoopback < 0) + { + confluenceLoopback = 0; + } + + // + result = ArraySize(zones); + + // + return result; + } + int DetectSupports( XBoxZone &zones[], int barIndex, diff --git a/X121XKIEA/Libraries/.gitkeep b/X121XKIEA/Libraries/.gitkeep deleted file mode 100644 index e69de29b..00000000