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.
    JesseNinjaTrader Customer Service

    Comment


      #3
      OK will let you know

      Thanks

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by quantismo, 04-17-2024, 05:13 PM
      3 responses
      25 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by ScottWalsh, 04-16-2024, 04:29 PM
      7 responses
      34 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by cls71, Today, 04:45 AM
      0 responses
      5 views
      0 likes
      Last Post cls71
      by cls71
       
      Started by mjairg, 07-20-2023, 11:57 PM
      3 responses
      214 views
      1 like
      Last Post PaulMohn  
      Started by TheWhiteDragon, 01-21-2019, 12:44 PM
      4 responses
      547 views
      0 likes
      Last Post PaulMohn  
      Working...
      X