Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

what is happening on charts when the workspace is not the selected one?

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

    what is happening on charts when the workspace is not the selected one?

    What is happening internally in Ninja when a workspace is "behind", that is not the one being displayed?

    because I have one chart with a lot of draw objects, and when I bring that workspace from "behind" to "forefront", it seems it has to redraw all the draw object?

    this sometimes causes quite a delay for the workspace / chart to normalize....it apparently is doing something....but it appears to be hanging / stuck

    during that time some of the charts go black and there is no access via keyboard or mouse

    this is not the case when the workspace first is opened, it needs time to load the charts, but it does not "hang"

    the CPU does not spike

    what is happening?

    #2
    Hello llanqui,

    Thank you for your post.

    When a workspace is in the background due to another workspace being the open, active workspace, the background workspace is considered inactive. When a workspace is inactive, many parts of that workspace are suspended and will not calculate again until that workspace becomes the active workspace again. If your draw objects are from an indicator script, you could consider setting the IsSuspendedWhileInactive property of the indicator to false so that the indicator will continue to calculate OnBarUpdate() even if the chart/workspace is inactive:


    Please let us know if we may be of further assistance.
    Emily C.NinjaTrader Customer Service

    Comment


      #3
      Ok, will check that, but I think all IsSuspendedWhileInactive is set to false

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by burtoninlondon, Today, 12:38 AM
      0 responses
      10 views
      0 likes
      Last Post burtoninlondon  
      Started by AaronKoRn, Yesterday, 09:49 PM
      0 responses
      14 views
      0 likes
      Last Post AaronKoRn  
      Started by carnitron, Yesterday, 08:42 PM
      0 responses
      11 views
      0 likes
      Last Post carnitron  
      Started by strategist007, Yesterday, 07:51 PM
      0 responses
      14 views
      0 likes
      Last Post strategist007  
      Started by StockTrader88, 03-06-2021, 08:58 AM
      44 responses
      3,983 views
      3 likes
      Last Post jhudas88  
      Working...
      X