Refactor all new MQL5 Version Compiling Issues ...
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user