apply fix on Trend FVG Types issues ...

This commit is contained in:
2025-04-27 10:21:45 +03:30
parent 86846de1d1
commit 97a444c92d
2 changed files with 30 additions and 4 deletions
@@ -194,6 +194,10 @@ ENUM_XCA_PIVOTS GetPivotType(XBoxZone &value)
value.dir == GetDirection(XCA_TREND_BULL);
bool isTrendBearish = value.type == GetBoxType(XCA_TREND_BEAR) &&
value.dir == GetDirection(XCA_TREND_BEAR);
bool isPeakSWHRes = value.type == GetBoxType(XCA_PEAKSWHRES) &&
value.dir == GetDirection(XCA_PEAKSWHRES);
bool isValeSWLSup = value.type == GetBoxType(XCA_VALESWLSUP) &&
value.dir == GetDirection(XCA_VALESWLSUP);
//
if (isTick)
@@ -252,6 +256,14 @@ ENUM_XCA_PIVOTS GetPivotType(XBoxZone &value)
{
result = XCA_TREND_BEAR;
}
else if (isPeakSWHRes)
{
result = XCA_PEAKSWHRES;
}
else if (isValeSWLSup)
{
result = XCA_VALESWLSUP;
}
//
return result;
@@ -2397,6 +2409,9 @@ class XCXCAEAPOIDetector : public XCBase
// Handling FVGs Here ...
if (isBullishFVG)
{
//
fvgBox.type = GetBoxType(XCA_FVG_BULL);
//
AddBox(
fvgBox,
@@ -2508,6 +2523,9 @@ class XCXCAEAPOIDetector : public XCBase
// Handling FVGs Here ...
if (isBearishFVG)
{
//
fvgBox.type = GetBoxType(XCA_FVG_BEAR);
//
AddBox(
fvgBox,
+12 -4
View File
@@ -762,6 +762,15 @@ bool DetectXCAEAConditions(
//
// Parsing Pivots ...
bool hasPivots = HasChild(pivots);
if (hasPivots)
{
//
drawer.DrawBoxes(
pivots,
TimeCurrent() //
);
}
//
// Select Inside Boxes ...
@@ -775,16 +784,15 @@ bool DetectXCAEAConditions(
p2Bar //
);
bool hasInsidePivots = IsValidSize(insidePivotsCount);
if (hasInsidePivots) {
//
drawer.DrawBoxes(insidePivots, TimeCurrent());
if (hasInsidePivots)
{
// drawer.DrawBoxes(insidePivots, TimeCurrent());
}
//
// Detect Selected Pivot ...
XBoxZone rejectedPivot;
double providedSL = 0;
bool hasPivots = HasChild(pivots);
if (hasPivots)
{
//