This commit is contained in:
2025-02-22 14:28:59 +03:30
parent c876af3f1b
commit 60980ff036
4 changed files with 1998 additions and 611 deletions
+6 -2
View File
@@ -3726,7 +3726,8 @@ class XCResistanceZone : public XCBarZone
*/
bool Init(
XOHCL &bar,
int range = 0 //
int range = 0,
bool useRangeAsStart = false //
)
{
//
@@ -3761,7 +3762,10 @@ class XCResistanceZone : public XCBarZone
int periodSeconds = PeriodSeconds(bar.period);
//
datetime from = (datetime)((int)time - (range * periodSeconds));
datetime from =
!useRangeAsStart
? (datetime)((int)time - (range * periodSeconds))
: time;
datetime to = (datetime)((int)time + (range * periodSeconds));
//