This commit is contained in:
2025-01-21 05:46:01 +03:30
parent 6363320cc2
commit 560a54af30
16 changed files with 7623 additions and 859 deletions
-64
View File
@@ -199,10 +199,6 @@ struct X121Conditions
double donCloseUpperBuffer[];
double donCloseLowerBuffer[];
//
bool bullishTrendBuffer[];
bool bearishTrendBuffer[];
//
double rsiSlope;
double strSlope;
@@ -497,14 +493,6 @@ struct X121Conditions
bool isStrLowerCrossedOverDonLowLower;
bool isStrLowerCrossedUnderDonLowLower;
//
bool isTrendBullish;
bool isTrendBearish;
//
bool isTrendSwirchedToBullish;
bool isTrendSwirchedToBearish;
//
bool isAtrUpperOverPeak;
bool isAtrUpperEqualsToPeak;
@@ -592,10 +580,6 @@ struct X121Conditions
Clean(donCloseUpperBuffer);
Clean(donCloseLowerBuffer);
//
Clean(bullishTrendBuffer);
Clean(bearishTrendBuffer);
//
ArraySetAsSeries(rsiBuffer, true);
ArraySetAsSeries(atrBuffer, true);
@@ -647,10 +631,6 @@ struct X121Conditions
ArraySetAsSeries(donCloseUpperBuffer, true);
ArraySetAsSeries(donCloseLowerBuffer, true);
//
ArraySetAsSeries(bullishTrendBuffer, true);
ArraySetAsSeries(bearishTrendBuffer, true);
//
cheMin = 0;
cheMax = 0;
@@ -1014,14 +994,6 @@ struct X121Conditions
//
isStrLowerCrossedOverDonLowLower = false;
isStrLowerCrossedUnderDonLowLower = false;
//
isTrendBullish = false;
isTrendBearish = false;
//
isTrendSwirchedToBullish = false;
isTrendSwirchedToBearish = false;
}
/**
@@ -1231,10 +1203,6 @@ struct X121Conditions
"-----------------------" + separator +
"Coplex ..." + separator +
"-----------------------" + separator +
ToString("isTrendBullish", isTrendBullish, ignoreFalseConditions, separator) +
ToString("isTrendBearish", isTrendBearish, ignoreFalseConditions, separator) +
ToString("isTrendSwirchedToBullish", isTrendSwirchedToBullish, ignoreFalseConditions, separator) +
ToString("isTrendSwirchedToBearish", isTrendSwirchedToBearish, ignoreFalseConditions, separator) +
ToString("isSarIncreased", isSarIncreased, ignoreFalseConditions, separator) +
ToString("isSarDecreased", isSarDecreased, ignoreFalseConditions, separator) +
ToString("isSarEqualsToPeak", isSarEqualsToPeak, ignoreFalseConditions, separator) +
@@ -1944,18 +1912,6 @@ class XCX121Helper : public XCBase
conditions.hLLBuffer //
);
//
Copy(
xpvConditions.bullishTrendBuffer,
conditions.bullishTrendBuffer //
);
//
Copy(
xpvConditions.bearishTrendBuffer,
conditions.bearishTrendBuffer //
);
//
// Conditions ...
@@ -2368,20 +2324,6 @@ class XCX121Helper : public XCBase
//
// Complex Conditions ...
//
bool isTrendBullish = conditions.bullishTrendBuffer[0];
bool isTrendBullishPrev = conditions.bullishTrendBuffer[1];
//
bool isTrendBearish = conditions.bearishTrendBuffer[0];
bool isTrendBearishPrev = conditions.bearishTrendBuffer[1];
//
bool isTrendSwirchedToBullish = isTrendBullish &&
!isTrendBullishPrev;
bool isTrendSwirchedToBearish = isTrendBearish &&
!isTrendBearishPrev;
//
double vwapFast = conditions.vwapFastBuffer[cIDX];
double vwapMid = conditions.vwapMidBuffer[cIDX];
@@ -2801,12 +2743,6 @@ class XCX121Helper : public XCBase
conditions.vwapMin = vwapMin;
conditions.vwapMax = vwapMax;
//
conditions.isTrendBullish = isTrendBullish;
conditions.isTrendBearish = isTrendBearish;
conditions.isTrendSwirchedToBullish = isTrendSwirchedToBullish;
conditions.isTrendSwirchedToBearish = isTrendSwirchedToBearish;
//
conditions.isSarIncreased = isSarIncreased;
conditions.isSarDecreased = isSarDecreased;