This commit is contained in:
2026-01-03 17:59:09 +03:30
parent 163259c717
commit 5908d6ded7
3 changed files with 658 additions and 213 deletions
@@ -1617,7 +1617,8 @@ class XCX121XKIPOIDetector : public XCMarketPatternDetector
XBoxZone &majorResistance,
int barIndex = 0,
string forSymbol = NULL,
ENUM_TIMEFRAMES forPeriod = NULL,
ENUM_TIMEFRAMES forMinorPeriod = NULL,
ENUM_TIMEFRAMES forMajorPeriod = NULL,
int loopback = 50,
int minorValidation = 7,
int majorValidation = 14,
@@ -1644,9 +1645,13 @@ class XCX121XKIPOIDetector : public XCMarketPatternDetector
{
forSymbol = symbol;
}
if (!IsXValid(forPeriod))
if (!IsXValid(forMinorPeriod))
{
forPeriod = period;
forMinorPeriod = period;
}
if (!IsXValid(forMajorPeriod))
{
forMajorPeriod = period;
}
//
@@ -1670,7 +1675,7 @@ class XCX121XKIPOIDetector : public XCMarketPatternDetector
retestThreshold,
retestLoopback,
forSymbol,
forPeriod //
forMinorPeriod //
);
if (IsValidSize(supportsCount))
{
@@ -1699,7 +1704,7 @@ class XCX121XKIPOIDetector : public XCMarketPatternDetector
retestThreshold,
retestLoopback,
forSymbol,
forPeriod //
forMinorPeriod //
);
if (IsValidSize(resistancesCount))
{
@@ -1735,10 +1740,13 @@ class XCX121XKIPOIDetector : public XCMarketPatternDetector
retestThreshold,
retestLoopback,
forSymbol,
forPeriod //
forMajorPeriod //
);
if (IsValidSize(supportsCount))
{
//
UpdateToTime(tmpSupports);
//
FillNotExists(
supports,
@@ -1764,10 +1772,13 @@ class XCX121XKIPOIDetector : public XCMarketPatternDetector
retestThreshold,
retestLoopback,
forSymbol,
forPeriod //
forMajorPeriod //
);
if (IsValidSize(resistancesCount))
{
//
UpdateToTime(tmpResistances);
//
FillNotExists(
resistances,