This commit is contained in:
2025-03-09 10:13:19 +03:30
parent a81c09e2a5
commit 202ae585dd
4 changed files with 217 additions and 50 deletions
@@ -42,6 +42,7 @@ class XCX121SMCStrategy : public XCX121SMCBaseStrategy
//
// Props ...
bool useXWZSignal;
bool useXWZSignalGuard;
XCX121SMCXWZSignalDetector *mXWZSignalDetector;
X121SMCStrategySignalProviderData cycleProvider;
@@ -414,7 +415,8 @@ class XCX121SMCStrategy : public XCX121SMCBaseStrategy
//
// XWZ Guard Detection ...
if (useXWZSignal)
if (useXWZSignal &&
useXWZSignalGuard)
{
//
X121SMCGuard xwzGuards[];
@@ -690,6 +692,7 @@ class XCX121SMCStrategy : public XCX121SMCBaseStrategy
{
//
useXWZSignal = true;
useXWZSignalGuard = false;
//
string symbol = GetSymbol();
@@ -788,7 +791,7 @@ class XCX121SMCStrategy : public XCX121SMCBaseStrategy
//
// XPV ...
x121Inputs.xpvInputs.showSar = showAll || true;
x121Inputs.xpvInputs.showSar = showAll || false;
x121Inputs.xpvInputs.showPeaks = showAll || true;
x121Inputs.xpvInputs.showVales = showAll || true;
x121Inputs.xpvInputs.showGoldenZones = showAll || true;
@@ -797,8 +800,8 @@ class XCX121SMCStrategy : public XCX121SMCBaseStrategy
// XHK ...
//
x121Inputs.xhkInputs.drawRawXHKCandles = showAll || true;
x121Inputs.xhkInputs.drawSmoothedXHKCandles = showAll || true;
x121Inputs.xhkInputs.drawRawXHKCandles = showAll || false;
x121Inputs.xhkInputs.drawSmoothedXHKCandles = showAll || false;
//
// XATR ...
@@ -813,10 +816,10 @@ class XCX121SMCStrategy : public XCX121SMCBaseStrategy
//
// XCHE ...
x121Inputs.xcheInputs.showLE1 = showAll || true;
x121Inputs.xcheInputs.showLE2 = showAll || true;
x121Inputs.xcheInputs.showSE1 = showAll || true;
x121Inputs.xcheInputs.showSE2 = showAll || true;
x121Inputs.xcheInputs.showLE1 = showAll || false;
x121Inputs.xcheInputs.showLE2 = showAll || false;
x121Inputs.xcheInputs.showSE1 = showAll || false;
x121Inputs.xcheInputs.showSE2 = showAll || false;
//
// XDON ...