I write code like this in OnBarUpdate event:
if (Bars.FirstBarOfSession)
{
DateTime sessionBegin, sessionEnd;
Bars.Session.GetNextBeginEnd(Time[0], out sessionBegin, out sessionEnd);
DrawLine(CurrentBar.ToString(), false, sessionBegin, value, sessionEnd, value, color, LineDashStyle, LineWidth);
}
Suppose I add this indicator 15 min chart. When I look at my chart i see that line. But if i zoom in enough, that line disappear sometimes. I mean supppose i shift my chart via right keyboard key. I click this key X times and I see the line is gone then X times click I see the line is come again. I send attachments.
How can i fix it?
Comment