This commit is contained in:
2025-04-27 19:13:26 +03:30
parent 97a444c92d
commit fdfcfda5c5
4 changed files with 565 additions and 223 deletions
+156 -140
View File
@@ -318,6 +318,158 @@ class XCXCAEAPOIDrawer : public XCBase
DrawCCICrossedUnderOBPivots(to);
}
//
void DrawBox(
XBoxZone &box,
datetime to = NULL //
)
{
//
bool has = box.IsValid();
if (!has)
{
return;
}
//
// Detect Pivot Type ...
ENUM_XCA_PIVOTS iType = GetPivotType(box);
has = IsValid(iType);
if (!has)
{
return;
}
//
switch (iType)
{
//
case XCA_TICK:
//
DrawTickPivot(
box,
to //
);
break;
//
case XCA_VOLUME:
//
DrawVolumePivot(
box,
to //
);
break;
//
case XCA_FVG_BULL:
//
DrawFVGBullishPivot(
box,
to //
);
break;
//
case XCA_FVG_BEAR:
//
DrawFVGBearishPivot(
box,
to //
);
break;
//
case XCA_RSI_COOS:
//
DrawRSICrossedOverOSPivot(
box,
to //
);
break;
//
case XCA_RSI_CUOB:
//
DrawRSICrossedUnderOBPivot(
box,
to //
);
break;
//
case XCA_RSI_PEAK:
//
DrawRSIPeakPivot(
box,
to //
);
break;
//
case XCA_RSI_VALE:
//
DrawRSIValePivot(
box,
to //
);
break;
//
case XCA_CCI_COOS:
//
DrawCCICrossedOverOSPivot(
box,
to //
);
break;
//
case XCA_CCI_CUOB:
//
DrawCCICrossedUnderOBPivot(
box,
to //
);
break;
//
case XCA_CCI_PEAK:
//
DrawCCIPeakPivot(
box,
to //
);
break;
//
case XCA_CCI_VALE:
//
DrawCCIValePivot(
box,
to //
);
break;
//
case XCA_PEAKSWHRES:
//
DrawPeakResSWHPivot(
box,
to //
);
break;
//
case XCA_VALESWLSUP:
//
DrawValeSupSWLPivot(
box,
to //
);
break;
}
}
//
void DrawBoxes(
XBoxZone &boxes[],
@@ -340,146 +492,10 @@ class XCXCAEAPOIDrawer : public XCBase
//
// Detect Pivot Type ...
ENUM_XCA_PIVOTS iType = GetPivotType(iBox);
has = IsValid(iType);
if (!has)
{
//
iBox.Clean();
//
continue;
}
//
switch (iType)
{
//
case XCA_TICK:
//
DrawTickPivot(
iBox,
to //
);
break;
//
case XCA_VOLUME:
//
DrawVolumePivot(
iBox,
to //
);
break;
//
case XCA_FVG_BULL:
//
DrawFVGBullishPivot(
iBox,
to //
);
break;
//
case XCA_FVG_BEAR:
//
DrawFVGBearishPivot(
iBox,
to //
);
break;
//
case XCA_RSI_COOS:
//
DrawRSICrossedOverOSPivot(
iBox,
to //
);
break;
//
case XCA_RSI_CUOB:
//
DrawRSICrossedUnderOBPivot(
iBox,
to //
);
break;
//
case XCA_RSI_PEAK:
//
DrawRSIPeakPivot(
iBox,
to //
);
break;
//
case XCA_RSI_VALE:
//
DrawRSIValePivot(
iBox,
to //
);
break;
//
case XCA_CCI_COOS:
//
DrawCCICrossedOverOSPivot(
iBox,
to //
);
break;
//
case XCA_CCI_CUOB:
//
DrawCCICrossedUnderOBPivot(
iBox,
to //
);
break;
//
case XCA_CCI_PEAK:
//
DrawCCIPeakPivot(
iBox,
to //
);
break;
//
case XCA_CCI_VALE:
//
DrawCCIValePivot(
iBox,
to //
);
break;
//
case XCA_PEAKSWHRES:
//
DrawPeakResSWHPivot(
iBox,
to //
);
break;
//
case XCA_VALESWLSUP:
//
DrawValeSupSWLPivot(
iBox,
to //
);
break;
}
DrawBox(
iBox,
to //
);
//
iBox.Clean();