This commit is contained in:
2024-12-25 21:11:54 +03:30
parent f20dbaea13
commit c1d35aed03
5 changed files with 1176 additions and 7 deletions
@@ -419,13 +419,29 @@ bool DetectX121SMCXPVOBSiganlSetup(
//
// Setup Conditions ...
//
// Detect Market Trend ...
ENUM_X_DIRECTION trend;
bool hasTrend = consolidationCycleHelper
.DetectTrend(trend);
bool hasBullishTrend = hasTrend &&
IsBullish(trend);
bool hasBearishTrend = hasTrend &&
IsBearish(trend);
result = hasBullishTrend ||
hasBearishTrend;
if (!result)
{
return result;
}
//
// Select Source State ...
XPOIState state = decisionState;
//
// Detect Imbalance ...
//
bool hasBullishOB = conditions.HasBullishOB();
if (!hasBullishOB)
@@ -638,8 +654,20 @@ bool DetectX121SMCXPVOBSiganlSetup(
//
// Detect Setup Conditions based on Peaks or Vales Occurance ...
bool lookupForLong = isNewVale && hasBullishOB && hasBullishFVG;
bool lookupForShort = isNewPeak && hasBearishOB && hasBearishFVG;
//
bool lookupForLong = isNewVale &&
hasBullishOB &&
hasBullishFVG &&
hasBullishTrend;
//
bool lookupForShort = isNewPeak &&
hasBearishOB &&
hasBearishFVG &&
hasBearishTrend;
//
result = lookupForLong ||
lookupForShort;
if (!result)