2026-02-12 17:09:03 +01:00
|
|
|
bool M_HandleBoxes()
|
|
|
|
|
{
|
2026-02-16 19:36:15 +01:00
|
|
|
datetime barTime = iTime(_Symbol, PERIOD_CURRENT, 0);
|
|
|
|
|
|
2026-04-13 19:17:09 +02:00
|
|
|
if(1==0)
|
2026-02-12 17:09:03 +01:00
|
|
|
{
|
2026-04-13 19:17:09 +02:00
|
|
|
if(!M_FiltersOK())
|
2026-02-12 17:09:03 +01:00
|
|
|
{
|
2026-04-13 19:17:09 +02:00
|
|
|
if(stGVL.bFilterActive)
|
|
|
|
|
{
|
|
|
|
|
// Filter is already active, only extend
|
|
|
|
|
M_ExtendBox(stGVL.Rect_Background, stGVL.Rect_ActBackGround_Number);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
stGVL.bFilterActive = true;
|
|
|
|
|
stGVL.Rect_ActBackGround_Number = stGVL.Rect_ActBackGround_Number + 1;
|
|
|
|
|
|
|
|
|
|
M_CreateBox(stGVL.Rect_Background, stGVL.Rect_ActBackGround_Number, barTime, barTime, 1.2, 0.9, clrRed);
|
|
|
|
|
}
|
2026-02-12 17:09:03 +01:00
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
2026-04-13 19:17:09 +02:00
|
|
|
stGVL.bFilterActive = false;
|
2026-02-12 17:09:03 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-16 18:37:16 +01:00
|
|
|
if(stGVL.LastFVGTop != 0 && stGVL.LastFVGBottom != 0)
|
|
|
|
|
{
|
|
|
|
|
M_ExtendBox(stGVL.Rect_FVG, stGVL.Rect_ActFVG_Number);
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-12 17:09:03 +01:00
|
|
|
return true;
|
|
|
|
|
}
|