This commit is contained in:
2024-11-02 05:52:16 +03:30
parent cc57a5eca8
commit 4362b1aeaf
9 changed files with 1893 additions and 16 deletions
+6 -2
View File
@@ -1738,7 +1738,8 @@ class XCPOIDrawer : public XSCBase
*/
bool CreateResistanceZone(
XOHCL &bar,
XCResistanceZoneObject *&object //
XCResistanceZoneObject *&object,
datetime destTime = NULL //
)
{
//
@@ -1762,7 +1763,10 @@ class XCPOIDrawer : public XSCBase
string name = bar.GetTag(ToString(X_POI_RESISTANCE_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 = ResistanceZoneFill();