fix pull backs ...
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user