From 09fdf359cef9237db86872f8262314f92badb31f Mon Sep 17 00:00:00 2001 From: Hadi Khazaee Asl Date: Sat, 21 Sep 2024 05:53:47 +0330 Subject: [PATCH] apply some fix in Freezing Mechanism ... --- Classes/x-saherelm.x121.xtrade.handler.class.mq5 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Classes/x-saherelm.x121.xtrade.handler.class.mq5 b/Classes/x-saherelm.x121.xtrade.handler.class.mq5 index 442643d5..50e39fbd 100644 --- a/Classes/x-saherelm.x121.xtrade.handler.class.mq5 +++ b/Classes/x-saherelm.x121.xtrade.handler.class.mq5 @@ -3240,7 +3240,11 @@ class X121SCTradeHandler : public XSCBaseAlert } // - if (canFreeze && position.profit < 0 && supportsCount <= 0 && profitInPoint >= freezePoint && !mData[iDX].freezed) + if (canFreeze && + supportsCount <= 0 && + position.profit < 0 && + !mData[iDX].freezed && + MathAbs(profitInPoint) >= freezePoint) { // bool removeTPSL = RemoveFreezedPositionsTPSL();