From 8e34ef9c9466989b1df4a47b1b7a80f91e78cd53 Mon Sep 17 00:00:00 2001 From: Hadi Khazaee Asl Date: Sat, 22 Feb 2025 19:05:05 +0330 Subject: [PATCH] add support for verify points using mA ... --- Indicators/x-saherelm.x121.xwz.mq5 | 83 +++++++++++++++++++++++++++++- 1 file changed, 82 insertions(+), 1 deletion(-) diff --git a/Indicators/x-saherelm.x121.xwz.mq5 b/Indicators/x-saherelm.x121.xwz.mq5 index e36232c7..8fbdca72 100644 --- a/Indicators/x-saherelm.x121.xwz.mq5 +++ b/Indicators/x-saherelm.x121.xwz.mq5 @@ -326,6 +326,7 @@ bool mXWZDetectSupportZones = true; bool mXWZDetectResistanceZones = true; // +bool filterPOIsUsingMa = true; // Filter POI(s) Using MA bool filterPOIsUsingZones = false; // Filter POI(s) Using Zones // @@ -1249,6 +1250,14 @@ void CalculateValues( ) ? selectedValue : 0; + + // + iBullMomentumValue = + !filterPOIsUsingMa + ? iBullMomentumValue + : iBullMomentumValue < iMa + ? iBullMomentumValue + : 0; } // @@ -1269,6 +1278,14 @@ void CalculateValues( ) ? selectedValue : 0; + + // + iBearMomentumValue = + !filterPOIsUsingMa + ? iBearMomentumValue + : iBearMomentumValue > iMa + ? iBearMomentumValue + : 0; } // @@ -1317,6 +1334,14 @@ void CalculateValues( ) ? selectedValue : 0; + + // + iBullRejectionValue = + !filterPOIsUsingMa + ? iBullRejectionValue + : iBullRejectionValue < iMa + ? iBullRejectionValue + : 0; } // @@ -1337,6 +1362,14 @@ void CalculateValues( ) ? selectedValue : 0; + + // + iBearRejectionValue = + !filterPOIsUsingMa + ? iBearRejectionValue + : iBearRejectionValue > iMa + ? iBearRejectionValue + : 0; } // @@ -1386,6 +1419,14 @@ void CalculateValues( ) ? selectedValue : 0; + + // + iBullPinValue = + !filterPOIsUsingMa + ? iBullPinValue + : iBullPinValue < iMa + ? iBullPinValue + : 0; } // @@ -1406,6 +1447,14 @@ void CalculateValues( ) ? selectedValue : 0; + + // + iBearPinValue = + !filterPOIsUsingMa + ? iBearPinValue + : iBearPinValue > iMa + ? iBearPinValue + : 0; } // @@ -1454,6 +1503,14 @@ void CalculateValues( ) ? selectedValue : 0; + + // + iBullEngulfValue = + !filterPOIsUsingMa + ? iBullEngulfValue + : iBullEngulfValue < iMa + ? iBullEngulfValue + : 0; } // @@ -1474,6 +1531,14 @@ void CalculateValues( ) ? selectedValue : 0; + + // + iBearEngulfValue = + !filterPOIsUsingMa + ? iBearEngulfValue + : iBearEngulfValue > iMa + ? iBearEngulfValue + : 0; } // @@ -1521,7 +1586,15 @@ void CalculateValues( ) ? selectedValue : 0; - } + + // + iSwingLowValue = + !filterPOIsUsingMa + ? iSwingLowValue + : iSwingLowValue < iMa + ? iSwingLowValue + : 0; + } // if (isSwingHigh) @@ -1541,6 +1614,14 @@ void CalculateValues( ) ? selectedValue : 0; + + // + iSwingHighValue = + !filterPOIsUsingMa + ? iSwingHighValue + : iSwingHighValue > iMa + ? iSwingHighValue + : 0; } //