I am trying the following code:
if (Time[0].Date.Day < Time[1].Date.Day)
{
DrawVerticalLine("VL" + CurrentBar, 0, Color.Gray,DashStyle.Dot,1);
}
In other words, I am trying to detect if the current bar's "Day" value is less than the previous bar's "Day" value, which should only happen if the previous bar occurred in the last month and the current bar occurred in the new month. However, the code does not draw anything. Is there something I am doing wrong?
Comment