fix pull backs ...

This commit is contained in:
2025-03-17 20:51:26 +03:30
parent 35f11f3b5c
commit b8eaf9ffa8
+2 -12
View File
@@ -1970,20 +1970,10 @@ class XCPOIDetector : public XCBaseAlert
box.from = fromBar.time; box.from = fromBar.time;
box.symbol = fromBar.symbol; box.symbol = fromBar.symbol;
box.period = fromBar.period; 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.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(); result = box.IsValid();
if (result) if (result)