• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Chart load time is slowing down

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    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, 01:31 PM.

    #2
    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
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      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, 03:43 PM.

      Comment


        #4
        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..
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          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.

          Comment


            #6
            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.
            Patrick G.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by onnb1, Today, 01:17 PM
            0 responses
            1 view
            0 likes
            Last Post onnb1
            by onnb1
             
            Started by Johnny, Today, 12:54 PM
            0 responses
            6 views
            0 likes
            Last Post Johnny
            by Johnny
             
            Started by onnb1, Today, 12:45 PM
            0 responses
            3 views
            0 likes
            Last Post onnb1
            by onnb1
             
            Started by pstock805, Today, 08:45 AM
            1 response
            5 views
            0 likes
            Last Post sledge
            by sledge
             
            Started by pstock805, Today, 08:39 AM
            0 responses
            3 views
            0 likes
            Last Post pstock805  
            Working...
            X