apply fix on Trend FVG Types issues ...
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user