This commit is contained in:
2025-10-28 02:06:48 +03:30
parent 7f81a12949
commit fda0da2d2e
3 changed files with 266 additions and 6 deletions
@@ -1395,7 +1395,7 @@ class XCXFIMAStrategy1Signaller : public XCXFIMABaseSignaller
bool useSignaller1 = false;
bool useSignaller2 = false;
bool useSignaller3 = true;
bool useSignaller4 = true;
bool useSignaller4 = false;
//
// Validator Flags ...
@@ -2565,6 +2565,67 @@ class XCXFIMAStrategy1Signaller : public XCXFIMABaseSignaller
zone.lower = MathMin(zone.lower, _fvg.lower);
}
//
// Zone Validation Base ...
result = zone.IsValid();
if (result)
{
//
// Validate By Trend of Zone ...
XTrend zoneTrend;
XTrend zoneToTrend;
//
// Detecting Trends ...
result = poiDetector.HasBoundaryTrend(zone, zoneTrend, false);
result = result &&
poiDetector.HasBoundaryTrend(zone, zoneToTrend, true);
//
// Validate Trend ...
result =
result &&
zone.dir == zoneTrend.dir &&
zone.dir == zoneToTrend.dir;
//
// Draw ...
if (result)
{
//
XPOIDrawConfig iConfig = structureDrawConfig.drawConfig;
iConfig.trendRayLeft = false;
iConfig.trendRayRight = false;
//
poiDrawer.DrawTrendLine(zoneTrend, iConfig);
poiDrawer.DrawTrendLine(zoneToTrend, iConfig);
//
iConfig.Clean();
}
//
if (result)
{
DebugBreak();
}
//
// Cleanup ...
zoneTrend.Clean();
zoneToTrend.Clean();
//
// Reset Flags ...
if (!result) {
//
zone.Clean();
isBullish = false;
isBearish = false;
}
}
//
result = zone.IsValid();
}
@@ -2591,7 +2652,7 @@ class XCXFIMAStrategy1Signaller : public XCXFIMABaseSignaller
}
//
// DebugBreak();
DebugBreak();
}
//