This commit is contained in:
2024-10-29 22:09:14 +03:30
parent eb48aebac8
commit 36f47d9f4f
2 changed files with 237 additions and 168 deletions
+7 -2
View File
@@ -1660,12 +1660,14 @@ class XCPOIDrawer : public XSCBase
* Create Support Zone Object ...
*
* @param bar: XOHCL instance ...
* @param destTime: DateTime ...
*
* @return ( bool )
*/
bool CreateSupportZone(
XOHCL &bar,
XCSupportZoneObject *&object //
XCSupportZoneObject *&object,
datetime destTime = NULL //
)
{
//
@@ -1689,7 +1691,10 @@ class XCPOIDrawer : public XSCBase
string name = bar.GetTag(ToString(X_POI_SUPPORT_ZONE));
//
datetime time2 = (datetime)((int)bar.time + (PeriodSeconds(bar.period) * 5));
datetime time2 =
IsValid(destTime)
? destTime
: (datetime)((int)bar.time + (PeriodSeconds(bar.period) * 5));
//
bool fill = SupportZoneFill();