This commit is contained in:
2025-03-23 03:46:13 +03:30
parent a84b0befe2
commit c49abe21db
10 changed files with 4204 additions and 2932 deletions
+4 -38
View File
@@ -5327,43 +5327,6 @@ struct XBoxZone
period == item.period;
}
// /**
// * Check Box is Same as another ...
// *
// * @param box: XBoxZone instance Reference ...
// *
// * @return ( bool )
// */
// bool IsSame(XBoxZone &box)
// {
// //
// bool result = false;
// //
// result = IsValid() &&
// box.IsValid();
// if (!result)
// {
// return result;
// }
// //
// result =
// //
// dir == box.dir &&
// from == box.from &&
// type == box.type &&
// upper == box.upper &&
// lower == box.lower &&
// symbol == box.symbol &&
// period == box.period
// //
// ;
// //
// return result;
// }
/**
* Retrieve Box Age ...
*
@@ -5409,9 +5372,12 @@ struct XBoxZone
string GetTag()
{
//
string typeStr = IsValid(type)
? type
: "XBOX";
string result =
//
"XBOX" + "_" +
typeStr + "_" +
ToString(dir) + "_" +
symbol + "_" +
ToString(period) + "_" +
+34 -1
View File
@@ -51,6 +51,7 @@ struct XSignalBox
//
XBoxZone ob;
XBoxZone fvg;
XBoxZone sharp;
//
// Constructor ...
@@ -70,6 +71,7 @@ struct XSignalBox
//
ob.Clean();
fvg.Clean();
sharp.Clean();
}
/**
@@ -84,12 +86,43 @@ struct XSignalBox
//
result =
ob.IsValid();
ob.IsValid() &&
fvg.IsValid() &&
sharp.IsValid();
//
return result;
}
/**
* Update Structure Models To Date ...
*
* @param value: datetime ...
*/
void UpdateTo(datetime value = NULL)
{
//
value = NormalizeTime(value);
//
if (ob.IsValid())
{
ob.to = value;
}
//
if (fvg.IsValid())
{
fvg.to = value;
}
//
if (sharp.IsValid())
{
sharp.to = value;
}
}
//
};