disable account guard ...
This commit is contained in:
@@ -5301,31 +5301,31 @@ protected:
|
|||||||
|
|
||||||
//
|
//
|
||||||
// Checking Call Margin ...
|
// Checking Call Margin ...
|
||||||
if (drawdown > workingMargin)
|
// if (drawdown > workingMargin)
|
||||||
{
|
// {
|
||||||
//
|
// //
|
||||||
int maxInDPIDX = FindMaxDrawdownIndex(
|
// int maxInDPIDX = FindMaxDrawdownIndex(
|
||||||
positions //
|
// positions //
|
||||||
);
|
// );
|
||||||
if (IsValidIndex(maxInDPIDX))
|
// if (IsValidIndex(maxInDPIDX))
|
||||||
{
|
// {
|
||||||
//
|
// //
|
||||||
// We Close Max In Drawdown Position to Guard Account ...
|
// // We Close Max In Drawdown Position to Guard Account ...
|
||||||
string comment = XEQMSupportToken + " Close Max Due Guard ...";
|
// string comment = XEQMSupportToken + " Close Max Due Guard ...";
|
||||||
bool isClosed = Close(
|
// bool isClosed = Close(
|
||||||
positions[maxInDPIDX].ticket,
|
// positions[maxInDPIDX].ticket,
|
||||||
comment //
|
// comment //
|
||||||
);
|
// );
|
||||||
if (isClosed)
|
// if (isClosed)
|
||||||
{
|
// {
|
||||||
//
|
// //
|
||||||
string message = XEQMSupportToken + " Close Position (" + ToString(positions[maxInDPIDX].ticket) + ") Due Guard Account ...";
|
// string message = XEQMSupportToken + " Close Position (" + ToString(positions[maxInDPIDX].ticket) + ") Due Guard Account ...";
|
||||||
|
|
||||||
//
|
// //
|
||||||
Alert(message);
|
// Alert(message);
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user