last ...
This commit is contained in:
@@ -495,6 +495,35 @@ public:
|
||||
false //
|
||||
);
|
||||
|
||||
//
|
||||
// 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];
|
||||
}
|
||||
|
||||
//
|
||||
// XCHM ...
|
||||
// Detect XCHMbased Conditions ...
|
||||
@@ -1807,8 +1836,8 @@ private:
|
||||
chmInputs.hcPeriod = hcPeriod;
|
||||
|
||||
//
|
||||
chmInputs.showFast = true;
|
||||
chmInputs.showSlow = true;
|
||||
chmInputs.showFast = false;
|
||||
chmInputs.showSlow = false;
|
||||
chmInputs.showCCFast = false;
|
||||
chmInputs.showCCSlow = false;
|
||||
chmInputs.showSCFast = false;
|
||||
@@ -1817,8 +1846,8 @@ private:
|
||||
chmInputs.showMCSlow = false;
|
||||
chmInputs.showLCFast = false;
|
||||
chmInputs.showLCSlow = false;
|
||||
chmInputs.showHCFast = false;
|
||||
chmInputs.showHCSlow = false;
|
||||
chmInputs.showHCFast = true;
|
||||
chmInputs.showHCSlow = true;
|
||||
|
||||
//
|
||||
chmHelper = new XSCXCHMHelper();
|
||||
@@ -2092,6 +2121,71 @@ private:
|
||||
bearishFVG.Clean();
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// XCHE Custom Data ...
|
||||
|
||||
//
|
||||
double cheLastLongExit1;
|
||||
double cheLastLongExit2;
|
||||
datetime cheLastLongExitTime;
|
||||
double GetMaxCHELastLong()
|
||||
{
|
||||
//
|
||||
return MathMax(
|
||||
cheLastLongExit1,
|
||||
cheLastLongExit2 //
|
||||
);
|
||||
}
|
||||
double GetMinCHELastLong()
|
||||
{
|
||||
//
|
||||
return MathMin(
|
||||
cheLastLongExit1,
|
||||
cheLastLongExit2 //
|
||||
);
|
||||
}
|
||||
|
||||
//
|
||||
double cheLastShortExit1;
|
||||
double cheLastShortExit2;
|
||||
datetime cheLastShortExitTime;
|
||||
double GetMaxCHELastShort()
|
||||
{
|
||||
//
|
||||
return MathMax(
|
||||
cheLastShortExit1,
|
||||
cheLastShortExit2 //
|
||||
);
|
||||
}
|
||||
double GetMinCHELastShort()
|
||||
{
|
||||
//
|
||||
return MathMin(
|
||||
cheLastShortExit1,
|
||||
cheLastShortExit2 //
|
||||
);
|
||||
}
|
||||
|
||||
//
|
||||
double GetMaxCHELast()
|
||||
{
|
||||
//
|
||||
return MathMax(
|
||||
GetMaxCHELastLong(),
|
||||
GetMaxCHELastShort() //
|
||||
);
|
||||
}
|
||||
double GetMinCHELast()
|
||||
{
|
||||
//
|
||||
return MathMin(
|
||||
GetMinCHELastLong(),
|
||||
GetMinCHELastShort() //
|
||||
);
|
||||
}
|
||||
|
||||
//
|
||||
};
|
||||
|
||||
//
|
||||
Reference in New Issue
Block a user