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