I'm currently working on a strategy in NinjaTrader that involves drawing objects using SharpDX for rendering. I have a question regarding the best approach to redraw objects in each OnRender event.
Based on my understanding, NinjaTrader follows a retained mode rendering system where the recommended practice is to redraw all the objects in each OnRender event, regardless of whether they have changed or not. This approach ensures that the chart is consistently rendered with the latest state of all elements.
In light of this, I wanted to confirm if my understanding is correct and if it is indeed the recommended approach in NinjaTrader to redraw all objects in each OnRender event when using SharpDX for rendering. Additionally, I would appreciate any insights or best practices related to optimizing the rendering process or any other considerations I should be aware of.
Thank you in advance for your guidance and assistance!
Comment