last works ...

This commit is contained in:
2025-02-04 10:42:35 +03:30
parent 7e32ebab82
commit 1f755d6ca3
6 changed files with 1684 additions and 322 deletions
+102
View File
@@ -2490,6 +2490,57 @@ class XCPOIDrawer : public XCBase
return result;
}
bool CreateOrderBlock(
XCOrderBlock &zone,
XCBaseObject *&object //
)
{
//
bool result = false;
//
object = NULL;
//
result = zone.IsValid();
if (!result)
{
return result;
}
//
bool isBullish = zone.IsBullish();
if (isBullish)
{
//
XCBullishOrderBlockObject *iObj;
result = CreateBullishOrderBlock(
zone,
iObj //
);
if (result)
{
object = (XCBaseObject *)iObj;
}
}
else
{
//
XCBearishOrderBlockObject *iObj;
result = CreateBearishOrderBlock(
zone,
iObj //
);
if (result)
{
object = (XCBaseObject *)iObj;
}
}
//
return result;
}
//
// Fair Value Gaps ...
@@ -2613,6 +2664,57 @@ class XCPOIDrawer : public XCBase
return result;
}
bool CreateFairValueGap(
XCFVG &zone,
XCBaseObject *&object //
)
{
//
bool result = false;
//
object = NULL;
//
result = zone.IsValid();
if (!result)
{
return result;
}
//
bool isBullish = zone.IsBullish();
if (isBullish)
{
//
XCBullishFairValueGapObject *iObj;
result = CreateBullishFairValueGap(
zone,
iObj //
);
if (result)
{
object = (XCBaseObject *)iObj;
}
}
else
{
//
XCBearishFairValueGapObject *iObj;
result = CreateBearishFairValueGap(
zone,
iObj //
);
if (result)
{
object = (XCBaseObject *)iObj;
}
}
//
return result;
}
//
// Ticks Zone ...