This commit is contained in:
2025-09-26 02:17:10 +03:30
parent 4277b25b87
commit 01197f9152
5 changed files with 1216 additions and 510 deletions
@@ -86,7 +86,9 @@ struct XFIMAPatternDetectorConfig
//
// Support and Resistance ...
int supportAndResistanceValidationLength;
int minAllowdSupportAndResistanceStrength;
int supportAndResistanceMaxAllowedLoopback;
int supportAndResistanceBreakeValidationLength;
//
// TrueGap ...
@@ -161,7 +163,9 @@ struct XFIMAPatternDetectorConfig
trendingNumberOfSwings = 0;
trendingSwingShoulders = 0;
supportAndResistanceValidationLength = 0;
minAllowdSupportAndResistanceStrength = 0;
supportAndResistanceMaxAllowedLoopback = 0;
supportAndResistanceBreakeValidationLength = 0;
truwGapApprovedPointMultiplier = 0;
flagPatternMinimumPullbackBars = 0;
momentumBarRangeLength = 0;
@@ -176,6 +180,9 @@ struct XFIMAPatternDetectorConfig
maPivotsValidationLength = 0;
numberOfRequiredPivotsForAnalysis = 0;
maxAllowedLoopbackLengthForAnalysis = 0;
//
ZeroMemory(this);
}
/**
@@ -229,7 +236,9 @@ struct XFIMAPatternDetectorConfig
//
// Support and Resistance ...
supportAndResistanceValidationLength = 100;
minAllowdSupportAndResistanceStrength = 1;
supportAndResistanceMaxAllowedLoopback = 1500;
supportAndResistanceBreakeValidationLength = 3;
//
// TrueGap ...
@@ -360,12 +369,25 @@ struct XFIMAMarketStructure
XBoxZone support;
XBoxZone resistance;
//
// Previous Support or Resistance based on current ...
//
// Current Support is Touched => Prev Support;
// Current Resistance is Touched => Prev Resistance;
XBoxZone prevZone;
//
bool isOBTouched;
bool isFVGTouched;
bool isSupportTouched;
bool isResistanceTouched;
//
// TODO: For Test ...
bool isPTest;
XBoxZone pTestedZone;
XBoxZone recentlyTestedZone;
//
// Analysis ...
XPivotAnalysis pvAnalysis;
@@ -420,6 +442,9 @@ struct XFIMAMarketStructure
isSupportTouched = false;
isResistanceTouched = false;
//
prevZone.Clean();
//
bar.Clean();
flagSwing.Clean();
@@ -444,6 +469,9 @@ struct XFIMAMarketStructure
//
SpecifiedClean(trendSwings);
//
ZeroMemory(this);
}
//
@@ -542,6 +570,9 @@ struct XFIMAMarketStructureDrawerConfig
drawFIMAMAPivotsAnalysisPivots = false;
drawFIMASARPivotsAnalysisPivots = false;
drawFIMAZigZagPivotsAnalysisPivots = false;
//
ZeroMemory(this);
}
/**