disable account guard ...

This commit is contained in:
2024-06-30 15:35:42 +03:30
parent 4899534f90
commit c234592b3b
+24 -24
View File
@@ -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);
// }
// }
// }
}
//