last ...
This commit is contained in:
@@ -359,6 +359,14 @@ bool HasXPVConditions(
|
||||
double cSMHKMin = MathMin(cSMHKOpen, cSMHKClose);
|
||||
double cSMHKMax = MathMax(cSMHKOpen, cSMHKClose);
|
||||
|
||||
//
|
||||
double pSMHKOpen = cXConditions.xhkSMOpenBuffer[pIDX];
|
||||
double pSMHKHigh = cXConditions.xhkSMHighBuffer[pIDX];
|
||||
double pSMHKClose = cXConditions.xhkSMCloseBuffer[pIDX];
|
||||
double pSMHKLow = cXConditions.xhkSMLowBuffer[pIDX];
|
||||
double pSMHKMin = MathMin(pSMHKOpen, pSMHKClose);
|
||||
double pSMHKMax = MathMax(pSMHKOpen, pSMHKClose);
|
||||
|
||||
//
|
||||
double atrUpperSM = cXConditions.atrUpperSMBuffer[cIDX];
|
||||
double atrLowerSM = cXConditions.atrLowerSMBuffer[cIDX];
|
||||
@@ -419,20 +427,20 @@ bool HasXPVConditions(
|
||||
// XHK ...
|
||||
|
||||
//
|
||||
bool isCBarClosedOverSMHK =
|
||||
bool isPBarClosedOverSMHK =
|
||||
//
|
||||
cBar.IsBullish() &&
|
||||
cBar.GetUp() > cSMHKMax &&
|
||||
cBar.GetDown() < cSMHKMin
|
||||
pBar.IsBullish() &&
|
||||
pBar.GetUp() > pSMHKMax &&
|
||||
pBar.GetDown() < pSMHKMin
|
||||
//
|
||||
;
|
||||
|
||||
//
|
||||
bool isCBarClosedUnderSMHK =
|
||||
bool isPBarClosedUnderSMHK =
|
||||
//
|
||||
cBar.IsBearish() &&
|
||||
cBar.GetUp() > cSMHKMax &&
|
||||
cBar.GetDown() < cSMHKMin
|
||||
pBar.IsBearish() &&
|
||||
pBar.GetUp() > pSMHKMax &&
|
||||
pBar.GetDown() < pSMHKMin
|
||||
//
|
||||
;
|
||||
|
||||
@@ -447,7 +455,7 @@ bool HasXPVConditions(
|
||||
isBullish =
|
||||
//
|
||||
// false
|
||||
isCBarClosedOverSMHK
|
||||
isPBarClosedOverSMHK
|
||||
//
|
||||
;
|
||||
|
||||
@@ -455,7 +463,7 @@ bool HasXPVConditions(
|
||||
isBearish =
|
||||
//
|
||||
// false
|
||||
isCBarClosedUnderSMHK
|
||||
isPBarClosedUnderSMHK
|
||||
//
|
||||
;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user