Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to improve NT8 performance where a Workspace has many (same instrument) charts

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

    How to improve NT8 performance where a Workspace has many (same instrument) charts

    NT Team,

    I conform to many of the NT8 performance tips (NinjaTrader 8): close unneeded Workspaces, Charts, Indicators, Drawing Objects, etc. However, I fall afoul with a Workspace with many charts based on the same instrument (many time-frames, three TradingHours templates). This presents a problem where running a Strategy, periodically significant memory usage can cause NT to freeze (I believe).

    The Workspace has a Strategy that uses the same time-frames and TradingHours templates. The Strategy prints trades and diagnostic data to the Output Window. After market close, I review the details in the Output Window and overlay against the (many) charts.

    The Strategy does not require the (many) charts to run. When the Strategy is run without the (many) charts, the memory usage is near half relative to when the Strategy is run with the (many) charts. However, the Output Window is cleared when switching to the workspace with (many) charts.

    I am looking for a solution to has :
    1. Improved performance (i.e. removing the chance of a NT freeze due to memory usage)
    2. The Output Window details
    3. The (many) charts
    Ideas to improve performance :
    1. Run Strategy without (many) charts
      • Copy Output Window details to Word document (or similar)
      • Close Workspace and open Workspace with (many) charts
      • Review as normal
    2. Run Strategy with (many) charts
      • Minimise all charts and set all Indicators to IsSuspendedWhileInactive (NinjaTrader 8)
      • However, IsSuspendedWhileInactive is ignored when Indicators are running in Automated NinjaScript Strategies
      • Confirmed BUSTED.
    3. Run Strategy with (many) charts
      • Reduce the number of TradingHours templates on the charts
      • Create a button(?) to quickly switch between Chart TradingHours templates
    4. Run Strategy with (many) charts
      • Create a button(?) to remove charts
      • Use button to populate and arrange all required charts
    5. Upgrade hardware.

    All thoughts are welcome.

    #2
    Hello Shansen,

    I think idea #1 would have the most effect. As you mention, memory usage is half without the workspace with many charts. Ideas 2-3-4 would not affect memory usage as much as idea #1. I can't think of any other ideas that would be better than your idea #1.


    JasonNinjaTrader Customer Service

    Comment


      #3
      Jason,

      Thank you for your quick reply.

      Where I am trying to find a solution that is not Option #1, is there any of the other options or other ideas that have merit?
      I appreciate, other solutions may not be as effective as Option #1.

      Again, thanks
      Shannon

      Comment


        #4
        Hello Shannon,

        Unfortunately I don't see how you can create a button to switch templates or remove charts. I'm not a programmer myself and would not know if this can be accomplished in NinjaScript. Nor do I know how this would affect memory usage. Perhaps you can limit the amount of charts or data series in charts to reduce the chance of NinjaTrader freezing.


        JasonNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by tgn55, Today, 09:51 PM
        0 responses
        1 view
        0 likes
        Last Post tgn55
        by tgn55
         
        Started by cxxazssx, Today, 09:45 PM
        0 responses
        1 view
        0 likes
        Last Post cxxazssx  
        Started by southpacific001, 02-26-2021, 09:25 PM
        14 responses
        64 views
        0 likes
        Last Post REI140205  
        Started by punkiy2111, Today, 05:22 PM
        0 responses
        3 views
        0 likes
        Last Post punkiy2111  
        Started by secrettrader, Today, 03:36 PM
        0 responses
        8 views
        0 likes
        Last Post secrettrader  
        Working...
        X