FVG touch

This commit is contained in:
Bell
2026-03-11 19:59:42 +07:00
parent f1a94e4df7
commit de238fd0b3
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ input int InpFVGLookbackBars = 100;
input int InpFVGMaxAgeBars = 50;
input double InpFVGMinBodyPct = 50.0;
input double InpFVGMinSizePoints = 0;
input double InpFVGTouchedPercent = 40.0;
input double InpFVGTouchedPercent = 33.0;
input double InpFVGMinGapVsImpulsePct = 30.0;
input double InpFVGMaxOuterBarRatio = 2.0;
+3 -3
View File
@@ -258,7 +258,7 @@ bool PlaceLimitForZone(const FVGZone &zone)
if(zone.type == FVG_BULLISH)
{
// Entry: 40% từ đỉnh vùng xuống
// Entry: 35% từ đỉnh vùng xuống
entryPrice = zone.upperEdge - zoneHeight * touchRatio;
slPrice = zone.slReferencePrice;
@@ -269,7 +269,7 @@ bool PlaceLimitForZone(const FVGZone &zone)
}
else // FVG_BEARISH
{
// Entry: 40% từ đáy vùng lên
// Entry: 35% từ đáy vùng lên
entryPrice = zone.lowerEdge + zoneHeight * touchRatio;
slPrice = zone.slReferencePrice;
@@ -333,7 +333,7 @@ void ManageFVGTrades()
if(currentLimits >= InpMaxLimitOrders)
return;
// Đặt lệnh limit khi giá vừa chạm cạnh ngoài FVG (trước khi fill đủ 40%)
// Đặt lệnh limit khi giá vừa chạm cạnh ngoài FVG (trước khi fill đủ 35%)
ENUM_TREND_DIRECTION trend = g_CurrentTrend;
string symbol = GetTradeSymbol();
double lastHigh = iHigh(symbol, InpTimeframe, 1);