Go Back   NinjaTrader Support Forum > NinjaTrader 7 > Platform Technical Support

Platform Technical Support General platform technical support for NinjaTrader 7.

NinjaTrader
Reply
 
Thread Tools Display Modes
Old 02-08-2018, 01:28 PM   #1
rcsingleton
Senior Member
 
Join Date: Jan 2008
Posts: 171
Thanks: 16
Thanked 2 times in 2 posts
Question Chart load time is slowing down

NT 64-bit 7.0.1000.35

The load time for my ES charts is increasing.

Is there an NT file that is filling up somewhere that I can prune to decrease load time?

Also, if you want my LOG and TRACE files, can you give me a ticket number?

Regards,
R. C.
Last edited by rcsingleton; 02-08-2018 at 01:31 PM.
rcsingleton is offline  
Reply With Quote
Old 02-08-2018, 01:46 PM   #2
NinjaTrader_ChelseaB
NinjaTrader Customer Service
 
NinjaTrader_ChelseaB's Avatar
 
Join Date: Dec 2012
Location: Denver, CO
Posts: 8,445
Thanks: 125
Thanked 1,870 times in 1,746 posts
Default

Hello R. C.,

Recently, the markets have experienced high volatility and high volume which produces a higher than usual amount of ticks that must be processed by all indicators, in all open workspaces, on all charts.

Slow performance is typically attributed to an overworked CPU.

You can experience unresponsive behavior in NinjaTrader if you have many charts, indicators and other windows opened and this is depending on market volatility as well.

When opening a workspace, the amount of data loading and the number of indicators are the biggest factor for how quickly that workspace will open. The Days to load setting in the Data Series window controls how much historical data is loading. The more data that loads, the longer it will take for each indicator to process that historical data and load the chart.

Using 3rd party add ons that use lots of resources can cause performance freezes, especially during peak trading.

The 'Calculate on bar close' setting for indicators in NinjaTrader 7 (renamed to Calculate in NinjaTrader 8) can be important. If set to 'False' in NinjaTrader 7 or set to 'On each tick' in NinjaTrader 8 the indicator will be calculated on each incoming tick. During high volatility this can be very CPU intensive especially if the indicator makes complicated calculations. Please set it to True for NT7 or 'On bar close' for NT8 in the Indicator menu and the indicator will only be calculated at the end of each price bar which reduces the load on your computer by a large amount.

The greater the number of charts open with indicators running with Calculate on bar close set to 'False' in NT7 or 'On each tick' in NT8, the more demand is placed on the CPU core that NinjaTrader is running on.

There also may be a recent increase in market activity for this instrument. The more ticks the exchange sends out, the more CPU cycles that need to be processed by NinjaTrader. This means a workspace/chart setup that was working fine for the last few months may not now have the overhead to keep up with the sheer number of ticks that are being processed today or in the last few days.

If you have workspaces opened in the background which you do not use, we suggest to close such workspaces.

To do this in NinjaTrader 7:
  • Please go to Control Center -> File -> Workspaces and check what workspaces are listed below the separator line
  • The workspace with the checkmark is the workspace opened on your monitor
  • Any additional workspaces listed under the separator line in NT7 or are showing icon of two squares on the left in NT8, are opened in the background and are using resources
  • Please select a workspace without the checkmark
  • Subsequently, go to Control Center -> File -> Workspaces -> Close Workspace
  • Repeat this procedure until only 1 workspace is opened
Below is a publicly available link to the help guide on workspaces in NinjaTrader 7.

https://ninjatrader.com/support/help...workspaces.htm

To do this in NinjaTrader 8:
  • On the Control Center open the Workspaces menu and look for any workspaces that show an icon of two squares on the left of the workspace name
  • The workspace showing the icon with the green square on top of the gray square is the workspace opened on your monitor
  • Any workspaces that are showing icon with the gray square on top of the green square are opened in the background and are using resources
  • Hover the mouse above a workspace that is open in the background (with the gray square on top of the green square)
  • On the right the open to close will appear, click close
  • Repeat this procedure until only the active workspace (with the green square on top of the gray square) is open
