1 day chart (5 months of data)
1 30-minute chart (5 months of data)
Both charts display the same instrument.
When I apply a custom indicator that utilizes draw methods (in particular Draw.Rectangle) to a short time frame chart (for example a 2 minute chart displaying 5 months of historical data – not a realtime chart), it can take up to three minutes to switch from one instrument to another. If I use a plot over that same period, the load time is only a matter of a few seconds max. If I use Draw.Line, it is almost as quick to load as a plot. Is there some inherent reason why Draw.Rectangle would require more time to draw objects?
Would the IsSuspendedWhileInactive property have any relevant impact on performance when viewing charts offline using only historical data?
I have experimented with MaximumBarsLookback but see no difference in chart load speed when switching form one instrument to another (when offline). Are there any NinjaTrader settings or indicator properties that could be set that would improve performance when using historical data offline?
During the period when this poor performance occurs, about 6.8GB of 8GB installed RAM is being used, and usually CPU usage is on average 60% or less, but CPU usage can occasionally reach into the high 90's.
Comment