CleanUp Workspace after Backup all Contents Even X121 Setup ...

This commit is contained in:
2024-07-30 03:12:09 +03:30
parent ab0fb239af
commit 3b91398e2d
113 changed files with 5326 additions and 85375 deletions
+202 -201
View File
@@ -25,9 +25,9 @@
//
// Import(s) Helper(s) ...
#include "../Helpers/x-saherelm.xpv.helper.mq5"
#include "../Helpers/x-saherelm.xche.helper.mq5"
#include "../Helpers/x-saherelm.xchm.helper.mq5"
#include "../Helpers/x-saherelm.xchhk.helper.mq5"
#include "../Helpers/x-saherelm.xchche.helper.mq5"
#include "../Helpers/x-saherelm.xchstr.helper.mq5"
//
@@ -103,12 +103,12 @@ public:
{
//
delete pvHelper;
delete cheHelper;
//
delete chmHelper;
delete chhkHelper;
delete chstrHelper;
delete chcheHelper;
}
//
@@ -139,15 +139,15 @@ public:
}
//
bool EnableXCHE()
bool EnableXCHCHE()
{
return mEnableXCHE;
return mEnableXCHCHE;
}
//
void EnableXCHE(bool value)
void EnableXCHCHE(bool value)
{
mEnableXCHE = value;
mEnableXCHCHE = value;
}
//
@@ -457,15 +457,6 @@ public:
return result;
}
//
// XCHE ...
XCHEConditions cheConditions;
result = cheHelper.GetConditions(cheConditions);
if (!result)
{
return result;
}
//
// XCHM ...
XCHMConditions chmConditions;
@@ -493,6 +484,15 @@ public:
return result;
}
//
// XCHCHE ...
XCHCHEConditions chcheConditions;
result = chcheHelper.GetConditions(chcheConditions);
if (!result)
{
return result;
}
//
// Start Calculations ...
@@ -885,47 +885,7 @@ public:
);
//
// XCHE ...
//
if (cheConditions.long1[pIndex] > 0 &&
cheConditions.long2[pIndex] > 0 &&
cheConditions.long1[pIndex] != EMPTY_VALUE &&
cheConditions.long2[pIndex] != EMPTY_VALUE &&
!cheConditions.isStrongBullish)
{
//
cheLastLongExitTime = pBar.time;
cheLastLongExit1 = cheConditions.long1[pIndex];
cheLastLongExit2 = cheConditions.long2[pIndex];
}
//
if (cheConditions.short1[pIndex] > 0 &&
cheConditions.short2[pIndex] > 0 &&
cheConditions.short1[pIndex] != EMPTY_VALUE &&
cheConditions.short2[pIndex] != EMPTY_VALUE &&
!cheConditions.isStrongBearish)
{
//
cheLastShortExitTime = pBar.time;
cheLastShortExit1 = cheConditions.short1[pIndex];
cheLastShortExit2 = cheConditions.short2[pIndex];
}
//
double chhkBullishPower = chhkHelper.GetBullishPower(cIndex);
double chhkBearishPower = chhkHelper.GetBearishPower(cIndex);
//
double chhkMinBearishHigh = chhkHelper.GetMinBearishHigh(cIndex);
double chhkMaxBearishHigh = chhkHelper.GetMaxBearishHigh(cIndex);
double chhkMinBearishLow = chhkHelper.GetMinBearishLow(cIndex);
double chhkMaxBearishLow = chhkHelper.GetMaxBearishLow(cIndex);
double chhkMaxBullishHigh = chhkHelper.GetMaxBullishHigh(cIndex);
double chhkMinBullishHigh = chhkHelper.GetMinBullishHigh(cIndex);
double chhkMaxBullishLow = chhkHelper.GetMaxBullishLow(cIndex);
double chhkMinBullishLow = chhkHelper.GetMinBullishLow(cIndex);
// XCHM ...
//
double chmBullishPower = chmHelper.GetBullishPower(cIndex);
@@ -941,6 +901,26 @@ public:
double chmMaxBearishSlow = chmHelper.GetMaxBearishSlow(cIndex);
double chmMinBearishSlow = chmHelper.GetMinBearishSlow(cIndex);
//
// XCHHK ...
//
double chhkBullishPower = chhkHelper.GetBullishPower(cIndex);
double chhkBearishPower = chhkHelper.GetBearishPower(cIndex);
//
double chhkMinBearishHigh = chhkHelper.GetMinBearishHigh(cIndex);
double chhkMaxBearishHigh = chhkHelper.GetMaxBearishHigh(cIndex);
double chhkMinBearishLow = chhkHelper.GetMinBearishLow(cIndex);
double chhkMaxBearishLow = chhkHelper.GetMaxBearishLow(cIndex);
double chhkMaxBullishHigh = chhkHelper.GetMaxBullishHigh(cIndex);
double chhkMinBullishHigh = chhkHelper.GetMinBullishHigh(cIndex);
double chhkMaxBullishLow = chhkHelper.GetMaxBullishLow(cIndex);
double chhkMinBullishLow = chhkHelper.GetMinBullishLow(cIndex);
//
// XCHSTR ...
//
double chstrBullishPower = chstrHelper.GetBullishPower(cIndex);
double chstrBearishPower = chstrHelper.GetBearishPower(cIndex);
@@ -952,94 +932,22 @@ public:
double chstrMaxBearish = chstrHelper.GetMaxBearish(cIndex);
//
double cheMaxLE = cheHelper.GetMaxLongExit(cIndex);
double cheMinLE = cheHelper.GetMinLongExit(cIndex);
double cheMaxSE = cheHelper.GetMaxShortExit(cIndex);
double cheMinSE = cheHelper.GetMinShortExit(cIndex);
// XCHCHE ...
//
double chcheBullishPower = chcheHelper.GetBullishPower(cIndex);
double chcheBearishPower = chcheHelper.GetBearishPower(cIndex);
//
double chcheMaxBullish = chcheHelper.GetBullishMax(cIndex);
double chcheMinBullish = chcheHelper.GetBullishMin(cIndex);
double chcheMaxBearish = chcheHelper.GetBearishMax(cIndex);
double chcheMinBearish = chcheHelper.GetBearishMin(cIndex);
//
int pushers = 0;
string signallers[];
//
// XCHHK ...
if (mEnableXCHHK)
{
//
if (chhkConditions.isBullishPowerUp)
{
//
bool chhkHasLong =
//
hasBullishPower &&
cBar.IsBullish() &&
hasBullishPattern &&
hasBullishPressure &&
cheConditions.isStrongBullish &&
cBar.low > chhkMinBullishHigh &&
chhkConditions.isBullishPowerUp
//
;
//
if (chhkHasLong)
{
//
hasLong = chhkHasLong;
if (hasLong)
{
//
pushers++;
Add(
"XCHHK",
signallers //
);
//
sl = chhkMaxBullishLow;
type = POSITION_TYPE_BUY;
}
}
}
//
if (chhkConditions.isBearishPowerUp)
{
//
bool chhkHasShort =
//
hasBearishPower &&
cBar.IsBearish() &&
hasBearishPattern &&
hasBearishPressure &&
cheConditions.isStrongBearish &&
cBar.high < chhkMaxBearishLow &&
chhkConditions.isBearishPowerUp
//
;
//
if (chhkHasShort)
{
//
hasShort = chhkHasShort;
if (hasShort)
{
//
pushers++;
Add(
"XCHHK",
signallers //
);
//
sl = chhkMinBearishHigh;
type = POSITION_TYPE_SELL;
}
}
}
}
//
// XCHM ...
if (mEnableXCHM)
@@ -1055,8 +963,8 @@ public:
hasBullishPattern &&
hasBullishPressure &&
cBar.low > chmMinBullishFast &&
cheConditions.isStrongBullish &&
chmConditions.isBullishPowerUp
chmConditions.isBullishPowerUp &&
chcheConditions.isCStrongBullish
//
;
@@ -1092,8 +1000,8 @@ public:
hasBearishPattern &&
hasBearishPressure &&
cBar.high < chmMaxBearishFast &&
cheConditions.isStrongBearish &&
chmConditions.isBearishPowerUp
chmConditions.isBearishPowerUp &&
chcheConditions.isCStrongBearish
//
;
@@ -1119,6 +1027,85 @@ public:
}
}
//
// XCHHK ...
if (mEnableXCHHK)
{
//
if (chhkConditions.isBullishPowerUp)
{
//
bool chhkHasLong =
//
hasBullishPower &&
cBar.IsBullish() &&
hasBullishPattern &&
hasBullishPressure &&
cBar.low > chhkMinBullishHigh &&
chhkConditions.isBullishPowerUp &&
chcheConditions.isCStrongBullish
//
;
//
if (chhkHasLong)
{
//
hasLong = chhkHasLong;
if (hasLong)
{
//
pushers++;
Add(
"XCHHK",
signallers //
);
//
sl = chhkMaxBullishLow;
type = POSITION_TYPE_BUY;
}
}
}
//
if (chhkConditions.isBearishPowerUp)
{
//
bool chhkHasShort =
//
hasBearishPower &&
cBar.IsBearish() &&
hasBearishPattern &&
hasBearishPressure &&
cBar.high < chhkMaxBearishLow &&
chhkConditions.isBearishPowerUp &&
chcheConditions.isCStrongBearish
//
;
//
if (chhkHasShort)
{
//
hasShort = chhkHasShort;
if (hasShort)
{
//
pushers++;
Add(
"XCHHK",
signallers //
);
//
sl = chhkMinBearishHigh;
type = POSITION_TYPE_SELL;
}
}
}
}
//
// XCHSTR ...
if (mEnableXCHSTR)
@@ -1134,8 +1121,8 @@ public:
hasBullishPattern &&
hasBullishPressure &&
cBar.low > chstrMinBullish &&
cheConditions.isStrongBullish &&
chstrConditions.isBullishPowerUp
chstrConditions.isBullishPowerUp &&
chcheConditions.isCStrongBullish
//
;
@@ -1171,8 +1158,8 @@ public:
hasBearishPattern &&
hasBearishPressure &&
cBar.high < chstrMaxBearish &&
cheConditions.isStrongBearish &&
chstrConditions.isBearishPowerUp
chstrConditions.isBearishPowerUp &&
chcheConditions.isCStrongBearish
//
;
@@ -1199,80 +1186,78 @@ public:
}
//
// XCHE ...
if (mEnableXCHE)
// XCHCHE ...
if (mEnableXCHCHE)
{
//
if (cheConditions.isStrongBullish)
if (chcheConditions.isBullishPowerUp)
{
//
bool cheHasLong =
bool chcheHasLong =
//
HasCheLast() &&
cheMinLE > 0 &&
hasBullishPower &&
cBar.IsBullish() &&
hasBullishPattern &&
hasBullishPressure &&
cheMinLE > GetMaxCHELast() &&
cheConditions.isStrongBullish
cBar.low > chcheMinBullish &&
chcheConditions.isBullishPowerUp &&
chcheConditions.isCStrongBullish
//
;
//
if (cheHasLong)
if (chcheHasLong)
{
//
hasLong = cheHasLong;
hasLong = chcheHasLong;
if (hasLong)
{
//
pushers++;
Add(
"XCHE",
"XCHCHE",
signallers //
);
//
sl = cheMinLE;
sl = chcheMinBullish;
type = POSITION_TYPE_BUY;
}
}
}
//
if (cheConditions.isStrongBearish)
if (chcheConditions.isBearishPowerUp)
{
//
bool cheHasShort =
bool chcheHasShort =
//
HasCheLast() &&
cheMaxSE > 0 &&
hasBearishPower &&
cBar.IsBearish() &&
hasBearishPattern &&
hasBearishPressure &&
cheMaxSE < GetMinCHELast() &&
cheConditions.isStrongBearish
cBar.high < chcheMaxBearish &&
chcheConditions.isBearishPowerUp &&
chcheConditions.isCStrongBearish
//
;
//
if (cheHasShort)
if (chcheHasShort)
{
//
hasShort = cheHasShort;
hasShort = chcheHasShort;
if (hasShort)
{
//
pushers++;
Add(
"XCHE",
"XCHCHE",
signallers //
);
//
sl = cheMaxSE;
sl = chcheMaxBearish;
type = POSITION_TYPE_SELL;
}
}
@@ -1433,10 +1418,10 @@ protected:
bool mDrawImportantAreas; // Draw Important Areas where Founded in Analyzing Time Frame
//
bool mEnableXCHE; // Enable XCHE Signaller
bool mEnableXCHM; // Enable XCHM Signaller
bool mEnableXCHHK; // Enable XCHHK Signaller
bool mEnableXCHSTR; // Enable XCHSTR Signaller
bool mEnableXCHCHE; // Enable XCHCHE Signaller
//
XOHCL support;
@@ -1469,16 +1454,6 @@ protected:
XPVInputs pvInputs;
XSCXPVHelper *pvHelper;
//
// XSTR ...
XCHSTRInputs chstrInputs;
XSCXCHSTRHelper *chstrHelper;
//
// XCHE ...
XCHEInputs cheInputs;
XSCXCHEHelper *cheHelper;
//
// XHK ...
XCHHKInputs chhkInputs;
@@ -1489,6 +1464,16 @@ protected:
XCHMInputs chmInputs;
XSCXCHMHelper *chmHelper;
//
// XSTR ...
XCHSTRInputs chstrInputs;
XSCXCHSTRHelper *chstrHelper;
//
// XCHCHE ...
XCHCHEInputs chcheInputs;
XSCXCHCHEHelper *chcheHelper;
//
// Private ...
private:
@@ -1504,10 +1489,10 @@ private:
mDrawImportantAreas = false;
//
mEnableXCHE = true;
mEnableXCHM = true;
mEnableXCHHK = true;
mEnableXCHSTR = true;
mEnableXCHCHE = true;
//
support.Clean();
@@ -1573,26 +1558,6 @@ private:
pvInputs //
);
//
// XCHE ...
//
cheInputs.Default();
//
cheInputs.showLongExit1Line = false;
cheInputs.showShortExit1Line = false;
cheInputs.showLongExit2Line = false;
cheInputs.showShortExit2Line = false;
//
cheHelper = new XSCXCHEHelper();
cheHelper.Init(
mSymbol,
mPeriod,
cheInputs //
);
//
// XCHM ...
@@ -1695,6 +1660,42 @@ private:
mPeriod,
chstrInputs //
);
//
// XCHCHE ...
//
chcheInputs.Default();
//
chcheInputs.showCurrentLE1 = true;
chcheInputs.showCurrentLE2 = true;
chcheInputs.showCurrentSE1 = true;
chcheInputs.showCurrentSE2 = true;
chcheInputs.showShortLE1 = true;
chcheInputs.showShortLE2 = true;
chcheInputs.showShortSE1 = true;
chcheInputs.showShortSE2 = true;
chcheInputs.showMediumLE1 = true;
chcheInputs.showMediumLE2 = true;
chcheInputs.showMediumSE1 = true;
chcheInputs.showMediumSE2 = true;
chcheInputs.showLongLE1 = true;
chcheInputs.showLongLE2 = true;
chcheInputs.showLongSE1 = true;
chcheInputs.showLongSE2 = true;
chcheInputs.showHindLE1 = true;
chcheInputs.showHindLE2 = true;
chcheInputs.showHindSE1 = true;
chcheInputs.showHindSE2 = true;
//
chcheHelper = new XSCXCHCHEHelper();
chcheHelper.Init(
mSymbol,
mPeriod,
chcheInputs //
);
}
//