last ...
This commit is contained in:
@@ -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) + "_" +
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user