I am drawing a rectangle in an area and after a certain number of bars the beginning of the rectangle disappears and starts moving forward. I want the rectangle to stay from the days opening till the close and also want it to stay and have a new rectangle plotted the next day with new parameters. I should be able to scroll back through the days and see the different rectangles still plotted.

Sample here:

Add(new Plot(Color.FromKnownColor(KnownColor.OrangeRed), "Zone"));


{
{
if (CurrentBar == 0)
return;
}

Zone.Set(0);

daystart = Bars.BarsSinceSession;

DrawRectangle("Zone", false, daystart, Zone, 0 , Zone + 3, Color.OrangeRed, Color.OrangeRed, 2);
}