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,8 +1141,13 @@ class XCX121SMCXINDSignalDetector : public XCBase
0, 0,
iBox.period // iBox.period //
); );
if (isValid) if (!isValid)
{ {
//
iBox.Clean();
continue;
}
// //
has = IsBoxExists(iBox); has = IsBoxExists(iBox);
if (!has) if (!has)
@@ -1153,7 +1158,6 @@ class XCX121SMCXINDSignalDetector : public XCBase
mWaitingBoxes // mWaitingBoxes //
); );
} }
}
// //
iBox.Clean(); iBox.Clean();
@@ -1191,8 +1195,14 @@ class XCX121SMCXINDSignalDetector : public XCBase
0, 0,
iBox.period // iBox.period //
); );
if (isValid) if (!isValid)
{ {
//
iBox.Clean();
continue;
;
}
// //
has = IsBoxExists(iBox); has = IsBoxExists(iBox);
if (!has) if (!has)
@@ -1203,7 +1213,6 @@ class XCX121SMCXINDSignalDetector : public XCBase
mWaitingBoxes // mWaitingBoxes //
); );
} }
}
// //
iBox.Clean(); iBox.Clean();