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 Hwop38, 05-04-2026, 07:02 PM
      0 responses
      135 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      290 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      238 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      331 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      171 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Working...
      X