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); value.dir == GetDirection(XCA_TREND_BULL);
bool isTrendBearish = value.type == GetBoxType(XCA_TREND_BEAR) && bool isTrendBearish = value.type == GetBoxType(XCA_TREND_BEAR) &&
value.dir == GetDirection(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) if (isTick)
@@ -252,6 +256,14 @@ ENUM_XCA_PIVOTS GetPivotType(XBoxZone &value)
{ {
result = XCA_TREND_BEAR; result = XCA_TREND_BEAR;
} }
else if (isPeakSWHRes)
{
result = XCA_PEAKSWHRES;
}
else if (isValeSWLSup)
{
result = XCA_VALESWLSUP;
}
// //
return result; return result;
@@ -2397,6 +2409,9 @@ class XCXCAEAPOIDetector : public XCBase
// Handling FVGs Here ... // Handling FVGs Here ...
if (isBullishFVG) if (isBullishFVG)
{ {
//
fvgBox.type = GetBoxType(XCA_FVG_BULL);
// //
AddBox( AddBox(
fvgBox, fvgBox,
@@ -2508,6 +2523,9 @@ class XCXCAEAPOIDetector : public XCBase
// Handling FVGs Here ... // Handling FVGs Here ...
if (isBearishFVG) if (isBearishFVG)
{ {
//
fvgBox.type = GetBoxType(XCA_FVG_BEAR);
// //
AddBox( AddBox(
fvgBox, fvgBox,
+12 -4
View File
@@ -762,6 +762,15 @@ bool DetectXCAEAConditions(
// //
// Parsing Pivots ... // Parsing Pivots ...
bool hasPivots = HasChild(pivots);
if (hasPivots)
{
//
drawer.DrawBoxes(
pivots,
TimeCurrent() //
);
}
// //
// Select Inside Boxes ... // Select Inside Boxes ...
@@ -775,16 +784,15 @@ bool DetectXCAEAConditions(
p2Bar // p2Bar //
); );
bool hasInsidePivots = IsValidSize(insidePivotsCount); bool hasInsidePivots = IsValidSize(insidePivotsCount);
if (hasInsidePivots) { if (hasInsidePivots)
// {
drawer.DrawBoxes(insidePivots, TimeCurrent()); // drawer.DrawBoxes(insidePivots, TimeCurrent());
} }
// //
// Detect Selected Pivot ... // Detect Selected Pivot ...
XBoxZone rejectedPivot; XBoxZone rejectedPivot;
double providedSL = 0; double providedSL = 0;
bool hasPivots = HasChild(pivots);
if (hasPivots) if (hasPivots)
{ {
// //