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,
|
||||
|
||||
Reference in New Issue
Block a user