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 Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            571 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            331 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            101 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            549 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            549 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X