last ...
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user