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