I'm using NT7 and have a simple indicator that draws a line on a chart at a given level for the entire day. The basic logic is below.
What is odd is that I can see the level on the chart starting just after midnight on the date used in the DrawLine function below. As I advance the chart, it the line scrolls out of view, and then reappears later when the price of the current bar overlaps the level of the line. However, the next time the line scrolls out of view, because no price bars overlap the level of the line, it remains out of view even when the entire range of prices on the chart would place the line somewhere in the middle. Then, it reappears about two hours later on the chart when again you would expect it to be there, leaving no explanation as to why there is an area where it doesn't appear but should.
It's a mystery why the line is not visible even when it would theoretically be in the middle of the chart.
DateTime lineStartDT = DateTime.Parse("3/15/2021 12:01:00 AM");
DateTime lineEndDT = DateTime.Parse("3/15/2021 11:59:00 PM");
double level = 1731.0
DrawLine("myLevel", false, lineStartDT, level, lineEndDT, level, Color.Red, DashStyle.DashDot, 2);
Does anyone see something I'm missing in how I'm drawing the line?
Also, in real time charting, if you use a future date/time, would the line continue to extend until that date/time?
Regards,
Gordon
Comment