I'm plotting a horizontal line on a Renko chart. Most of the time it works fine. The problem occurs when there are bars with the same time stamp; for example, 18:00:00:023 (bar index 447), 18:00:00:023 (bar index 448), 18:00:00:023 (bar index 449), 18:00:00:050 (bar index 450) .The line stops drawing on the first of those bars
I understand why this is happening. The overloads for DrawLine allow you to start/end plotting at either startBarsAgo/endBarsAgo OR startTime/endTime. In my situation I need to use a DateTime to begin plotting and therefore I am stuck with using a DateTime to terminate the plot. Unfortunately Time[0] only gives a time stamp accurate to seconds and therefore the plot terminates early.
I think the plot might work if it were possible to have an overload that would allow the use of DateTime and barsAgo interchangeably. But I am not sure of that. Can you suggest how I can extend my plot to bars with the same Time[0] value time stamp but which differ in the millisecond portion of the time stamp as seen in the Data Box? Thank you.
Comment