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)