Thank you for your reply.
You'd simply want to draw a line when you reset everything to 0 at the start of the new month. You'd want to ensure the tag name is unique for each one, so in the following example, I'm using both the month and the current bar number in the tag to ensure each is unique and will not be replaced instead of a new line being drawn:
// if it's a different month reset to 0 on the first tick of the new month's first bar
else if (CurrentMonth != Time[0].Month && IsFirstTickOfBar)
{
// reset current month to our new month
CurrentMonth = Time[0].Month;
//reset CurrentStartValue to the open of the current month
CurrentStartValue = Open[0];
// set open of this month's first bar to 0
IndOpen[0] = 0;
[B]Draw.VerticalLine(this, "Month " + Time[0].Month + " " + CurrentBar, Time[0], Brushes.Yellow);[/B]
}
Please let us know if we may be of further assistance to you.

Comment