This commit is contained in:
2025-01-27 08:45:57 +03:30
parent 24d152b41d
commit d54fb854c9
3 changed files with 294 additions and 197 deletions
@@ -691,18 +691,20 @@ bool DetectX121SMCXHKPVSignalSetup(
//
XBoxZone priceBox;
bool hasBox = false;
bool hasPriceBox = false;
XCOrderBlock *priceOB = NULL;
if (hasState)
{
//
hasBox = DetectPriceInsideBox(
hasPriceBox = DetectPriceInsideBox(
priceBox,
priceOB,
decisionXConditions,
conditions.state //
);
//
if (hasBox)
if (hasPriceBox)
{
//
// Here We Can Validate Box by Same Cycles Peaks and Vales ...
@@ -718,11 +720,12 @@ bool DetectX121SMCXHKPVSignalSetup(
);
//
if (hasBox)
if (hasPriceBox)
{
//
bool isBullish = IsBullish(priceBox.dir);
color boxColor = isBullish ? clrYellow : clrOrange;
//
XCBoxObject *iObj;
bool isCreated = visionCycleHelper.mPOIDrawer.CreateBox(
@@ -743,6 +746,65 @@ bool DetectX121SMCXHKPVSignalSetup(
drawnObjects //
);
}
//
XCBaseObject *priceOBObj = NULL;
if (isBullish)
{
//
XCBullishOrderBlockObject *iObj;
isCreated = visionCycleHelper
.mPOIDrawer
.CreateBullishOrderBlock(
priceOB,
iObj //
);
//
if (isCreated)
{
//
iObj.ZoneWidth(2);
iObj.ZoneColor(boxColor);
iObj.ZoneStyle(STYLE_SOLID);
//
priceOBObj = (XCBaseObject *)iObj;
}
}
else
{
//
XCBearishOrderBlockObject *iObj;
isCreated = visionCycleHelper
.mPOIDrawer
.CreateBearishOrderBlock(
priceOB,
iObj //
);
//
if (isCreated)
{
//
iObj.ZoneWidth(2);
iObj.ZoneColor(boxColor);
iObj.ZoneStyle(STYLE_SOLID);
//
priceOBObj = (XCBaseObject *)iObj;
}
}
//
if (isCreated)
{
//
Add(
priceOBObj,
drawnObjects //
);
}
}
//