This commit is contained in:
2025-09-26 13:20:34 +03:30
parent 01197f9152
commit 353a204162
6 changed files with 605 additions and 64 deletions
+80
View File
@@ -1504,6 +1504,86 @@ struct XOHCL
return result;
}
//
// Same Checkers ...
//
bool IsSameAs(XOHCL &item)
{
//
bool result = false;
//
result = IsValid() &&
item.IsValid() &&
IsSameTime(item) &&
IsSameMarket(item);
//
return result;
}
//
bool IsSameTime(XOHCL &item)
{
//
bool result = false;
//
result = IsValid() &&
item.IsValid() &&
time == item.time;
//
return result;
}
//
bool IsSameSymbol(XOHCL &item)
{
//
bool result = false;
//
result = IsValid() &&
item.IsValid() &&
symbol == item.symbol;
//
return result;
}
//
bool IsSamePeriod(XOHCL &item)
{
//
bool result = false;
//
result = IsValid() &&
item.IsValid() &&
period == item.period;
//
return result;
}
//
bool IsSameMarket(XOHCL &item)
{
//
bool result = false;
//
result = IsValid() &&
item.IsValid() &&
IsSameSymbol(item) &&
IsSamePeriod(item);
//
return result;
}
//
// Other ...
string GetTag(string prefix = "")