last ...
This commit is contained in:
@@ -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 ...
|
||||
|
||||
//
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user