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