This commit is contained in:
2025-03-21 03:04:33 +03:30
parent f59ec0c65f
commit 419d697eb8
4 changed files with 209 additions and 33 deletions
@@ -2981,6 +2981,32 @@ struct X121SMCStrategyConditionParser
tmpBoxes //
);
Clean(tmp);
//
// Fair Value Gaps ...
ToBox(
cState.bullishFairValueGaps,
tmp //
);
Copy(
tmp,
tmpBoxes,
false // Ignore Clean ...
);
Clean(tmp);
//
// Support Zones ...
ToBox(
cState.supportZones,
tmp //
);
Copy(
tmp,
tmpBoxes,
false // Ignore Clean ...
);
Clean(tmp);
}
else
{
@@ -2996,6 +3022,32 @@ struct X121SMCStrategyConditionParser
tmpBoxes //
);
Clean(tmp);
//
// Fair Value Gaps ...
ToBox(
cState.bearishFairValueGaps,
tmp //
);
Copy(
tmp,
tmpBoxes,
false // Ignore Clean ...
);
Clean(tmp);
//
// Resistance Zones ...
ToBox(
cState.resistanceZones,
tmp //
);
Copy(
tmp,
tmpBoxes,
false // Ignore Clean ...
);
Clean(tmp);
}
//
@@ -3445,6 +3497,32 @@ struct X121SMCStrategyConditionParser
tmpBoxes //
);
Clean(tmp);
//
// Fair Value Gaps ...
ToBox(
cState.bullishFairValueGaps,
tmp //
);
Copy(
tmp,
tmpBoxes,
false // Ignore Clean ...
);
Clean(tmp);
//
// Support Zones ...
ToBox(
cState.supportZones,
tmp //
);
Copy(
tmp,
tmpBoxes,
false // Ignore Clean ...
);
Clean(tmp);
}
else
{
@@ -3460,6 +3538,32 @@ struct X121SMCStrategyConditionParser
tmpBoxes //
);
Clean(tmp);
//
// Fair Value Gaps ...
ToBox(
cState.bearishFairValueGaps,
tmp //
);
Copy(
tmp,
tmpBoxes,
false // Ignore Clean ...
);
Clean(tmp);
//
// Resistance Zones ...
ToBox(
cState.resistanceZones,
tmp //
);
Copy(
tmp,
tmpBoxes,
false // Ignore Clean ...
);
Clean(tmp);
}
//
@@ -3875,6 +3979,32 @@ struct X121SMCStrategyConditionParser
tmpBoxes //
);
Clean(tmp);
//
// Fair Value Gaps ...
ToBox(
cState.bullishFairValueGaps,
tmp //
);
Copy(
tmp,
tmpBoxes,
false // Ignore Clean ...
);
Clean(tmp);
//
// Support Zones ...
ToBox(
cState.supportZones,
tmp //
);
Copy(
tmp,
tmpBoxes,
false // Ignore Clean ...
);
Clean(tmp);
}
else
{
@@ -3890,6 +4020,32 @@ struct X121SMCStrategyConditionParser
tmpBoxes //
);
Clean(tmp);
//
// Fair Value Gaps ...
ToBox(
cState.bearishFairValueGaps,
tmp //
);
Copy(
tmp,
tmpBoxes,
false // Ignore Clean ...
);
Clean(tmp);
//
// Resistance Zones ...
ToBox(
cState.resistanceZones,
tmp //
);
Copy(
tmp,
tmpBoxes,
false // Ignore Clean ...
);
Clean(tmp);
}
//
@@ -491,7 +491,7 @@ class XCX121SMCXWZSignalDetector : public XCBase
//
// Fix rf Reward ...
rfRewar = 2;
rfRewar = 1;
}
else if (signalProvider == X121SMC_XWZ_PROVIDER_XACTIVATED_BOX)
{
@@ -512,7 +512,7 @@ class XCX121SMCXWZSignalDetector : public XCBase
//
// Fix rf Reward ...
rfRewar = 2;
rfRewar = 1;
}
else if (signalProvider == X121SMC_XWZ_PROVIDER_XBREAKED_BOX)
{
@@ -533,9 +533,12 @@ class XCX121SMCXWZSignalDetector : public XCBase
//
// Fix rf Reward ...
rfRewar = 2;
rfRewar = 1;
}
//
Print("XWZ ", ToString(signalBoxDir), " Signal Provided: ", EnumToString(signalProvider));
//
// Select Condition SL ...
+22 -5
View File
@@ -609,7 +609,6 @@ struct X121SMCStrategyXWZWorkingZone
iOB //
);
//
has = iOBBox.IsValid();
if (has)
@@ -1161,7 +1160,8 @@ struct X121SMCStrategyXWZWorkingZone
bool isSenario2Happend = false;
bool isSenario2Bullish = false;
bool isSenario2Bearish = false;
if (useSenario2)
if (!isSenario1Happend &&
useSenario2)
{
//
isSenario2Happend = cParser.HasSenario2Conditions(
@@ -1200,7 +1200,9 @@ struct X121SMCStrategyXWZWorkingZone
bool isSenario3Happend = false;
bool isSenario3Bullish = false;
bool isSenario3Bearish = false;
if (useSenario3)
if (!isSenario1Happend &&
!isSenario2Happend &&
useSenario3)
{
//
isSenario3Happend = cParser.HasSenario3Conditions(
@@ -1239,6 +1241,12 @@ struct X121SMCStrategyXWZWorkingZone
bool isSenario4Happend = false;
bool isSenario4Bullish = false;
bool isSenario4Bearish = false;
if (!isSenario1Happend &&
!isSenario2Happend &&
!isSenario3Happend &&
useSenario4)
{
}
//
// Senario 5:
@@ -1248,6 +1256,13 @@ struct X121SMCStrategyXWZWorkingZone
bool isSenario5Happend = false;
bool isSenario5Bullish = false;
bool isSenario5Bearish = false;
if (!isSenario1Happend &&
!isSenario2Happend &&
!isSenario3Happend &&
!isSenario4Happend &&
useSenario5)
{
}
//
// Summarize All Senario(s) Conditions ...
@@ -1258,7 +1273,8 @@ struct X121SMCStrategyXWZWorkingZone
isSenario1Bullish ||
isSenario2Bullish ||
isSenario3Bullish ||
isSenario4Bullish
isSenario4Bullish ||
isSenario5Bullish
//
;
@@ -1268,7 +1284,8 @@ struct X121SMCStrategyXWZWorkingZone
isSenario1Bearish ||
isSenario2Bearish ||
isSenario3Bearish ||
isSenario4Bearish
isSenario4Bearish ||
isSenario5Bearish
//
;