From b8eaf9ffa874d5da9ad0609790b271d263b30db1 Mon Sep 17 00:00:00 2001 From: Hadi Khazaee Asl Date: Mon, 17 Mar 2025 20:51:26 +0330 Subject: [PATCH] fix pull backs ... --- Classes/x-saherelm.x-poi.class.mq5 | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/Classes/x-saherelm.x-poi.class.mq5 b/Classes/x-saherelm.x-poi.class.mq5 index 701d6f9c..c9a79133 100644 --- a/Classes/x-saherelm.x-poi.class.mq5 +++ b/Classes/x-saherelm.x-poi.class.mq5 @@ -1970,20 +1970,10 @@ class XCPOIDetector : public XCBaseAlert box.from = fromBar.time; box.symbol = fromBar.symbol; box.period = fromBar.period; + box.lower = MathMin(sBar.low, fromBar.low); + box.upper = MathMax(sBar.high, fromBar.high); box.type = ToString(iDir) + "_XPullBK" + box.symbol + "_" + ToString(box.period); - // - box.upper = - isBullish - ? sBar.high - : fromBar.high; - - // - box.lower = - isBullish - ? fromBar.low - : sBar.low; - // result = box.IsValid(); if (result)