last works on XFIMA ...

This commit is contained in:
2025-10-09 02:06:30 +03:30
parent d963ce8acf
commit 430d822d3e
12 changed files with 7605 additions and 3910 deletions
+44 -54
View File
@@ -29,56 +29,6 @@
//
// Definitions ...
/**
* Configure Market Structure Detection ...
**/
struct XFIMAPatternDetectorConfig
{
//
// Props ...
//
// Constructor ...
XFIMAPatternDetectorConfig()
{
Clean();
}
//
// Tools ...
/**
* Cleanup Model ...
*/
void Clean()
{
ZeroMemory(this);
}
/**
* Default Model ...
*/
void Default()
{
}
/**
* Full Detection Model ...
*/
void FullDetect()
{
}
/**
* Default Config, by turn off all detecting flags ...
*/
void OffDetectors()
{
}
//
};
/**
* XFIMA Base Market Structure ...
* AnalyseMarket result ...
@@ -86,7 +36,22 @@ struct XFIMAPatternDetectorConfig
struct XFIMAMarketStructure
{
//
XOHCL bar;
XOHCL bar; // Spacified Start Bar for Analysing ...
int length; // Loopback Length for Analyse Structure ...
//
XPivotAnalysis pvAnalysis; // PV Pivot Analysis Result ...
XPivotAnalysis zgAnalysis; // ZG Pivot Analysis Result ...
XPivotAnalysis barsPivotsAnalysis; // Bars Pivot Analysis Result ...
//
XPatternAnalysis barsAnalysis[]; // Anaysed Bars ...
XPatternAnalysisConfig barsAnalysisConfig; // Bars Analyser Config ...
//
// Configure Pivots Detection ...
int requiredPivots; // Required Extracted Pivots for Analysis ...
//
// Constructor ...
@@ -99,17 +64,41 @@ struct XFIMAMarketStructure
// Tools ...
/**
* Cleanup Model ...
* Cleanup ...
*/
void Clean()
{
//
bar.Clean();
length = 0;
//
pvAnalysis.Clean();
zgAnalysis.Clean();
XClean(barsAnalysis);
barsAnalysisConfig.Clean();
//
ZeroMemory(this);
}
//
// Checker Functions ...
/**
* Validate ...
*
* @return ( bool )
*/
bool IsValid()
{
//
bool result = false;
//
result = bar.IsValid() &&
length > 0;
//
return result;
}
//
};
@@ -121,6 +110,7 @@ struct XFIMAMarketStructureDrawerConfig
{
//
// Props ...
XPatternAnalysisDrawConfig barAnalysisDrawConfig;
//
// Constructor ...