From 1205746aa8eaa900d9914cb20daf1c7476ead589 Mon Sep 17 00:00:00 2001 From: Bell Date: Sat, 13 Dec 2025 23:08:37 +0700 Subject: [PATCH] Add condition: Only trade when HTF trend not 0 --- Experts/EA_ICT_v2.mq5 | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Experts/EA_ICT_v2.mq5 b/Experts/EA_ICT_v2.mq5 index 42ffc1c..896e27d 100644 --- a/Experts/EA_ICT_v2.mq5 +++ b/Experts/EA_ICT_v2.mq5 @@ -11,7 +11,7 @@ bool PrintEntryLog = true; // nếu true -> in log chỉ liên quan tới entry input double RishPercent = 1.0; // % vốn rủi ro cho mỗi lệnh -input double RiskRewardRatio = 6.0; // tỉ lệ R:R mặc định +input double RiskRewardRatio = 3.0; // tỉ lệ R:R mặc định input double moveSLRange = 1; // Nomal moving SL: số R cần đạt để dời SL về entry (BE) input int MaxLimitOrderTime = 120; @@ -1786,6 +1786,14 @@ bool CheckValidEntry( if(mssDirection == 0) return false; + // HTF phải có trend rõ ràng + if(htfTrend == 0) + { + if(PrintEntryLog) + Print("CheckValidEntry FAIL: HTF is SIDEWAY"); + return false; + } + if(fvgIndex < 0 || fvgIndex >= FVG_count) { if(PrintEntryLog)