From c234592b3b9b6e03ffeddecdc5f0c9c0159d8fa1 Mon Sep 17 00:00:00 2001 From: Hadi Khazaee Asl Date: Sun, 30 Jun 2024 15:35:42 +0330 Subject: [PATCH] disable account guard ... --- Classes/x-saherelm.x121.setup.xea.mq5 | 48 +++++++++++++-------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/Classes/x-saherelm.x121.setup.xea.mq5 b/Classes/x-saherelm.x121.setup.xea.mq5 index 72be6d19..cc53f016 100644 --- a/Classes/x-saherelm.x121.setup.xea.mq5 +++ b/Classes/x-saherelm.x121.setup.xea.mq5 @@ -5301,31 +5301,31 @@ protected: // // Checking Call Margin ... - if (drawdown > workingMargin) - { - // - int maxInDPIDX = FindMaxDrawdownIndex( - positions // - ); - if (IsValidIndex(maxInDPIDX)) - { - // - // We Close Max In Drawdown Position to Guard Account ... - string comment = XEQMSupportToken + " Close Max Due Guard ..."; - bool isClosed = Close( - positions[maxInDPIDX].ticket, - comment // - ); - if (isClosed) - { - // - string message = XEQMSupportToken + " Close Position (" + ToString(positions[maxInDPIDX].ticket) + ") Due Guard Account ..."; + // if (drawdown > workingMargin) + // { + // // + // int maxInDPIDX = FindMaxDrawdownIndex( + // positions // + // ); + // if (IsValidIndex(maxInDPIDX)) + // { + // // + // // We Close Max In Drawdown Position to Guard Account ... + // string comment = XEQMSupportToken + " Close Max Due Guard ..."; + // bool isClosed = Close( + // positions[maxInDPIDX].ticket, + // comment // + // ); + // if (isClosed) + // { + // // + // string message = XEQMSupportToken + " Close Position (" + ToString(positions[maxInDPIDX].ticket) + ") Due Guard Account ..."; - // - Alert(message); - } - } - } + // // + // Alert(message); + // } + // } + // } } //