last works on XFIMA ...
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user