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
+119 -44
View File
@@ -2557,36 +2557,131 @@ struct XPatternAnalysisConfig
//
};
//
// Anaysis Draw Config Models ...
struct XPivotAnalysisDrawConfig
{
//
// Props ...
//
// Drawing Flags ...
bool drawSupport;
bool drawResistance;
//
bool drawPeakTrend;
bool drawValeTrend;
bool rayLeftTrends;
bool rayRightTrends;
//
bool drawPivots;
//
// Drawing Configs ...
XPOIDrawConfig drawConfig;
//
// Constructor ...
XPivotAnalysisDrawConfig()
{
Clean();
}
//
// Tools ...
/**
* This function fulfills the will of the developer
*/
void Clean()
{
//
// Drawing Flags ...
//
drawPivots = false;
drawSupport = false;
drawPeakTrend = false;
drawValeTrend = false;
rayLeftTrends = false;
rayRightTrends = false;
drawResistance = false;
//
// Drawing Configs ...
drawConfig.Clean();
//
ZeroMemory(this);
}
/**
* Default Configurations ...
*/
void Default()
{
//
// Drawing Flags ...
//
drawPivots = false;
drawSupport = true;
drawPeakTrend = false;
drawValeTrend = false;
rayLeftTrends = true;
rayRightTrends = true;
drawResistance = true;
//
// Drawing Configs ...
drawConfig.Default();
}
/**
* No Draw Abilioty ...
*/
void Off()
{
//
drawPivots = false;
drawSupport = false;
drawPeakTrend = false;
drawValeTrend = false;
drawResistance = false;
}
/**
* Full Draw Abilioty ...
*/
void Full()
{
//
drawPivots = true;
drawSupport = true;
drawPeakTrend = true;
drawValeTrend = true;
drawResistance = true;
}
//
};
struct XPatternAnalysisDrawConfig
{
//
// Props ...
//
int zonesWidth;
bool fillZones;
int arrowsWidth;
bool ignoreZonesAt;
int arrowsThreshold;
ENUM_LINE_STYLE zonesStyle;
//
int bullishArrow;
int bearishArrow;
//
color bullishColor;
color bearishColor;
//
ENUM_X_PRICE arrowValePriceType;
ENUM_X_PRICE arrowPeakPriceType;
//
ENUM_X_BAR_PATTERN allowedDraws[]; // Allowed Draw Patterns
ENUM_X_BAR_PATTERN allowedDrawZones[]; // Allowed Draw Pattern Zones
ENUM_X_BAR_PATTERN allowedDrawPivots[]; // Allowed Draw Pattern Pivots
//
XPOIDrawConfig drawConfig;
//
// Constructor ...
XPatternAnalysisDrawConfig()
@@ -2603,18 +2698,8 @@ struct XPatternAnalysisDrawConfig
void Clean()
{
//
arrowsWidth = 0;
zonesWidth = 0;
bullishArrow = 0;
bearishArrow = 0;
fillZones = false;
arrowsThreshold = 0;
ignoreZonesAt = false;
bullishColor = CLR_NONE;
bearishColor = CLR_NONE;
zonesStyle = STYLE_SOLID;
arrowValePriceType = X_PRICE_NONE;
arrowPeakPriceType = X_PRICE_NONE;
// Drawing Configs ...
drawConfig.Clean();
//
XClean(allowedDraws);
@@ -2628,18 +2713,8 @@ struct XPatternAnalysisDrawConfig
void Default()
{
//
zonesWidth = 1;
arrowsWidth = 1;
arrowsThreshold = 2;
bullishArrow = 159;
bearishArrow = 159;
fillZones = false;
ignoreZonesAt = true;
bullishColor = clrAqua;
zonesStyle = STYLE_SOLID;
bearishColor = clrMagenta;
arrowValePriceType = X_PRICE_LOW;
arrowPeakPriceType = X_PRICE_HIGH;
// Drawing Configs ...
drawConfig.Default();
//
FullDraw();
+86 -2
View File
@@ -254,9 +254,9 @@ ENUM_X_BAR_PATTERN ToBarPattern(string value)
/**
* Get All Available Valid Bar Patterns ...
*
*
* @param dest: ENUM_X_BAR_PATTERN, reference collection to fill ...
*
*
* @return ( int )
*/
int GetAllBarPatters(ENUM_X_BAR_PATTERN &dest[])
@@ -1570,4 +1570,88 @@ struct XDirectionShift
}
};
struct XPOIDrawConfig
{
//
// Props ...
//
color bullishColor;
color bearishColor;
//
int arrowsWidth;
int bullishArrow;
int bearishArrow;
int arrowsThreshold;
ENUM_X_PRICE arrowsValePriceType;
ENUM_X_PRICE arrowsPeakPriceType;
//
int zonesWidth;
bool zonesFill;
bool ignoreZonesAt;
ENUM_LINE_STYLE zonesStyle;
//
// Constructor ...
XPOIDrawConfig()
{
Clean();
}
//
// Tools ...
/**
* Cleanup ...
*/
void Clean()
{
//
bullishColor = CLR_NONE;
bearishColor = CLR_NONE;
//
arrowsWidth = 0;
bullishArrow = 0;
bearishArrow = 0;
arrowsThreshold = 0;
arrowsValePriceType = X_PRICE_NONE;
arrowsPeakPriceType = X_PRICE_NONE;
//
zonesWidth = 1;
zonesFill = false;
ignoreZonesAt = true;
zonesStyle = STYLE_SOLID;
}
/**
* Default Config ...
*/
void Default()
{
//
bullishColor = clrAqua;
bearishColor = clrMagenta;
//
arrowsWidth = 1;
bullishArrow = 159;
bearishArrow = 159;
arrowsThreshold = 5;
arrowsValePriceType = X_PRICE_LOW;
arrowsPeakPriceType = X_PRICE_HIGH;
//
zonesWidth = 1;
zonesFill = true;
ignoreZonesAt = true;
zonesStyle = STYLE_SOLID;
}
//
};
//