apply some fix in Freezing Mechanism ...

This commit is contained in:
2024-09-21 05:53:47 +03:30
parent f6e6df4a32
commit 09fdf359ce
@@ -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();