Last ...
This commit is contained in:
@@ -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"
|
||||
//
|
||||
|
||||
@@ -2411,6 +2411,21 @@ public:
|
||||
mMinProfitPerVolumeFactor = value;
|
||||
}
|
||||
|
||||
//
|
||||
bool IsHedgeEnable()
|
||||
{
|
||||
//
|
||||
bool result =
|
||||
//
|
||||
mMinProfitPerTrade > 0 &&
|
||||
mMinProfitPerVolumeFactor > 0
|
||||
//
|
||||
;
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
// Alert ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user