When too many objects (rectangles) are drawn, via OnRender(), inside an indicator the horizontal movement on the chart becomes very sluggish. In addition, when the mouse left button is pressed, the chart freezes for many seconds (5 seconds with a 6000-day chart). There is no problem with the right mouse click, upon which, a dialog pops up immediately.
Attached are the screen image and the indicator zip file for testing.
1. Is there any way to improve the horizontal scrolling speed after many objects have been drawn on the chart? Which function could be faster than Draw.Rectangle() ?
2. Is there any way to resolve the screen freeze problem when the mouse left button is pressed?
Comment