Liquidity_Predator/Visualize/Boxes/M_HandleBoxes.mqh

34 lines
843 B
MQL5
Raw Permalink Normal View History

2026-02-12 17:09:03 +01:00
bool M_HandleBoxes()
{
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;
}