From 26fa644e6e177f1692fe1195f6742094ea102c4b Mon Sep 17 00:00:00 2001 From: Hadi Khazaee Asl Date: Thu, 30 May 2024 17:13:27 +0330 Subject: [PATCH] last ... --- Classes/x-saherelm.x121.xea.class.mq5 | 4 ++-- Experts/x-test.x121ea.mq5 | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Classes/x-saherelm.x121.xea.class.mq5 b/Classes/x-saherelm.x121.xea.class.mq5 index dea2bb48..0492d217 100644 --- a/Classes/x-saherelm.x121.xea.class.mq5 +++ b/Classes/x-saherelm.x121.xea.class.mq5 @@ -473,8 +473,8 @@ public: bool canAccept = // isLong - ? longs < shorts - : shorts < longs + ? longs < shorts || longProfits > shortProfits + : shorts < longs || shortProfits > longProfits // ; if (!canAccept) diff --git a/Experts/x-test.x121ea.mq5 b/Experts/x-test.x121ea.mq5 index b4aa60c6..99b6e6e9 100644 --- a/Experts/x-test.x121ea.mq5 +++ b/Experts/x-test.x121ea.mq5 @@ -38,9 +38,9 @@ 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 = 5; // Max Allowed Positions +input int x121EAMaxAllowedPositions = 10; // Max Allowed Positions input double x121EAMaxAllowedSpread = 0; // Max Allowed Spred for Opening Trades -input double x121EAMinProfitPerTrade = 4; // Min Profit Per Trade based On Volume Factor (Hedge) +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 //