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 Carolscogginsi, Yesterday, 10:45 PM
        0 responses
        6 views
        0 likes
        Last Post Carolscogginsi  
        Started by RaddiFX, Yesterday, 10:15 AM
        2 responses
        15 views
        0 likes
        Last Post RaddiFX
        by RaddiFX
         
        Started by patrickmlee007, Yesterday, 09:33 AM
        2 responses
        18 views
        0 likes
        Last Post patrickmlee007  
        Started by magnatauren, 08-15-2020, 02:12 PM
        5 responses
        208 views
        0 likes
        Last Post RaddiFX
        by RaddiFX
         
        Started by rene69851, 05-02-2024, 03:25 PM
        1 response
        24 views
        0 likes
        Last Post rene69851  
        Working...
        X