Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Draw.Region slow when scrolling mouse wheel
Collapse
X
-
Thanks for the detailed report. There are definitely some performance improvements in this area we have scheduled as we do ongoing maintenance throughout beta. I'm going to check with development on your scenario to see where we are.
Just so we're looking at apples to apples, can you provide the script you are testing with?
Or can you clarify how you've implemented Draw.Region? When you say that you are drawing the areas between the bands, is this through one instance (e.g., using one tag) for the whole series? Or are you drawing on multiple bars and creating new instances?
-
The CPU load also depends on the lookback period of the chart.
Draw.Region recalculates over the entire chart period for each incoming tick.
Obviously, this will kill any CPU, if there are enough bars on the chart.
Leave a comment:
-
Draw.Region causes high CPU load and freeze when connected to data feed
I have added that simple indicator with Draw.Region to my chart again, and when setting the chart to "OnPriceChange", CPU load was increased drastically. NinjaTrader did not respond properly to mouse clicks and opening of popup menus was delayed.
Tested on a quad core XEON processor. Below are screenshots taken from the CPU load of the four kernels. Both screenshots show NinjaTrader 8 with a single chart open, with a single indicator applied.
The first chart shows CPU load with Draw.Region active. The second chart shows the same indicator with Draw.Region deactivated (option available in the indicator). As you can see a single chart with Draw.Region applied makes NinjaTrader next to unusable. At the current stage this is much worse than the behavior of NinjaTrader 7.
The GPU is not used.Last edited by Harry; 09-25-2015, 01:14 PM.
Leave a comment:
-
DrawRegion causes chart freeze (Beta 8.0.0.5)
I have coded a little test indicator which plots 3 Bollinger Bands around a moving average and fills the areas between the bands with DrawRegion().
My test chart is a 1-min chart with a lookback period of 100 days. Adding the indicator to the chart takes
NinjaTrader 7 without filling the areas: < 1 second
NinjaTrader 8 without filling the areas: < 1 second
NinjaTrader 7 with areas filled via DrawRegion(): 13 seconds
NinjaTrader 7 with areas filled via a custom plot: 1 second
NinjaTrader 8 with area filled via DrawRegion(): 10 seconds
The problem here is that with a lookback period of 150 days, the chart is virtually frozen.
Vertical compression: Movements are rough and irregular. It is impossible to select the compression as needed.
Horizontal scrolling or compression: Takes ages, irregular and rough.
The problem depends on the lookback period. If I reduce the lookback period to 3 days, the freeze goes away. My conclusion: When scrolling or compressing the chart, the entire lookback period (150 days) seems to be recalculated, although it would be sufficient to recalculate the visible part of the chart.
I would love to attach a screenshot, but
NinjaTrader 8 saved the PNG chart with a resolution of 1934 x 1259
Forum Limitation is 1920 x 1200 for PNG
Last edited by Harry; 09-24-2015, 05:27 PM.
Leave a comment:
-
Thanks for the report. This falls under the general performance issues we have outstanding and will be worked on throughout beta. This is a good test though and would love to hear feedback with each beta release to see if there any improvements from the end user perspective.
Leave a comment:
-
Draw.Region slow when scrolling mouse wheel
When a chart has a lot of data, for example: around 100 days of 1 minute data for a 9:30 to 4pm issue, and using Draw.Region in an indicator, there is a considerable difference in speed when scrolling the chart with the mouse wheel (it's slow!).
It's starts to seriously degrade. Removing the indicator - everything is back to normal.
Not really noticeable on small data sets (5 days of 1 minute), although some 'drag' can be sceen, but still at an acceptable speed.
Moving the slider is instant and fast.
I doubt it is related to the public Series<double> use...
Enabling global crosshairs and using a 2nd chart to scroll the first chart is faster.
MSI 15.6" WQHD+ 3K Mobile Workstation
with Intel Core i7-4810MQ (2.7 Ghz),
NVIDIA Quadro K3100M w/ 4GB GDDR5 VRAM
and Windows 7 Professional
The code here is pretty simple:
Tags: None
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, Yesterday, 06:46 AM
|
0 responses
14 views
0 likes
|
Last Post
by Mindset
Yesterday, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
25 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
16 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
82 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
51 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Leave a comment: