From 5843ba0dc74e7c2b410bba387b802cb97ffeb726 Mon Sep 17 00:00:00 2001 From: Hadi Khazaee Asl Date: Sun, 22 Sep 2024 09:22:33 +0330 Subject: [PATCH] last ... --- Classes/x-saherelm.x121.xtrade.handler.class.mq5 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Classes/x-saherelm.x121.xtrade.handler.class.mq5 b/Classes/x-saherelm.x121.xtrade.handler.class.mq5 index 98b8d0d1..6c6e922a 100644 --- a/Classes/x-saherelm.x121.xtrade.handler.class.mq5 +++ b/Classes/x-saherelm.x121.xtrade.handler.class.mq5 @@ -2650,7 +2650,8 @@ class X121SCTradeHandler : public XSCBaseAlert bool allowFreeze = AllowFreeze(); double freezeDistance = FreezeDistance(); bool removeFreezedPositionTPSL = RemoveFreezedPositionTPSL(); - bool canFreeze = !isInProfit && + bool canFreeze = allowFreeze && + !isInProfit && profitInPoint < 0 && freezeDistance > 0 && !mData[iDX].freezed &&