This commit is contained in:
2025-02-18 19:59:21 +03:30
parent e8002f8305
commit 9f66dac977
+36
View File
@@ -6113,6 +6113,25 @@ struct XOBFVG
return fvg != NULL &&
fvg.IsValid();
}
//
void UpdateTo(datetime value = NULL)
{
//
value = NormalizeTime(value);
//
if (HasOB())
{
ob.To(value);
}
//
if (HasFVG())
{
fvg.To(value);
}
}
};
//
@@ -8739,6 +8758,7 @@ int ExtractOBFVGZones(
//
// Detecting FVG ...
idx = -1;
for (int j = 0; j < ArraySize(tmpFVGs); j++)
{
//
@@ -8784,6 +8804,7 @@ int ExtractOBFVGZones(
}
//
idx = j;
iOBFVG.fvg = jFVG;
}
@@ -8796,6 +8817,18 @@ int ExtractOBFVGZones(
continue;
}
//
// Remove Selected FVG from List ...
if (IsValidIndex(idx))
{
//
ArrayRemove(
tmpFVGs,
idx,
1 //
);
}
//
// TODO: Detect Other POI(s) ...
@@ -8809,6 +8842,9 @@ int ExtractOBFVGZones(
continue;
}
//
iOBFVG.UpdateTo(cTime);
//
AddRef(
iOBFVG,