This commit is contained in:
2024-05-28 16:32:17 +03:30
parent 651e3d7c1e
commit dd276cf704
3 changed files with 31 additions and 9 deletions
+7 -1
View File
@@ -353,6 +353,12 @@ public:
// Make them Configurable ...
int numberOfPositionsForHege = 3;
//
if (!IsHedgeEnable())
{
return;
}
//
int positionsCount = ArraySize(positions);
if (positionsCount <= 0)
@@ -755,7 +761,7 @@ public:
//
bool canManageState =
//
iPosition.provider != XEQMSupportToken
iPosition.provider != XEQMSupportToken
// &&
// iPosition.provider != "WSC"
//
+15
View File
@@ -2411,6 +2411,21 @@ public:
mMinProfitPerVolumeFactor = value;
}
//
bool IsHedgeEnable()
{
//
bool result =
//
mMinProfitPerTrade > 0 &&
mMinProfitPerVolumeFactor > 0
//
;
//
return result;
}
//
// Alert ...