This commit is contained in:
2025-03-12 13:33:44 +03:30
parent 30e6749e09
commit 935c8405fa
7 changed files with 1954 additions and 469 deletions
@@ -469,7 +469,7 @@ class XCX121SMCXWZSignalDetector : public XCBase
//
iAtr = provider.decisionXConditions.atrBuffer[1];
iAtr *= 1.5;
// //
// if (isBullish)
// {
@@ -508,7 +508,7 @@ class XCX121SMCXWZSignalDetector : public XCBase
{
//
iAtr = provider.decisionXConditions.atrBuffer[1];
iAtr *= 1.5;
iAtr *= 1.5;
}
//
@@ -831,8 +831,8 @@ class XCX121SMCXWZSignalDetector : public XCBase
//
// Summarize Results ...
result = hasPriority &&
hasSignalBox &&
hasRewardAmount;
hasSignalBox &&
hasRewardAmount;
//
if (result)
+29 -27
View File
@@ -938,10 +938,7 @@ struct X121SMCStrategyXWZWorkingZone
}
//
ENUM_X_DIRECTION trend;
result = IsValid();
//&&
// DetectOveralDirection(trend);
if (!result)
{
return result;
@@ -969,7 +966,7 @@ struct X121SMCStrategyXWZWorkingZone
// ---------------------------------------------
// XPVHK Conditions ...
// ---------------------------------------------
bool useSenario1 = true;
bool useSenario1 = false;
bool isSenario1Happend = false;
bool isSenario1Bullish = false;
bool isSenario1Bearish = false;
@@ -1023,30 +1020,35 @@ struct X121SMCStrategyXWZWorkingZone
if (has)
{
//
isSenario2Happend = cParser.HasSenario2Conditions(
X_CYCLE_DECISION,
trend,
breakedBoxes,
box,
dir,
provider,
barIndex //
);
//
isSenario2Bullish =
isSenario2Happend &&
IsBullish(dir);
//
isSenario2Bearish =
isSenario2Happend &&
IsBearish(dir);
//
if (isSenario2Happend)
ENUM_X_DIRECTION overalTrend;
bool hasTrend = DetectOveralTrend(overalTrend);
if (hasTrend)
{
signalProvider = X121SMC_XWZ_PROVIDER_ACTIVATED_BOX;
//
isSenario2Happend = cParser.HasSenario2Conditions(
X_CYCLE_DECISION,
breakedBoxes,
box,
dir,
provider,
barIndex //
);
//
isSenario2Bullish =
isSenario2Happend &&
IsBullish(dir);
//
isSenario2Bearish =
isSenario2Happend &&
IsBearish(dir);
//
if (isSenario2Happend)
{
signalProvider = X121SMC_XWZ_PROVIDER_ACTIVATED_BOX;
}
}
}
}