last works on Fix and Resolve XPivotAnalysis Calculations and Drawn ...

This commit is contained in:
2025-09-23 21:34:15 +03:30
parent b18bed4a2b
commit 727344d27a
2 changed files with 119 additions and 19 deletions
+94 -2
View File
@@ -1004,8 +1004,8 @@ struct XPivotAnalysis
box.from = fromTime;
//
box.upper = minorResistance;
box.lower = majorResistance;
box.upper = majorResistance;
box.lower = minorResistance;
box.dir = X_DIRECTION_BEARISH;
box.type = GetTag() + "_Resistance";
@@ -1146,6 +1146,98 @@ struct XPivotAnalysis
return result;
}
/**
* Represent an String Unique Identifier for Upper Trend Chart Objects ...
*
* @return ( string )
*/
string GetUpperObjectID()
{
//
string result = "";
//
if (!IsValid())
{
return result;
}
//
result = GetTag() + "_" + symbol + "_" + ToXString(period) + "_UPPER_" + ToXString(TimeToSeconds(time));
//
return result;
}
/**
* Represent an String Unique Identifier for Lower Trend Chart Objects ...
*
* @return ( string )
*/
string GetLowerObjectID()
{
//
string result = "";
//
if (!IsValid())
{
return result;
}
//
result = GetTag() + "_" + symbol + "_" + ToXString(period) + "_LOWER_" + ToXString(TimeToSeconds(time));
//
return result;
}
/**
* Represent an String Unique Identifier for Support Box Chart Objects ...
*
* @return ( string )
*/
string GetSupportBoxObjectID()
{
//
string result = "";
//
if (!IsValid())
{
return result;
}
//
result = GetTag() + "_" + symbol + "_" + ToXString(period) + "_SUPPORT_" + ToXString(TimeToSeconds(time));
//
return result;
}
/**
* Represent an String Unique Identifier for Resistance BOX Chart Objects ...
*
* @return ( string )
*/
string GetResistanceBoxObjectID()
{
//
string result = "";
//
if (!IsValid())
{
return result;
}
//
result = GetTag() + "_" + symbol + "_" + ToXString(period) + "_RESISTANCE_" + ToXString(TimeToSeconds(time));
//
return result;
}
/**
* Represent as String ...
*