last ...
This commit is contained in:
@@ -5569,6 +5569,56 @@ struct XBoxZone
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Calculate Box Middle Price ...
|
||||
*
|
||||
* @return ( double )
|
||||
*/
|
||||
double GetMid()
|
||||
{
|
||||
//
|
||||
double result = 0;
|
||||
|
||||
//
|
||||
if (!IsValid())
|
||||
{
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
double diffAvg = (upper - lower) / 2;
|
||||
result = lower + diffAvg;
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Extract Rejection Price based on Box Direction ...
|
||||
*
|
||||
* @return ( double )
|
||||
*/
|
||||
double GetRejection()
|
||||
{
|
||||
//
|
||||
double result = 0;
|
||||
|
||||
//
|
||||
if (!IsValid())
|
||||
{
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
result =
|
||||
IsBullish()
|
||||
? upper
|
||||
: lower;
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* To Bar Index ...
|
||||
*
|
||||
|
||||
@@ -867,7 +867,7 @@ bool DetectXCAEAConditions(
|
||||
cBar,
|
||||
pBar,
|
||||
p2Bar,
|
||||
true, // Ignore Mid Rejection ...
|
||||
false, // Ignore Mid Rejection ...
|
||||
true,
|
||||
true //
|
||||
);
|
||||
@@ -1032,6 +1032,16 @@ bool DetectXCAEAConditions(
|
||||
sls //
|
||||
);
|
||||
|
||||
//
|
||||
if (!isRejectedOnMid)
|
||||
{
|
||||
//
|
||||
Add(
|
||||
rejectedPivot.GetMid(),
|
||||
sls //
|
||||
);
|
||||
}
|
||||
|
||||
// //
|
||||
// // X3MA Medium ...
|
||||
// if (c3MAMedium < entry)
|
||||
@@ -1052,6 +1062,16 @@ bool DetectXCAEAConditions(
|
||||
sls //
|
||||
);
|
||||
|
||||
//
|
||||
if (!isRejectedOnMid)
|
||||
{
|
||||
//
|
||||
Add(
|
||||
rejectedPivot.GetMid(),
|
||||
sls //
|
||||
);
|
||||
}
|
||||
|
||||
// //
|
||||
// // X3MA Medium ...
|
||||
// if (c3MAMedium > entry)
|
||||
@@ -1308,15 +1328,10 @@ bool SelectRejectedBox(
|
||||
bool isBearish = iBox.IsBearish();
|
||||
|
||||
//
|
||||
double boundaryPrice =
|
||||
isBullish
|
||||
? iBox.upper
|
||||
: iBox.lower;
|
||||
double boundaryPrice = iBox.GetRejection();
|
||||
|
||||
//
|
||||
double midPrice =
|
||||
iBox.lower +
|
||||
((iBox.upper - iBox.lower) / 2);
|
||||
double midPrice = iBox.GetMid();
|
||||
|
||||
//
|
||||
bool isMidBullishRejected = cBar.IsRejected(
|
||||
|
||||
@@ -210,6 +210,10 @@ class XCXCAEASignaller : XCBase
|
||||
//
|
||||
// Draw Founded Pivots ...
|
||||
// drawer.Draw(cTime);
|
||||
drawer.DrawPeakResSWHPivots(cTime);
|
||||
drawer.DrawValeSupSWLPivots(cTime);
|
||||
drawer.DrawFVGBullishPivots(cTime);
|
||||
drawer.DrawFVGBearishPivots(cTime);
|
||||
|
||||
//
|
||||
// Retrieve Valid Pviots ...
|
||||
@@ -878,8 +882,8 @@ class XCXCAEASignaller : XCBase
|
||||
detector.detectCCIValePivots = false;
|
||||
detector.detectFVGBullishPivots = true;
|
||||
detector.detectFVGBearishPivots = true;
|
||||
detector.detectValeSupSWLPivots = false;
|
||||
detector.detectPeakResSWHPivots = false;
|
||||
detector.detectValeSupSWLPivots = true;
|
||||
detector.detectPeakResSWHPivots = true;
|
||||
detector.detectTrendBullishPivots = true;
|
||||
detector.detectTrendBearishPivots = true;
|
||||
detector.detectCCICrossedOverOSPivots = false;
|
||||
@@ -906,8 +910,8 @@ class XCXCAEASignaller : XCBase
|
||||
drawer.drawCCIValePivots = false;
|
||||
drawer.drawFVGBullishPivots = true;
|
||||
drawer.drawFVGBearishPivots = true;
|
||||
drawer.drawValeSupSWLPivots = false;
|
||||
drawer.drawPeakResSWHPivots = false;
|
||||
drawer.drawValeSupSWLPivots = true;
|
||||
drawer.drawPeakResSWHPivots = true;
|
||||
drawer.drawTrendBullishPivots = false;
|
||||
drawer.drawTrendBearishPivots = false;
|
||||
drawer.drawRSICrossedOverOSPivots = false;
|
||||
|
||||
Reference in New Issue
Block a user