last ...
This commit is contained in:
@@ -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 //
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user