last ...
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
//
|
||||
XCPOIDrawer *drawer = cHelper.mPOIDrawer;
|
||||
|
||||
//
|
||||
if (cStateEvents.hasNewFairValueGap)
|
||||
{
|
||||
//
|
||||
int idx = GetYoungest(cState.fairValueGaps);
|
||||
has = IsValidIndex(idx);
|
||||
if (has)
|
||||
{
|
||||
//
|
||||
XBoxZone box;
|
||||
has = ToBox(
|
||||
box,
|
||||
cState.fairValueGaps[idx] //
|
||||
);
|
||||
if (has)
|
||||
{
|
||||
//
|
||||
XCBoxObject *iObj;
|
||||
has = drawer.DrawBox(
|
||||
box,
|
||||
iObj //
|
||||
);
|
||||
if (has)
|
||||
{
|
||||
Print("Box Drawn ...");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
ZeroMemory(drawer);
|
||||
@@ -1141,18 +1141,22 @@ class XCX121SMCXINDSignalDetector : public XCBase
|
||||
0,
|
||||
iBox.period //
|
||||
);
|
||||
if (isValid)
|
||||
if (!isValid)
|
||||
{
|
||||
//
|
||||
has = IsBoxExists(iBox);
|
||||
if (!has)
|
||||
{
|
||||
//
|
||||
AddRef(
|
||||
iBox,
|
||||
mWaitingBoxes //
|
||||
);
|
||||
}
|
||||
iBox.Clean();
|
||||
continue;
|
||||
}
|
||||
|
||||
//
|
||||
has = IsBoxExists(iBox);
|
||||
if (!has)
|
||||
{
|
||||
//
|
||||
AddRef(
|
||||
iBox,
|
||||
mWaitingBoxes //
|
||||
);
|
||||
}
|
||||
|
||||
//
|
||||
@@ -1191,18 +1195,23 @@ class XCX121SMCXINDSignalDetector : public XCBase
|
||||
0,
|
||||
iBox.period //
|
||||
);
|
||||
if (isValid)
|
||||
if (!isValid)
|
||||
{
|
||||
//
|
||||
has = IsBoxExists(iBox);
|
||||
if (!has)
|
||||
{
|
||||
//
|
||||
AddRef(
|
||||
iBox,
|
||||
mWaitingBoxes //
|
||||
);
|
||||
}
|
||||
iBox.Clean();
|
||||
continue;
|
||||
;
|
||||
}
|
||||
|
||||
//
|
||||
has = IsBoxExists(iBox);
|
||||
if (!has)
|
||||
{
|
||||
//
|
||||
AddRef(
|
||||
iBox,
|
||||
mWaitingBoxes //
|
||||
);
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user