Below is a publicly available link to the help guide on closing a workspace in NinjaTrader 8.

https://ninjatrader.com/support/help...singAWorkspace

On the chart, items that will improve performance:
  • Reduce the number of days to load
  • Remove redundant charts and indicators
  • Set as many chart indicators as possible to 'Calculate on bar close' as 'True' (NT7) or Calculate as 'On bar close' (NT8)
  • Or even set the "Display update interval" to a higher value on your chart
More tips and suggestions to improve the performance of NinjaTrader can be found at the link below.

http://www.ninjatrader.com/support/h...ance_tips2.htm

Please let me know if reducing the load on the CPU does not improve the performance.

Further, NinjaTrader 7 is on 7.0.1000.37. Updates to NinjaTrader will contain the latest security updates and bug fixes, as well as new instruments and rollover dates.
To update NinjaTrader
  • Shutdown all programs including NinjaTrader
  • Download NinjaTrader from the link below
  • Click here to download NinjaTrader
  • Double click the downloaded file to execute it
  • Follow the on screen instructions
  • Restart NinjaTrader

Please also reset instruments as well. This will pull in any newly mapped instruments, and updated rollover dates.

To do this:
  • Disconnect from any connections
  • Click Tools -> Options... -> select the Data tab
  • Click the Reset Instruments button -> Restart NinjaTrader
NinjaTrader_ChelseaB is offline  
Reply With Quote
Old 02-08-2018, 03:41 PM   #3
aligator
Senior Member
 
Join Date: Apr 2010
Posts: 537
Thanks: 106
Thanked 80 times in 66 posts
Default

Quote:
Originally Posted by NinjaTrader_ChelseaB View Post
Hello R. C.,

Recently, the markets have experienced high volatility and high volume which produces a higher than usual amount of ticks that must be processed by all indicators, in all open workspaces, on all charts.

Slow performance is typically attributed to an overworked CPU.
Hi ChelseaB,

True, volatility is high. But most likely our friend having issues is working with 1-minute charts.

My experience with NT7 and now NT8 has been that 1-Minute charts are excruciatingly loading slow compared to any other equal time frames regardless of market conditions, data feed, computer setup, etc.

I think, this has less to do with anything else other than how NT treats 1-minute data.

To confirm and see for yourself try to load 3 charts of ES (10-days data with a few indicators) and compare the loading times: a 1-minute, a 60-Seconds, and a 2000-Ticks (or enough of a tick number that would fill the same time span and producing a close profile as the 1-min chart).

The issue of 1-minute charts loading slow has been raised several times before but never was really resolved.

Cheers!
Last edited by aligator; 02-08-2018 at 03:43 PM.
aligator is offline  
Reply With Quote
Old 02-08-2018, 04:35 PM   #4
NinjaTrader_ChelseaB
NinjaTrader Customer Service
 
NinjaTrader_ChelseaB's Avatar
 
Join Date: Dec 2012
Location: Denver, CO
Posts: 8,445
Thanks: 125
Thanked 1,870 times in 1,746 posts
Default

Hello aligator,

I am happy to demonstrate a CPU intensive indicator on a chart using 5 days of tick data and compare this with a chart that is using 5 days of minute data to show that with less data to process the script will run complete faster if you would like.

The more data that has to be processed the more calculations done in the code, the longer it will take for the script to complete.

That said, performance can happen with any bar type if the script is CPU intensive..
NinjaTrader_ChelseaB is offline  
Reply With Quote
Old 02-09-2018, 11:11 AM   #5
aligator
Senior Member
 
Join Date: Apr 2010
Posts: 537
Thanks: 106
Thanked 80 times in 66 posts
Default

Quote:
Originally Posted by NinjaTrader_ChelseaB View Post
Hello aligator,

