From 1f9c79ea424af41fc1ba613d9e04775dfc1095e3 Mon Sep 17 00:00:00 2001 From: Hadi Khazaee Asl Date: Tue, 30 Jul 2024 04:55:38 +0330 Subject: [PATCH] last ... --- Experts/x-test-strategies.ea.mq5 | 12 ++++++---- Strategies/x-saherelm.xchkm.strategy.mq5 | 30 ++++++++++++------------ 2 files changed, 22 insertions(+), 20 deletions(-) diff --git a/Experts/x-test-strategies.ea.mq5 b/Experts/x-test-strategies.ea.mq5 index d9e863dd..376c462d 100644 --- a/Experts/x-test-strategies.ea.mq5 +++ b/Experts/x-test-strategies.ea.mq5 @@ -45,8 +45,8 @@ int eaMaxAllowedLongs = 1; // Max Allowed Long Positions int eaMaxAllowedShorts = 1; // Max Allowed Short Positions // -double eaTPPoint = 100; // Static TP Point -double eaSLPoint = 100; // Static SL Point +double eaTPPoint = 200; // Static TP Point +double eaSLPoint = 200; // Static SL Point // bool eaIgnoreTP = false; // Ignore TP @@ -307,12 +307,12 @@ bool InitialEA() eaSlippage, eaMagicNumber, true, // Ignore Signal Execution - false, // Use TP SL Point + true, // Use TP SL Point false, // Use Max eaTPPoint, // TP eaSLPoint, // SL eaIgnoreTP, - false, // eaIgnoreSL, + eaIgnoreSL, eaAllowLong, eaAllowShort, eaMaxAllowedLongs, // Max Longs @@ -323,6 +323,7 @@ bool InitialEA() xchmStrategy.EnableXCHSTR(false); xchmStrategy.EnableXCHCHE(true); xchmStrategy.SetAlertLogAlerts(true); + xchmStrategy.DrawImportantAreas(false); xchmStrategy.SetAlertEnableAlerts(true); xchmStrategy.AddSignalEventHandler(OnSignalRecieved); RegisterStrategy(xchmStrategy); @@ -366,7 +367,7 @@ bool InitialEA() eaTPPoint, // TP eaSLPoint, // SL eaIgnoreTP, - true, // eaIgnoreSL, + eaIgnoreSL, eaAllowLong, eaAllowShort, eaMaxAllowedLongs, // Max Longs @@ -377,6 +378,7 @@ bool InitialEA() iStrategy.EnableXCHSTR(true); iStrategy.EnableXCHCHE(true); iStrategy.SetAlertLogAlerts(true); + iStrategy.DrawImportantAreas(false); iStrategy.SetAlertEnableAlerts(true); iStrategy.AddSignalEventHandler(OnSignalRecieved); diff --git a/Strategies/x-saherelm.xchkm.strategy.mq5 b/Strategies/x-saherelm.xchkm.strategy.mq5 index cb1489ab..60bf1014 100644 --- a/Strategies/x-saherelm.xchkm.strategy.mq5 +++ b/Strategies/x-saherelm.xchkm.strategy.mq5 @@ -883,13 +883,13 @@ public: // bool chcheHasLong = // - // hasBullishPower && - // cBar.IsBullish() && - // hasBullishPattern && - // hasBullishPressure && - // cBar.low > chcheMinBullish && - chcheConditions.isBullishPowerUp // && - // chcheConditions.isCStrongBullish + cBar.IsBullish() && + hasBullishPattern && + (hasBullishPower || + hasBullishPressure) && + chcheConditions.isBullishPowerUp && + (chcheConditions.isCStrongBullish || + chcheConditions.isSStrongBullish) // ; @@ -919,14 +919,14 @@ public: { // bool chcheHasShort = - // - // hasBearishPower && - // cBar.IsBearish() && - // hasBearishPattern && - // hasBearishPressure && - // cBar.high < chcheMaxBearish && - chcheConditions.isBearishPowerUp // && - // chcheConditions.isCStrongBearish + + cBar.IsBearish() && + hasBearishPattern && + (hasBearishPower || + hasBearishPressure) && + chcheConditions.isBearishPowerUp && + (chcheConditions.isCStrongBearish || + chcheConditions.isSStrongBearish) // ;