My intent is to extend a rectangle that has been created via Ninjascript under certain conditions. The following code does not work:
Rect rect = Draw.Rectangle(this, tag, false, 2,
High[2], 0, Low[2], Brushes.Black,
Brushes.Gray, 1);
...
...
...
rect.EndAnchor.BarsAgo = 0;
The alternative is to just create another rectangle with the same tag as the current one. This is a highly inefficient way of achieving this goal.
Please advise.
Thanks in advance.
Comment