I am happy to demonstrate a CPU intensive indicator on a chart using 5 days of tick data and compare this with a chart that is using 5 days of minute data to show that with less data to process the script will run complete faster if you would like.

The more data that has to be processed the more calculations done in the code, the longer it will take for the script to complete.

That said, performance can happen with any bar type if the script is CPU intensive..
Hello Chelsea,

The question is not more or less data. I know it takes twice as mush time to count two buckets of pennies compared to one .

The issue is: for the same amount of data and same script complicity, a 1-minute chart of ES loads a lot slower than a 60-seconds chart or a tick chart with a bar size to produce approximately a similar bar compression.

As you said, compare a 5-days ES 1-minute chart to a 60-seconds chart or equal ticks and see the difference. Although, the larger the amount of data loaded the easier to see the loading time difference.

Thanks.
aligator is offline  
Reply With Quote
Old 02-09-2018, 04:09 PM   #6
NinjaTrader_PatrickG
NinjaTrader Customer Service
 
NinjaTrader_PatrickG's Avatar
 
Join Date: Jan 2015
Posts: 2,153
Thanks: 28
Thanked 377 times in 350 posts
Default

Although NinjaTrader does not have logic for what data to process first, the data provider may send tick data before minute which would result in it taking longer for the minute chart to load.
NinjaTrader_PatrickG is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Optimizer slowing down thowefx Platform Technical Support 3 03-27-2015 09:20 AM
Chart should only load at a predefined time yeaheah Platform Technical Support 4 08-27-2012 05:56 PM
Chart taking a long time to load cnecorp Platform Technical Support 8 06-01-2010 09:45 PM


All times are GMT -6. The time now is 12:17 AM.

Futures, foreign currency and options trading contains substantial risk and is not for every investor. An investor could potentially lose all or more than the initial investment. Risk capital is money that can be lost without jeopardizing ones financial security or lifestyle. Only risk capital should be used for trading and only those with sufficient risk capital should consider trading. Past performance is not necessarily indicative of future results. View Full Risk Disclosure.

CFTC Rules 4.41 - Hypothetical or Simulated performance results have certain limitations, unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not been executed, the results may have under-or-over compensated for the impact, if any, of certain market factors, such as lack of liquidity. Simulated trading programs in general are also subject to the fact that they are designed with the benefit of hindsight. No representation is being made that any account will or is likely to achieve profit or losses similar to those shown.

This website is hosted and operated by NinjaTrader, LLC (“NT”), a software development company which owns and supports all proprietary technology relating to and including the NinjaTrader trading platform. NT is an affiliated company to NinjaTrader Brokerage (“NTB”), which is a NFA registered introducing broker (NFA #0339976) providing brokerage services to traders of futures and foreign exchange products. This website is intended for educational and informational purposes only and should not be viewed as a solicitation or recommendation of any product, service or trading strategy. No offer or solicitation to buy or sell securities, securities derivative or futures products of any kind, or any type of trading or investment advice, recommendation or strategy, is made, given, or in any manner endorsed by any NT affiliate and the information made available on this Web site is not an offer or solicitation of any kind. Specific questions related to a brokerage account should be sent to your broker directly. The content and opinions expressed on this website are those of the authors and do not necessarily reflect the official policy or position of NT or any of its affiliates. 

Vendors along with their websites, products and services, collectively referred to as (“Vendor Content”), are independent persons or companies that are in no manner affiliated with NT or any if its affiliates. NT or any of its affiliates are not responsible for, do not approve, recommend or endorse any Vendor Content referenced on this website and it’s your sole responsibility to evaluate Vendor Content. Please be aware that any performance information provided by a vendor should be considered hypothetical and must contain the disclosures required by NFA Rule 2-29(c). If you are interested in learning more about, or investigating the quality of, any such Vendor Content you must contact the vendor, provider or seller of such Vendor Content. No person employed by, or associated with, NT or any of its affiliates is authorized to provide any information about any such Vendor Content.