Refactor all new MQL5 Version Compiling Issues ...

This commit is contained in:
2025-08-05 17:32:55 +03:30
parent f260ccc8de
commit 8f76391671
15 changed files with 419 additions and 376 deletions
@@ -53,6 +53,10 @@ bool IsValid(ENUM_XCATB_PIVOTS value)
//
return result;
}
bool IsSpecifiedValid(ENUM_XCATB_PIVOTS value)
{
return IsValid(value);
}
//
string ToString(ENUM_XCATB_PIVOTS value)
@@ -66,6 +70,10 @@ string ToString(ENUM_XCATB_PIVOTS value)
//
return result;
}
string ToXString(ENUM_XCATB_PIVOTS value)
{
return ToString(value);
}
//
ENUM_X_DIRECTION GetDirection(ENUM_XCATB_PIVOTS value)
@@ -225,7 +233,7 @@ struct XCATBPivot
type = XCATB_NONE;
//
Clean(values);
SpecifiedClean(values);
//
ZeroMemory(this);
@@ -245,11 +253,11 @@ struct XCATBPivot
result =
from < to &&
value != 0 &&
IsValid(to) &&
IsValid(from) &&
IsValid(type) &&
IsValid(symbol) &&
IsValid(period);
IsSpecifiedValid(to) &&
IsSpecifiedValid(from) &&
IsSpecifiedValid(type) &&
IsSpecifiedValid(symbol) &&
IsSpecifiedValid(period);
//
return result;
@@ -310,7 +318,7 @@ struct XCATBPivot
}
//
if (!IsValid(forPeriod))
if (!IsSpecifiedValid(forPeriod))
{
forPeriod = period;
}
@@ -347,7 +355,7 @@ struct XCATBPivot
}
//
if (!IsValid(forPeriod))
if (!IsSpecifiedValid(forPeriod))
{
forPeriod = period;
}
@@ -384,7 +392,7 @@ struct XCATBPivot
}
//
if (!IsValid(forPeriod))
if (!IsSpecifiedValid(forPeriod))
{
forPeriod = period;
}