This commit is contained in:
2025-04-28 19:59:13 +03:30
parent 28f5ffac63
commit 806fdeb4bb
3 changed files with 81 additions and 12 deletions
+50
View File
@@ -5569,6 +5569,56 @@ struct XBoxZone
return result; 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 ... * To Bar Index ...
* *
+23 -8
View File
@@ -867,7 +867,7 @@ bool DetectXCAEAConditions(
cBar, cBar,
pBar, pBar,
p2Bar, p2Bar,
true, // Ignore Mid Rejection ... false, // Ignore Mid Rejection ...
true, true,
true // true //
); );
@@ -1032,6 +1032,16 @@ bool DetectXCAEAConditions(
sls // sls //
); );
//
if (!isRejectedOnMid)
{
//
Add(
rejectedPivot.GetMid(),
sls //
);
}
// // // //
// // X3MA Medium ... // // X3MA Medium ...
// if (c3MAMedium < entry) // if (c3MAMedium < entry)
@@ -1052,6 +1062,16 @@ bool DetectXCAEAConditions(
sls // sls //
); );
//
if (!isRejectedOnMid)
{
//
Add(
rejectedPivot.GetMid(),
sls //
);
}
// // // //
// // X3MA Medium ... // // X3MA Medium ...
// if (c3MAMedium > entry) // if (c3MAMedium > entry)
@@ -1308,15 +1328,10 @@ bool SelectRejectedBox(
bool isBearish = iBox.IsBearish(); bool isBearish = iBox.IsBearish();
// //
double boundaryPrice = double boundaryPrice = iBox.GetRejection();
isBullish
? iBox.upper
: iBox.lower;
// //
double midPrice = double midPrice = iBox.GetMid();
iBox.lower +
((iBox.upper - iBox.lower) / 2);
// //
bool isMidBullishRejected = cBar.IsRejected( bool isMidBullishRejected = cBar.IsRejected(
+8 -4
View File
@@ -210,6 +210,10 @@ class XCXCAEASignaller : XCBase
// //
// Draw Founded Pivots ... // Draw Founded Pivots ...
// drawer.Draw(cTime); // drawer.Draw(cTime);
drawer.DrawPeakResSWHPivots(cTime);
drawer.DrawValeSupSWLPivots(cTime);
drawer.DrawFVGBullishPivots(cTime);
drawer.DrawFVGBearishPivots(cTime);
// //
// Retrieve Valid Pviots ... // Retrieve Valid Pviots ...
@@ -878,8 +882,8 @@ class XCXCAEASignaller : XCBase
detector.detectCCIValePivots = false; detector.detectCCIValePivots = false;
detector.detectFVGBullishPivots = true; detector.detectFVGBullishPivots = true;
detector.detectFVGBearishPivots = true; detector.detectFVGBearishPivots = true;
detector.detectValeSupSWLPivots = false; detector.detectValeSupSWLPivots = true;
detector.detectPeakResSWHPivots = false; detector.detectPeakResSWHPivots = true;
detector.detectTrendBullishPivots = true; detector.detectTrendBullishPivots = true;
detector.detectTrendBearishPivots = true; detector.detectTrendBearishPivots = true;
detector.detectCCICrossedOverOSPivots = false; detector.detectCCICrossedOverOSPivots = false;
@@ -906,8 +910,8 @@ class XCXCAEASignaller : XCBase
drawer.drawCCIValePivots = false; drawer.drawCCIValePivots = false;
drawer.drawFVGBullishPivots = true; drawer.drawFVGBullishPivots = true;
drawer.drawFVGBearishPivots = true; drawer.drawFVGBearishPivots = true;
drawer.drawValeSupSWLPivots = false; drawer.drawValeSupSWLPivots = true;
drawer.drawPeakResSWHPivots = false; drawer.drawPeakResSWHPivots = true;
drawer.drawTrendBullishPivots = false; drawer.drawTrendBullishPivots = false;
drawer.drawTrendBearishPivots = false; drawer.drawTrendBearishPivots = false;
drawer.drawRSICrossedOverOSPivots = false; drawer.drawRSICrossedOverOSPivots = false;