From 00b503d80840b3f2fd94d6de591065c43846a25b Mon Sep 17 00:00:00 2001 From: Hadi Khazaee Asl Date: Sun, 23 Jun 2024 19:30:33 +0330 Subject: [PATCH] applying some Force State Handling senarios ... --- Classes/x-saherelm.x121.setup.xea.mq5 | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Classes/x-saherelm.x121.setup.xea.mq5 b/Classes/x-saherelm.x121.setup.xea.mq5 index 8c279a3c..e90c8cbf 100644 --- a/Classes/x-saherelm.x121.setup.xea.mq5 +++ b/Classes/x-saherelm.x121.setup.xea.mq5 @@ -4073,9 +4073,6 @@ public: // DoHedge(); - // - DoEQMForceClose(); - // // Handle Close All Positions on Specific Time ... DoEQMCloseOnSpecificTime(); @@ -4717,7 +4714,13 @@ private: // bool isForce = forceCount >= 1; - if (!isForce || !IsValidSize(setupsCount)) + if (!isForce) + { + return; + } + + // + if (!IsValidSize(setupsCount)) { return; }