last try to debug Position Protecting ...
This commit is contained in:
@@ -2055,14 +2055,18 @@ class X121SCTradeHandler : public XSCBaseAlert
|
||||
|
||||
//
|
||||
double iSymbolPoint = GetPoints(iPosition.symbol);
|
||||
double iDistance = MathAbs(iPosition.profit) / iSymbolPoint;
|
||||
double iDistance = MathAbs(iPosition.profit) * iSymbolPoint;
|
||||
|
||||
//
|
||||
bool isDistancePassed = iDistance >= requiredDistance;
|
||||
bool isProtected = HandlePositionProtecting(iPosition);
|
||||
if (isProtected)
|
||||
if (isDistancePassed)
|
||||
{
|
||||
protectedPositions++;
|
||||
//
|
||||
bool isProtected = HandlePositionProtecting(iPosition);
|
||||
if (isProtected)
|
||||
{
|
||||
protectedPositions++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user