This commit is contained in:
2025-04-01 18:31:22 +03:30
parent 43a585ba85
commit de572620c1
2 changed files with 33 additions and 25 deletions
+18 -10
View File
@@ -359,6 +359,14 @@ bool HasXPVConditions(
double cSMHKMin = MathMin(cSMHKOpen, cSMHKClose); double cSMHKMin = MathMin(cSMHKOpen, cSMHKClose);
double cSMHKMax = MathMax(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 atrUpperSM = cXConditions.atrUpperSMBuffer[cIDX];
double atrLowerSM = cXConditions.atrLowerSMBuffer[cIDX]; double atrLowerSM = cXConditions.atrLowerSMBuffer[cIDX];
@@ -419,20 +427,20 @@ bool HasXPVConditions(
// XHK ... // XHK ...
// //
bool isCBarClosedOverSMHK = bool isPBarClosedOverSMHK =
// //
cBar.IsBullish() && pBar.IsBullish() &&
cBar.GetUp() > cSMHKMax && pBar.GetUp() > pSMHKMax &&
cBar.GetDown() < cSMHKMin pBar.GetDown() < pSMHKMin
// //
; ;
// //
bool isCBarClosedUnderSMHK = bool isPBarClosedUnderSMHK =
// //
cBar.IsBearish() && pBar.IsBearish() &&
cBar.GetUp() > cSMHKMax && pBar.GetUp() > pSMHKMax &&
cBar.GetDown() < cSMHKMin pBar.GetDown() < pSMHKMin
// //
; ;
@@ -447,7 +455,7 @@ bool HasXPVConditions(
isBullish = isBullish =
// //
// false // false
isCBarClosedOverSMHK isPBarClosedOverSMHK
// //
; ;
@@ -455,7 +463,7 @@ bool HasXPVConditions(
isBearish = isBearish =
// //
// false // false
isCBarClosedUnderSMHK isPBarClosedUnderSMHK
// //
; ;
+15 -15
View File
@@ -996,9 +996,9 @@ class XCX121SMCStrategy : public XCX121SMCBaseStrategy
// //
// Presentations ... // Presentations ...
x121Inputs.xpvInputs.showSar = showAll || false; x121Inputs.xpvInputs.showSar = showAll || true;
x121Inputs.xpvInputs.showPeaks = showAll || false; x121Inputs.xpvInputs.showPeaks = showAll || true;
x121Inputs.xpvInputs.showVales = showAll || false; x121Inputs.xpvInputs.showVales = showAll || true;
x121Inputs.xpvInputs.showSupports = showAll || false; x121Inputs.xpvInputs.showSupports = showAll || false;
x121Inputs.xpvInputs.showGoldenZones = showAll || false; x121Inputs.xpvInputs.showGoldenZones = showAll || false;
x121Inputs.xpvInputs.showResistances = showAll || false; x121Inputs.xpvInputs.showResistances = showAll || false;
@@ -1050,10 +1050,10 @@ class XCX121SMCStrategy : public XCX121SMCBaseStrategy
x121Inputs.xatrInputs.showAtrLower = showAll || false; x121Inputs.xatrInputs.showAtrLower = showAll || false;
x121Inputs.xatrInputs.showRSIChange = showAll || false; x121Inputs.xatrInputs.showRSIChange = showAll || false;
x121Inputs.xatrInputs.showPriceChange = showAll || false; x121Inputs.xatrInputs.showPriceChange = showAll || false;
x121Inputs.xatrInputs.showSmoothedAtrUpper = showAll || false; x121Inputs.xatrInputs.showSmoothedAtrUpper = showAll || true;
x121Inputs.xatrInputs.showSmoothedAtrLower = showAll || false; x121Inputs.xatrInputs.showSmoothedAtrLower = showAll || true;
x121Inputs.xatrInputs.showSmoothedRSIChange = showAll || false; x121Inputs.xatrInputs.showSmoothedRSIChange = showAll || true;
x121Inputs.xatrInputs.showSmoothedPriceChange = showAll || false; x121Inputs.xatrInputs.showSmoothedPriceChange = showAll || true;
// //
// XSTR ... // XSTR ...
@@ -1064,7 +1064,7 @@ class XCX121SMCStrategy : public XCX121SMCBaseStrategy
// //
// Presentations ... // Presentations ...
x121Inputs.xstrInputs.showStr = showAll || false; x121Inputs.xstrInputs.showStr = showAll || true;
x121Inputs.xstrInputs.showStrUpper = showAll || false; x121Inputs.xstrInputs.showStrUpper = showAll || false;
x121Inputs.xstrInputs.showStrLower = showAll || false; x121Inputs.xstrInputs.showStrLower = showAll || false;
@@ -1076,10 +1076,10 @@ class XCX121SMCStrategy : public XCX121SMCBaseStrategy
// //
// Presentations ... // Presentations ...
x121Inputs.xcheInputs.showLE1 = showAll || false; x121Inputs.xcheInputs.showLE1 = showAll || true;
x121Inputs.xcheInputs.showSE1 = showAll || false; x121Inputs.xcheInputs.showSE1 = showAll || true;
x121Inputs.xcheInputs.showLE2 = showAll || false; x121Inputs.xcheInputs.showLE2 = showAll || true;
x121Inputs.xcheInputs.showSE2 = showAll || false; x121Inputs.xcheInputs.showSE2 = showAll || true;
// //
// X3MA ... // X3MA ...
@@ -1109,9 +1109,9 @@ class XCX121SMCStrategy : public XCX121SMCBaseStrategy
// //
// Presentations ... // Presentations ...
x121Inputs.xvwapInputs.showVWapFast = showAll || false; x121Inputs.xvwapInputs.showVWapFast = showAll || true;
x121Inputs.xvwapInputs.showVWapSlow = showAll || false; x121Inputs.xvwapInputs.showVWapSlow = showAll || true;
x121Inputs.xvwapInputs.showVWapMedium = showAll || false; x121Inputs.xvwapInputs.showVWapMedium = showAll || true;
// //
// //