Fix Bullish SLs on Activated Box Signalling ...
This commit is contained in:
@@ -280,33 +280,6 @@ class XCX121SMCXWZSignalDetector : public XCBase
|
||||
|
||||
//
|
||||
// Detect Signal Box ...
|
||||
|
||||
// //
|
||||
// bool isZoneActivated =
|
||||
// hasWorkingZone &&
|
||||
// hasWaitingZones &&
|
||||
// workingZone.IsZoneActivated(
|
||||
// activatedZoneIDX,
|
||||
// activatedFVGIDX,
|
||||
// signalBoxDir,
|
||||
// signalProvider,
|
||||
// provider,
|
||||
// zIndex //
|
||||
// );
|
||||
|
||||
//
|
||||
// hasSignalBox =
|
||||
// hasWorkingZone &&
|
||||
// hasWaitingBoxes &&
|
||||
// workingZone.IsBoxActivated(
|
||||
// signalBox,
|
||||
// signalBoxDir,
|
||||
// signalProvider,
|
||||
// provider,
|
||||
// zIndex //
|
||||
// );
|
||||
|
||||
//
|
||||
hasSignalBox =
|
||||
hasWorkingZone &&
|
||||
workingZone.DetectSignalConditions(
|
||||
@@ -474,17 +447,37 @@ class XCX121SMCXWZSignalDetector : public XCBase
|
||||
else if (signalProvider == X121SMC_XWZ_PROVIDER_ACTIVATED_BOX)
|
||||
{
|
||||
//
|
||||
iSL = MathMax(
|
||||
provider.decisionXConditions.se1Buffer[1],
|
||||
provider.decisionXConditions.se2Buffer[1] //
|
||||
);
|
||||
if (iSL > 0)
|
||||
if (isBullish)
|
||||
{
|
||||
//
|
||||
Add(
|
||||
iSL,
|
||||
sls //
|
||||
iSL = MathMin(
|
||||
provider.decisionXConditions.le1Buffer[1],
|
||||
provider.decisionXConditions.le2Buffer[1] //
|
||||
);
|
||||
if (iSL > 0)
|
||||
{
|
||||
//
|
||||
Add(
|
||||
iSL,
|
||||
sls //
|
||||
);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
//
|
||||
iSL = MathMax(
|
||||
provider.decisionXConditions.se1Buffer[1],
|
||||
provider.decisionXConditions.se2Buffer[1] //
|
||||
);
|
||||
if (iSL > 0)
|
||||
{
|
||||
//
|
||||
Add(
|
||||
iSL,
|
||||
sls //
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (signalProvider == X121SMC_XWZ_PROVIDER_ACTIVATED_AREA)
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user