preparing Strategy 2 of Signaller 2 of XFIMA ...

This commit is contained in:
2025-10-01 01:55:40 +03:30
parent cfba2b3e3a
commit 7ea0128540
5 changed files with 1338 additions and 626 deletions
@@ -73,6 +73,10 @@ struct XFIMAPatternDetectorConfig
bool detectMACrosses;
double validMACrossDiffMultiplier;
//
bool detectHKSwitches;
bool detectSARSwitches;
//
// Configs ...
@@ -167,6 +171,10 @@ struct XFIMAPatternDetectorConfig
detectMACrosses = false;
validMACrossDiffMultiplier = 0;
//
detectHKSwitches = false;
detectSARSwitches = false;
//
obLoopback = 0;
fvgLoopback = 0;
@@ -238,6 +246,10 @@ struct XFIMAPatternDetectorConfig
detectMACrosses = true;
validMACrossDiffMultiplier = 1;
//
detectHKSwitches = true;
detectSARSwitches = true;
//
// OB / FVg ...
obLoopback = 5;
@@ -329,6 +341,8 @@ struct XFIMAPatternDetectorConfig
//
detectMACrosses = true;
detectHKSwitches = true;
detectSARSwitches = true;
}
/**
@@ -370,6 +384,8 @@ struct XFIMAPatternDetectorConfig
//
detectMACrosses = false;
detectHKSwitches = false;
detectSARSwitches = false;
}
//
@@ -450,6 +466,14 @@ struct XFIMAMarketStructure
ENUM_X_DIRECTION maCrossDir;
XPivot maCrosses[];
//
ENUM_X_DIRECTION hkSwitchDir;
XPivot hkSwitches[];
//
ENUM_X_DIRECTION sarSwitchDir;
XPivot sarSwitches[];
//
// Constructor ...
XFIMAMarketStructure()
@@ -499,6 +523,14 @@ struct XFIMAMarketStructure
maCrossDir = X_DIRECTION_NONE;
SpecifiedClean(maCrosses);
//
hkSwitchDir = X_DIRECTION_NONE;
SpecifiedClean(hkSwitches);
//
sarSwitchDir = X_DIRECTION_NONE;
SpecifiedClean(sarSwitches);
//
SpecifiedClean(obs);
SpecifiedClean(fvgs);