From 7827211145738865f879299012ffeac24375b3a2 Mon Sep 17 00:00:00 2001 From: Hadi Khazaee Asl Date: Thu, 30 May 2024 18:27:20 +0330 Subject: [PATCH] last ... --- Classes/x-saherelm.x121.xea.class.mq5 | 8 +++----- Experts/x-test.x121ea.mq5 | 9 ++++----- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/Classes/x-saherelm.x121.xea.class.mq5 b/Classes/x-saherelm.x121.xea.class.mq5 index c8da30f1..db3eaf30 100644 --- a/Classes/x-saherelm.x121.xea.class.mq5 +++ b/Classes/x-saherelm.x121.xea.class.mq5 @@ -788,7 +788,8 @@ public: void HandleTrailManagement(XPosition &positions[]) { // - return; + // return; + // // TODO: // Make them Configurable ... @@ -818,10 +819,7 @@ public: // bool canManageState = // - true - // iPosition.provider != XEQMSupportToken - // && - // iPosition.provider != "WSC" + iPosition.provider == XEQMSupportToken // ; diff --git a/Experts/x-test.x121ea.mq5 b/Experts/x-test.x121ea.mq5 index 99b6e6e9..b9edfefa 100644 --- a/Experts/x-test.x121ea.mq5 +++ b/Experts/x-test.x121ea.mq5 @@ -38,13 +38,12 @@ input string x121EASymbols = "EURUSDb"; // Symbols input bool x121EAAllowLong = true; // Allow Long Trades input bool x121EAAllowShort = true; // Allow Short Trades input int x121EAManageInterval = 0; // Manager Check Intervals Seconds -input int x121EAMaxAllowedPositions = 10; // Max Allowed Positions +input int x121EAMaxAllowedPositions = 5; // Max Allowed Positions input double x121EAMaxAllowedSpread = 0; // Max Allowed Spred for Opening Trades input double x121EAMinProfitPerTrade = 0.6; // Min Profit Per Trade based On Volume Factor (Hedge) input double x121EAMinProfitPerVolumeFactor = 0.01; // Min Volume Factor for Calculating Profit (Hedge) input double x121EAMaxAllowedDrawdownFactor = 0.002; // Max Allowed Drawdown Factor -// -input double x121EAVolume = 0.01; // Static Volume +input double x121EAVolume = 0.01; // Static Volume // // Vars ... @@ -980,7 +979,7 @@ void ApplyPreDefineConfigurations(X121ProviderDescriptor &iDescriptor) { // bool isX786 = false; - bool isX121 = true; + bool isX121 = false; // if (isX786) @@ -993,7 +992,7 @@ void ApplyPreDefineConfigurations(X121ProviderDescriptor &iDescriptor) // iDescriptor.inputs.mrbInputs.showFastMa = isX121; iDescriptor.inputs.mrbInputs.showSlowMa = isX121; - iDescriptor.inputs.mrbInputs.showRibbon = isX121 && false; + iDescriptor.inputs.mrbInputs.showRibbon = isX121; // iDescriptor.inputs.mcInputs.showFastMa = isX121;