This commit is contained in:
2026-02-05 00:53:11 +03:30
parent d6e2a7e9c9
commit e21ca01ceb
2 changed files with 62 additions and 0 deletions
@@ -78,6 +78,68 @@ class XCX121XKIPOIDetector : public XCMarketPatternDetector
// Actions and Tools ...
// #region Zone Detectors ...
int DetectDemands(
XBoxZone &zones[],
int barIndex,
string forSymbol = NULL,
ENUM_TIMEFRAMES forPeriod = NULL,
int loopback = 50,
int confluence = 1,
int confluenceLoopback = 50 //
)
{
//
int result = 0;
//
XClean(zones);
//
// Normalize ...
//
if (barIndex < 0)
{
barIndex = 0;
}
//
if (!IsXValid(forSymbol))
{
forSymbol = symbol;
}
//
if (!IsXValid(forPeriod))
{
forPeriod = period;
}
//
if (loopback < 2)
{
loopback = 2;
}
//
if (confluence < 0)
{
confluence = 0;
}
//
if (confluenceLoopback < 0)
{
confluenceLoopback = 0;
}
//
result = ArraySize(zones);
//
return result;
}
int DetectSupports(
XBoxZone &zones[],
int barIndex,
View File