The DrawLine and DrawRectangle span over the whole calendar day, so I'm using as endTime = startTime.AddDays(1); for the line/rectangle.
The draw functions are called once in the OBU at the start of every day.
Everything is working fine, except when I go down to a 1min chart, the lines and rectangles suddenly disappear. If I scroll to the left or right, they are displayed again, and as I scroll horizontally, they seem to go on and off. If I zoom out the 1min, everything is displayed correctly. On the 5min, it works as well.
This looks like a render problem when I have a zoomed in 1min chart but I can't quite figure it out. Thanks.
Comment