Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

BackgroundWorker

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

    BackgroundWorker

    Can I use the C# BackgroundWorker when I need to make a call to a web service like Yahoo ?

    Thanks

    #2
    Hello blar58,

    Thank you for your post.

    There would not be a supported means to do this within in NinjaTrader.

    Comment


      #3
      Thanks Patrick

      Just for my understanding, is it because NinjaTrader does not use multiple threads ?


      Thanks

      Comment


        #4
        Hello blar58,

        Thank you for your response.

        That may be part of the case for NinjaTrader 7, but I am referring to the ability to use the backgroundworker to call a web service in NinjaScript. There may be unsupported means to achieve this, but I am not aware of such items.

        Comment


          #5
          You can use BackgroundWorker Class with NT7 NinjaScript.

          NT7 is a multi-threaded program however, the UI, which is where your NinjaScripts(Indicators and Strategies) are calculated and ran from, is on 1 thread, making it more or less a single threaded application for our given context.

          If you want to perform some operations on a background thread you can do that with your script. There's even a sample that someone did on the Miscellaneous forum page for uploaded scripts.

          http://ninjatrader.com/support/forum...atid=6&lpage=1

          Comment


            #6
            Thank you Calonious !

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Hwop38, 05-04-2026, 07:02 PM
            0 responses
            177 views
            0 likes
            Last Post Hwop38
            by Hwop38
             
            Started by CaptainJack, 04-24-2026, 11:07 PM
            0 responses
            331 views
            0 likes
            Last Post CaptainJack  
            Started by Mindset, 04-21-2026, 06:46 AM
            0 responses
            254 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by M4ndoo, 04-20-2026, 05:21 PM
            0 responses
            356 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Started by M4ndoo, 04-19-2026, 05:54 PM
            0 responses
            184 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Working...
            X