From 53642a561325615b8f97b9cfcd17dd4387d83d57 Mon Sep 17 00:00:00 2001 From: Bell Date: Wed, 11 Mar 2026 22:22:44 +0700 Subject: [PATCH] =?UTF-8?q?Update=20mitigation=20logic,=20=C4=91=C3=B3ng?= =?UTF-8?q?=20n=E1=BA=BFn=20xuy=C3=AAn=20fvg=20m=E1=BB=9Bi=20t=C3=ADnh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Experts/SimpleFVG/FVG.mqh | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/Experts/SimpleFVG/FVG.mqh b/Experts/SimpleFVG/FVG.mqh index 13e31f3..4bb5e36 100644 --- a/Experts/SimpleFVG/FVG.mqh +++ b/Experts/SimpleFVG/FVG.mqh @@ -314,18 +314,18 @@ void CheckMitigationStatus() if(IsZoneMitigated(g_FVGZones[i]) || !IsZoneActive(g_FVGZones[i])) continue; - double lastLow = iLow (symbol, InpTimeframe, 1); - double lastHigh = iHigh(symbol, InpTimeframe, 1); + double lastLow = iLow (symbol, InpTimeframe, 1); + double lastHigh = iHigh (symbol, InpTimeframe, 1); + double lastClose = iClose(symbol, InpTimeframe, 1); double zoneHeight = g_FVGZones[i].upperEdge - g_FVGZones[i].lowerEdge; if(zoneHeight <= 0) continue; - //--- Bullish FVG: price comes down into the gap --- + //--- Bullish FVG: mitigated chỉ khi nến ĐÓNG dưới FVG (rút râu chưa tính) --- if(g_FVGZones[i].type == FVG_BULLISH) { - // Mitigated: price drops through lower edge - if(lastLow <= g_FVGZones[i].lowerEdge) + if(lastClose <= g_FVGZones[i].lowerEdge) { g_FVGZones[i].status = MITIGATED; if(InpDebugLog) @@ -343,11 +343,10 @@ void CheckMitigationStatus() g_FVGZones[i].status = TOUCHED; } - //--- Bearish FVG: price goes up into the gap --- + //--- Bearish FVG: mitigated chỉ khi nến ĐÓNG trên FVG (rút râu chưa tính) --- if(g_FVGZones[i].type == FVG_BEARISH) { - // Mitigated: price rises through upper edge - if(lastHigh >= g_FVGZones[i].upperEdge) + if(lastClose >= g_FVGZones[i].upperEdge) { g_FVGZones[i].status = MITIGATED; if(InpDebugLog)