cleanup x121 helper, apply all cleanup and buffers and conditions on helpers and try to complete x121 new helper ...

This commit is contained in:
2025-03-31 07:04:12 +03:30
parent 7619129c26
commit 53ad7b092a
28 changed files with 14572 additions and 6548 deletions
File diff suppressed because it is too large Load Diff
+5 -40
View File
@@ -1938,14 +1938,7 @@ struct X121SMCStrategyXWZWorkingZone
if (useSenario1)
{
//
isSenario1Happend = cParser.HasRejectedBoxConditions(
X_CYCLE_DECISION,
box,
dir,
waitingBoxes,
provider,
barIndex //
);
isSenario1Happend = false;
//
isSenario1Bullish =
@@ -1977,14 +1970,7 @@ struct X121SMCStrategyXWZWorkingZone
useSenario2)
{
//
isSenario2Happend = cParser.HasActivatedBoxConditions(
X_CYCLE_DECISION,
box,
dir,
waitingBoxes,
provider,
barIndex //
);
isSenario2Happend = false;
//
isSenario2Bullish =
@@ -2017,14 +2003,7 @@ struct X121SMCStrategyXWZWorkingZone
useSenario3)
{
//
isSenario3Happend = cParser.HasBreakedBoxConditions(
X_CYCLE_DECISION,
box,
dir,
breakedBoxes,
provider,
barIndex //
);
isSenario3Happend = false;
//
isSenario3Bullish =
@@ -2058,14 +2037,7 @@ struct X121SMCStrategyXWZWorkingZone
useSenario4)
{
//
isSenario4Happend = cParser.HasXFVGMAConditions(
X_CYCLE_DECISION,
box,
dir,
waitingBoxes,
provider,
barIndex //
);
isSenario4Happend = false;
//
isSenario4Bullish =
@@ -2100,14 +2072,7 @@ struct X121SMCStrategyXWZWorkingZone
useSenario5)
{
//
isSenario5Happend = cParser.HasXWPVZConditions(
X_CYCLE_DECISION,
X_CYCLE_CONSOLIDATION,
box,
dir,
provider,
barIndex //
);
isSenario5Happend = false;
//
isSenario5Bullish =
+84 -88
View File
@@ -934,6 +934,10 @@ class XCX121SMCStrategy : public XCX121SMCBaseStrategy
mMaxAllowedRequiredPOIs = 0;
}
//
X121Inputs x121Inputs;
x121Inputs.Default();
//
// Short ...
ENUM_X_PERIOD_METHOD scMethod = X_PERIOD_AUTO; // How to Find Period
@@ -954,20 +958,30 @@ class XCX121SMCStrategy : public XCX121SMCBaseStrategy
ENUM_X_PERIOD_METHOD hcMethod = X_PERIOD_AUTO; // How to Find Period
ENUM_TIMEFRAMES hcPeriod = NULL; // Time Period
//
// XPV ...
X121Inputs x121Inputs;
//
x121Inputs.Default();
//
bool showAll = false;
//
x121Inputs.showRSI = showAll || true;
//
//
//
//
// XCC ...
//
// Configurations ...
//
// Presentations ...
//
// XPV ...
//
// Configurations ...
x121Inputs.xpvInputs.scMethod = scMethod;
x121Inputs.xpvInputs.scPeriod = scPeriod;
x121Inputs.xpvInputs.mcMethod = mcMethod;
@@ -976,127 +990,109 @@ class XCX121SMCStrategy : public XCX121SMCBaseStrategy
x121Inputs.xpvInputs.lcPeriod = lcPeriod;
x121Inputs.xpvInputs.hcMethod = hcMethod;
x121Inputs.xpvInputs.hcPeriod = hcPeriod;
//
x121Inputs.xhkInputs.xhkIgnoreSmoothingShadows = true;
//
x121Inputs.xatrInputs.atrMultiplier = 1.5;
x121Inputs.xatrInputs.atrSmoothingMode = X_MA_MODE_EMA;
x121Inputs.xpvInputs.goldenZoneLevel = X_FIBO_LEVEL_236;
//
x121Inputs.xvwapInputs.vwapFastLength = 20;
x121Inputs.xvwapInputs.vwapMidLength = 50;
x121Inputs.xvwapInputs.vwapSlowLength = 200;
//
x121Inputs.x3maInputs.x3maFastMALength = 20;
x121Inputs.x3maInputs.x3maMidMALength = 50;
x121Inputs.x3maInputs.x3maSlowMALength = 200;
//
x121Inputs.xichInputs.shiftKumo = true;
//
x121Inputs.showRSI = showAll || true;
//
// x121Inputs.xcheInputs.cheLength = 14;
// x121Inputs.xcheInputs.cheLoopback = 7;
// x121Inputs.xcheInputs.cheMultiplier1 = 1.5;
// x121Inputs.xcheInputs.cheMultiplier2 = 2;
//
// x121Inputs.xstrInputs.strLength = 14;
// x121Inputs.xstrInputs.strMultiplier = 1.5;
//
// x121Inputs.xccInputs.upColor = clrLime;
// x121Inputs.xccInputs.downColor = clrRed;
// x121Inputs.xccInputs.lineColor = CLR_NONE;
// x121Inputs.xccInputs.bearishColor = clrRed;
// x121Inputs.xccInputs.bullishColor = clrLime;
// x121Inputs.xccInputs.volumesColor = clrGreen;
//
//
//
//
// XCC ...
x121Inputs.xccInputs.showCandles = showAll || true;
//
// XPV ...
x121Inputs.xpvInputs.showSar = showAll || false;
// Presentations ...
x121Inputs.xpvInputs.showSar = showAll || true;
x121Inputs.xpvInputs.showPeaks = showAll || true;
x121Inputs.xpvInputs.showVales = showAll || true;
x121Inputs.xpvInputs.showSupports = showAll || false;
x121Inputs.xpvInputs.showResistances = showAll || false;
x121Inputs.xpvInputs.showGoldenZones = showAll || true;
x121Inputs.xpvInputs.showResistances = showAll || false;
//
// XHK ...
//
x121Inputs.xhkInputs.drawRawXHKCandles = showAll || false;
x121Inputs.xhkInputs.drawSmoothedXHKCandles = showAll || false;
// Configurations ...
x121Inputs.xhkInputs.xhkIgnoreSmoothingShadows = true;
//
// Presentations ...
x121Inputs.xhkInputs.drawRawXHKCandles = showAll || true;
x121Inputs.xhkInputs.drawSmoothedXHKCandles = showAll || true;
//
// XMAS ...
//
x121Inputs.xmasInputs.showUpper = showAll || false;
x121Inputs.xmasInputs.showMid = showAll || false;
x121Inputs.xmasInputs.showLower = showAll || false;
// Configurations ...
//
// Presentations ...
x121Inputs.xmasInputs.showMid = showAll || true;
x121Inputs.xmasInputs.showUpper = showAll || true;
x121Inputs.xmasInputs.showLower = showAll || true;
//
// XATR ...
x121Inputs.xatrInputs.showATRUpper = showAll || false;
x121Inputs.xatrInputs.showATRLower = showAll || false;
//
// Configurations ...
//
// Presentations ...
x121Inputs.xatrInputs.showAtrUpper = showAll || false;
x121Inputs.xatrInputs.showAtrLower = showAll || false;
x121Inputs.xatrInputs.showRSIChange = showAll || false;
x121Inputs.xatrInputs.showPriceChange = showAll || false;
x121Inputs.xatrInputs.showSmoothedAtrUpper = showAll || true;
x121Inputs.xatrInputs.showSmoothedAtrLower = showAll || true;
x121Inputs.xatrInputs.showSmoothedRSIChange = showAll || true;
x121Inputs.xatrInputs.showSmoothedPriceChange = showAll || true;
//
// XSTR ...
//
// Configurations ...
//
// Presentations ...
x121Inputs.xstrInputs.showStr = showAll || true;
x121Inputs.xstrInputs.showStrUpper = showAll || false;
x121Inputs.xstrInputs.showStrLower = showAll || false;
//
// XCHE ...
//
// Configurations ...
//
// Presentations ...
x121Inputs.xcheInputs.showLE1 = showAll || false;
x121Inputs.xcheInputs.showLE2 = showAll || false;
x121Inputs.xcheInputs.showSE1 = showAll || false;
x121Inputs.xcheInputs.showLE2 = showAll || false;
x121Inputs.xcheInputs.showSE2 = showAll || false;
//
// XDON ...
x121Inputs.xdonInputs.showOpen = showAll || false;
x121Inputs.xdonInputs.showClose = showAll || false;
x121Inputs.xdonInputs.showLow = showAll || false;
x121Inputs.xdonInputs.showHigh = showAll || false;
//
// XVWAP ...
x121Inputs.xvwapInputs.showVWapFast = showAll || false;
x121Inputs.xvwapInputs.showVWapMedium = showAll || false;
x121Inputs.xvwapInputs.showVWapSlow = showAll || false;
//
// X3MA ...
x121Inputs.x3maInputs.showX3MaFast = showAll || true;
//
// Configurations ...
//
// Presentations ...
x121Inputs.x3maInputs.showX3MaMid = showAll || false;
x121Inputs.x3maInputs.showX3MaFast = showAll || false;
x121Inputs.x3maInputs.showX3MaSlow = showAll || false;
//
// XICH ...
x121Inputs.xichInputs.showTenkanSen = showAll || false;
x121Inputs.xichInputs.showKijunSen = showAll || false;
x121Inputs.xichInputs.showChikouSpan = showAll || false;
x121Inputs.xichInputs.showSenkouSpanA = showAll || false;
x121Inputs.xichInputs.showSenkouSpanB = showAll || false;
x121Inputs.xichInputs.showKumo = showAll || false;
// XVWAP ...
//
// Configurations ...
//
// Presentations ...
x121Inputs.xvwapInputs.showVWapFast = showAll || false;
x121Inputs.xvwapInputs.showVWapSlow = showAll || false;
x121Inputs.xvwapInputs.showVWapMedium = showAll || false;
//
//
//
//