Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

BackgroundWorker with NT 8

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

    BackgroundWorker with NT 8

    Because now NT 8 is a multithreaded application can we now use the
    BackgroundWorker for example to download something from Yahoo and do lenghty calculations without freezing the UI.

    Thanks

    #2
    Hello,

    Thank you for the question.

    For WebRequest specifically, it has asynchronous methods that can be called to avoid blocking the UI thread.

    In general with NinjaTrader 8, you could use a number of different threading options, currently there are no specific options which are more suggested than the others.

    The Task Parallel Library is Microsoft's preferred method of spawning and controlling asynchronous background tasks, but there is no particular reason to avoid the BackgroundWorker class if that is what you are comfortable with.

    You could also use the Thread class if you wished.

    The main item here would be to test and ensure you are not getting any sort of Log errors, Popup errors or NinjaScript errors in the Output WIndow.

    I look forward to being of further assistance.

    Comment


      #3
      OK will let you know

      Thanks

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      683 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      386 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      111 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      584 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      585 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X