This commit is contained in:
2025-10-07 18:09:38 +03:30
parent ebfde3cb48
commit 69e155e050
8 changed files with 802 additions and 184 deletions
@@ -2025,6 +2025,7 @@ class XCMarketPatternDetector : public XCBase
// Support and Resistance ...
int supportAndResistanceValidationLength = 21,
int supportAndResistanceLoopbackLength = 50 //
//
)
{
//
@@ -2394,7 +2395,8 @@ class XCMarketPatternDetector : public XCBase
bool has = ToSupportBox(
iSwing,
iZone,
bar.time //
bar.time,
supportAndResistanceValidationLength //
);
if (has)
{
@@ -2417,7 +2419,7 @@ class XCMarketPatternDetector : public XCBase
supportAndResistanceValidationLength,
supportAndResistanceLoopbackLength //
);
if (isMomentum)
if (isResistance)
{
//
iPattern = X_BAR_PATTERN_RESISTANCE;
@@ -2426,7 +2428,8 @@ class XCMarketPatternDetector : public XCBase
bool has = ToResistanceBox(
iSwing,
iZone,
bar.time //
bar.time,
supportAndResistanceValidationLength //
);
if (has)
{