From 8a329570a5a9bdf81c01da5e2f9710b5846b5564 Mon Sep 17 00:00:00 2001 From: Hadi Khazaee Asl Date: Tue, 13 May 2025 16:32:44 +0330 Subject: [PATCH] last ... --- XCAEA/Libraries/xcaea.signaller.lib.mq5 | 11 +++++++++ XCAEA/Signals/xcaea.signaller.class.mq5 | 30 ++++++++++++------------- 2 files changed, 26 insertions(+), 15 deletions(-) diff --git a/XCAEA/Libraries/xcaea.signaller.lib.mq5 b/XCAEA/Libraries/xcaea.signaller.lib.mq5 index 7e75e2cf..06a16ec0 100644 --- a/XCAEA/Libraries/xcaea.signaller.lib.mq5 +++ b/XCAEA/Libraries/xcaea.signaller.lib.mq5 @@ -1226,6 +1226,17 @@ bool DetectDecisionZone( dir = X_DIRECTION_NONE; } + // + // Check Box Size ... + double range = box.GetRange(); + double maxAllowedBoxRange = 400; + double ponts = GetPoints(box.symbol); + bool isTooLarget = range > (maxAllowedBoxRange * points); + if (isTooLarget) + { + Print("Too Large ..."); + } + // // Check Box is Prepared or Not ... result = box.IsValid(); diff --git a/XCAEA/Signals/xcaea.signaller.class.mq5 b/XCAEA/Signals/xcaea.signaller.class.mq5 index f6a3a5ce..d625f39a 100644 --- a/XCAEA/Signals/xcaea.signaller.class.mq5 +++ b/XCAEA/Signals/xcaea.signaller.class.mq5 @@ -238,7 +238,7 @@ class XCXCAEASignaller : XCBase // // Draw Pivots ... - drawer.Draw(cTime); + // drawer.Draw(cTime); // // Setup Conditions ... @@ -610,15 +610,15 @@ class XCXCAEASignaller : XCBase ); // - // rfReward = risk * 2.85; - // rfPrice = - // isBullish - // ? entry + rfReward - // : entry - rfReward; - // Add( - // rfPrice, - // conditions.targets // - // ); + rfReward = risk * 2.95; + rfPrice = + isBullish + ? entry + rfReward + : entry - rfReward; + Add( + rfPrice, + conditions.targets // + ); // // Handling Partial Close ... @@ -834,8 +834,8 @@ class XCXCAEASignaller : XCBase // XCA ... // - inputs.caInputs.sarStep = 0.001; - inputs.caInputs.sarMax = 0.05; + // inputs.caInputs.sarStep = 0.001; + // inputs.caInputs.sarMax = 0.05; // inputs.caInputs.supResSmoothingLength = 7; @@ -847,7 +847,7 @@ class XCXCAEASignaller : XCBase inputs.caInputs.showMAH = false; inputs.caInputs.showMAL = false; inputs.caInputs.showMAC = false; - inputs.caInputs.showSar = true; + inputs.caInputs.showSar = false; inputs.caInputs.showVidya = false; inputs.caInputs.showTrend = false; inputs.caInputs.showSwings = true; @@ -858,7 +858,7 @@ class XCXCAEASignaller : XCBase inputs.caInputs.showFiboLevel5 = false; inputs.caInputs.showPeaksAndVales = true; inputs.caInputs.showPeakAndValeGolden = false; - inputs.caInputs.showSupportAndResistance = true; + inputs.caInputs.showSupportAndResistance = false; // // XOSCS ... @@ -915,7 +915,7 @@ class XCXCAEASignaller : XCBase detector.maxAllowedPivots = 0; detector.pivotVerifications = 5; detector.ticksDividerInPoints = 15; - detector.pivotDetectionLoopbac = 1000; + detector.pivotDetectionLoopbac = 200; // // Configure Detector ...