last works on x Signalling ...

This commit is contained in:
2025-01-25 03:20:15 +03:30
parent 7e64f25b11
commit 416d3c4a04
5 changed files with 1651 additions and 605 deletions
@@ -82,6 +82,7 @@ class XC121SMCCycleHelper : public XCBase
//
// POI Detector ...
XCPOIDrawer *mPOIDrawer;
XCPOIDetector *mPOIDetector;
//
@@ -166,6 +167,22 @@ class XC121SMCCycleHelper : public XCBase
// Initialize Bar Analyser Class Instance ...
mBarAnalyser = new XCBarAnalyser();
//
// Initial and Configure POI Drawer if Required ...
mPOIDrawer = new XCPOIDrawer();
mPOIDrawer.ChartIdentification(0);
mPOIDrawer.SubWindowIdentification(0);
//
mPOIDrawer.DemandZoneFill(false);
mPOIDrawer.SupplyZoneFill(false);
mPOIDrawer.BullishFVGFill(false);
mPOIDrawer.BearishFVGFill(false);
mPOIDrawer.SupportZoneFill(false);
mPOIDrawer.ResistanceZoneFill(false);
mPOIDrawer.BullishOrderBlockFill(false);
mPOIDrawer.BearishOrderBlockFill(false);
//
// Set Chart Style ...
ApplyChartStyle();
@@ -552,6 +569,55 @@ class XC121SMCCycleHelper : public XCBase
return result;
}
/**
* Detect Order Blocks ...
*
* @return ( int )
*/
bool DetectOrderBlocks(
XCOrderBlock *&bullishOrderBlocks[],
XCOrderBlock *&bearishOrderBlocks[] //
)
{
//
bool result = false;
//
Clean(bullishOrderBlocks);
Clean(bearishOrderBlocks);
//
XPOIState state;
mPOIDetector.GetState(state);
bool isValid = state.IsValid() &&
state.HasChild();
if (!isValid)
{
return result;
}
//
int bullOBsCount = DetectDirectionOrderBlocks(
X_DIRECTION_BULLISH,
state,
bullishOrderBlocks //
);
//
int bearOBsCount = DetectDirectionOrderBlocks(
X_DIRECTION_BEARISH,
state,
bearishOrderBlocks //
);
//
result = IsValidSize(bullOBsCount +
bearOBsCount);
//
return result;
}
/**
* Retrieve Cycle Conditions ...
*