From 6db303b53fbc04c42ba234543f3e77be87ef88f7 Mon Sep 17 00:00:00 2001 From: Hadi Khazaee Asl Date: Tue, 24 Jun 2025 03:43:07 +0330 Subject: [PATCH] last ... --- Indicators/x-saherelm.x121.xcatb.v1.mq5 | 48 +++++++++++++++++++++++-- 1 file changed, 46 insertions(+), 2 deletions(-) diff --git a/Indicators/x-saherelm.x121.xcatb.v1.mq5 b/Indicators/x-saherelm.x121.xcatb.v1.mq5 index 8de28aa1..73ac97a9 100644 --- a/Indicators/x-saherelm.x121.xcatb.v1.mq5 +++ b/Indicators/x-saherelm.x121.xcatb.v1.mq5 @@ -5257,6 +5257,46 @@ void DoProcess( // ; + // + // Conditions By ... + // - Rejecting Trend Line; + // - Trend Line is Over HK; + // - SAR Directional; + // - KI Directional; + // - HKS Directional; + + // + bool isTrendsBasedBullish = + // + isKIBullish && + isSarBullish && + isHKSBullish && + // + // TODO: Implement Trend Line is Over HKS MAX ... + // + // Rejectiong Trend Line ... + iPBar.IsBullish() && + iPBar.low < trendBuffer[barIndex + 1] && + iPBar.GetDown() > trendBuffer[barIndex + 1] + // + ; + + // + bool isTrendBasedBearish = + // + isKIBearish && + isSarBearish && + isHKSBearish && + // + // TODO: Implement Trend Line is Under HKS MIN ... + // + // Rejecting Trend Line ... + iPBar.IsBearish() && + iPBar.high > trendBuffer[barIndex + 1] && + iPBar.GetUp() < trendBuffer[barIndex + 1] + // + ; + // // Summarization Conditions ... @@ -5264,8 +5304,10 @@ void DoProcess( // Bullish ... mIsBullish = // + // false // isTBBullish && - isKIBullishBreakes + // isKIBullishBreakes + isTrendsBasedBullish // ; @@ -5273,8 +5315,10 @@ void DoProcess( // Bearish ... mIsBearish = // + // false // isTBBearish && - isKIBearishBreakes + // isKIBearishBreakes + isTrendBasedBearish // ;