This commit is contained in:
2025-04-04 21:20:07 +03:30
parent 9f260dba9e
commit 9a67c4bc39
2 changed files with 64 additions and 20 deletions
+35
View File
@@ -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, 0,
iBox.period // iBox.period //
); );
if (isValid) if (!isValid)
{ {
// //
has = IsBoxExists(iBox); iBox.Clean();
if (!has) continue;
{ }
//
AddRef( //
iBox, has = IsBoxExists(iBox);
mWaitingBoxes // if (!has)
); {
} //
AddRef(
iBox,
mWaitingBoxes //
);
} }
// //
@@ -1191,18 +1195,23 @@ class XCX121SMCXINDSignalDetector : public XCBase
0, 0,
iBox.period // iBox.period //
); );
if (isValid) if (!isValid)
{ {
// //
has = IsBoxExists(iBox); iBox.Clean();
if (!has) continue;
{ ;
// }
AddRef(
iBox, //
mWaitingBoxes // has = IsBoxExists(iBox);
); if (!has)
} {
//
AddRef(
iBox,
mWaitingBoxes //
);
} }
// //