prepare all materials for implementing new test strategy ...

This commit is contained in:
2024-12-25 00:53:38 +03:30
parent 0a4859982b
commit aa1ffb3ed9
6 changed files with 1890 additions and 1134 deletions
@@ -3015,6 +3015,22 @@ class XC121SMCTradeHandler : public XCBaseAlert
}
}
//
// Check Spread ...
double spread = GetSpread(signal.symbol);
double maxAllowedSpread = MaxAllowedSpread();
if (maxAllowedSpread > 0)
{
//
result = spread <= maxAllowedSpread;
if (!result)
{
//
state = X_SIGNAL_EXECUTION_FAILED_SPREAD;
return result;
}
}
//
return result;
}