Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

PlotBrushes get stuck if Calculate.OnEachTick

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

    #16
    Originally posted by NinjaTrader_ChelseaB View Post
    Hello tradesmart,

    Do you still have the old template and the script before changes?
    Yes. I try to save everything in multiple versions. I think that in this case there might have been an unexplained and unexpected infinite loop. I've just now put an iteration limit on the while loop to prevent such a possibility (the brute force fix). Later, I'll try to determine exactly what was causing it and employ a more elegant solution.

    Comment


      #17
      Hello tradesmart,

      This would depend on how NinjaTrader locked up. If the UI locked up and the cpu usage is at zero, then there is likely an exception that is causing the lock up.
      (Such as hitting an error trying to apply a template, or a script attempting to modify UI items without using Dispatch.InvokeAsync)

      If you see that the CPU usage is not a zero, then likely its a performance issue caused by code within the script such as loop or heavy calculations.

      If you are finding the UI locked up and the CPU is at zero, I'd like to take a look with you to see if we can identify what is causing the error.
      Chelsea B.NinjaTrader Customer Service

      Comment


        #18
        I shall continue to monitor this as you suggest and will let you know if trouble persists.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by fx.practic, 10-15-2013, 12:53 AM
        5 responses
        5,406 views
        0 likes
        Last Post Bidder
        by Bidder
         
        Started by Shai Samuel, 07-02-2022, 02:46 PM
        4 responses
        98 views
        0 likes
        Last Post Bidder
        by Bidder
         
        Started by DJ888, Yesterday, 10:57 PM
        0 responses
        8 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by MacDad, 02-25-2024, 11:48 PM
        7 responses
        160 views
        0 likes
        Last Post loganjarosz123  
        Started by Belfortbucks, Yesterday, 09:29 PM
        0 responses
        9 views
        0 likes
        Last Post Belfortbucks  
        Working...
        X