This commit is contained in:
2024-06-24 11:17:18 +03:30
parent 2d817b10ef
commit 85ba097546
+14 -1
View File
@@ -5009,7 +5009,15 @@ private:
int maxInDIDX = FindMaxDrawdownIndex(
positions //
);
if (IsValidIndex(maxInDIDX))
int setupIDX = FindSetupIndex(positions[maxInDIDX].symbol);
if (IsValidIndex(maxInDIDX) && IsValidIndex(setupIDX))
{
//
// Check Position Age ...
int age = GetAge(
positions[maxInDIDX],
mSetups[setupIDX].GetPeriod(););
if (age >= 700)
{
//
string comment = XEQMSupportToken + " Close Max In D ...";
@@ -5025,6 +5033,11 @@ private:
}
}
}
}
//
// Find Max In Profit ...
// and Min In Profit ...
//
}