last ...
This commit is contained in:
@@ -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