It draws a line on the first bar of each new rollover period.
It calculates which bars will have the line in OnBarUpdate(), then in OnRender() if the bar is visible on the chart renders the line over the bar. This could easily render an ellipse instead of a line.
From the help guide:
"7. Please limit any calculations or algorithms you may be tempted run in OnRender() simply to rendering. You should always favor precomputed values and store them for rendering later as the preferred approach to working with the OnRender() method (e.g., reusing brushes, passing values from OnBarUpdate(), etc.). See also OnRenderTargetChanged() method for more information on reusing Brushes"
https://ninjatrader.com/support/help...s/onrender.htm
Comment