This commit is contained in:
2026-02-13 23:37:58 +03:30
parent 5abca35202
commit 887d44511a
3 changed files with 195 additions and 9 deletions
@@ -1770,8 +1770,8 @@ class XCX121XKIStrategy1Signaller : public XCX121XKIBaseSignaller
bar.period,
100,
4,
2,
100 //
1,
15 //
);
//
@@ -87,7 +87,7 @@ class XCX121XKIPOIDetector : public XCMarketPatternDetector
int minAllowedSameDirectionalBars = 4,
double minFVGAllowedPoints = 30,
int confluence = 1,
int confluenceLoopback = 50 //
int confluenceLoopback = 10 //
)
{
//
@@ -159,11 +159,11 @@ class XCX121XKIPOIDetector : public XCMarketPatternDetector
double lower = 0;
XBoxZone tmpZone;
int tmpCount = 0;
XBoxZone tmpFVGs[];
string type = NULL;
double tmpValue = 0;
datetime from = NULL;
int start = barIndex;
XBoxZone confluenceZone;
int end = barIndex + loopback;
ENUM_X_DIRECTION tmpDir = X_DIRECTION_NONE;
datetime to = GetBarTime(forSymbol, forPeriod, barIndex);
@@ -341,17 +341,40 @@ class XCX121XKIPOIDetector : public XCMarketPatternDetector
//
continue;
}
//
// Validating Confluence if Provided ...
if (confluence > 0 && confluenceLoopback > 0) {
if (confluence > 0 && confluenceLoopback > 0)
{
//
for (int j = tmpZoneBar.Index(); j < tmpZoneBar.Index() + confluenceLoopback; j++) {
has = HasConfluence(
tmpZoneBar,
confluenceZone,
X_DIRECTION_BULLISH,
confluence,
confluenceLoopback,
structureLength,
X_PRICE_HIGH,
X_PRICE_LOW //
);
//
if (!has)
{
//
tmpCount = 0;
tmpBar.Clean();
tmpFVG.Clean();
tmpFVGBar.Clean();
tmpZoneBar.Clean();
breakerBar.Clean();
tmpDir = X_DIRECTION_NONE;
//
continue;
}
}
//
DebugBreak();
@@ -364,6 +387,7 @@ class XCX121XKIPOIDetector : public XCMarketPatternDetector
tmpFVGBar.Clean();
tmpZoneBar.Clean();
breakerBar.Clean();
confluenceZone.Clean();
tmpDir = X_DIRECTION_NONE;
}