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 Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        649 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        370 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        109 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        574 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        576 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X