This commit is contained in:
2024-06-18 10:40:41 +03:30
parent 13eeb5d541
commit 3fffd77a6b
2 changed files with 36 additions and 34 deletions
+21 -19
View File
@@ -4387,11 +4387,13 @@ private:
}
//
double profit = SpecifiedCalculatePositionsProfit(positions);
double profit = SpecifiedIsPositionsReadyForHedge(
positions,
0.15,
0.01 //
);
result =
hedgingProfit > 0
? profit > 0 && profit > hedgingProfit
: profit <= hedgingProfit;
profit > hedgingProfit;
if (!result)
{
return result;
@@ -4528,22 +4530,22 @@ private:
return;
}
//
isHedged = DoEQMForceClose(0.5);
if (isHedged)
{
//
ForceState(false);
return;
}
// //
// isHedged = DoEQMForceClose(0.5);
// if (isHedged)
// {
// //
// ForceState(false);
// return;
// }
isHedged = DoEQMForceClose(0.3);
if (isHedged)
{
//
ForceState(false);
return;
}
// isHedged = DoEQMForceClose(0.3);
// if (isHedged)
// {
// //
// ForceState(false);
// return;
// }
//
return;