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 argusthome, Yesterday, 10:06 AM
      0 responses
      14 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      11 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      9 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      4 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      31 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X