Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Loop through companies

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

    Loop through companies

    Is there a way to loop through all companies looking for patterns, such as moving average crossovers?

    #2
    Originally posted by jsanders View Post
    Is there a way to loop through all companies looking for patterns, such as moving average crossovers?
    That is the purpose of the Market Analyzer in NT.

    Comment


      #3
      I would like to do it programmatically. Is there a way to do so?

      Comment


        #4
        Originally posted by jsanders View Post
        I would like to do it programmatically. Is there a way to do so?
        You would have to use a multi-timeframe script, loading all the instruments that you want to test. After that, it is just a for loop to test every BarSeries.

        Comment


          #5
          Thank you. I'm somewhat new to NT. Could you provide more info or a link? Would I have to have all companies loaded?

          Comment


            #6
            Hello jsanders,

            Thank you for your post.

            For information on multiple instruments in your NinjaScript code please visit the following link: http://www.ninjatrader.com/support/h...nstruments.htm

            for loop information in C# (which NinjaScript is based on) can be found at the following link: http://msdn.microsoft.com/en-us/library/ch45axte.aspx

            We have Premium Paid Educational events where you will join a NinjaScript expert for a pair of 6-8 hour long intensive courses designed to provide you with an in depth look at programming indicators and automated strategies through the use of NinjaScript:


            If you would like to take on learning NinjaScript on your own, we have a fully documented help guide which will help you get started with Ninja Script. You will find language references to all of the methods and functions you will be using. You will also see a tutorial section which will help you create your first indicator and get you started with some of these concepts.
            A link to our Help Guide can be found below: http://www.ninjatrader.com/support/h...stribution.htm

            I am also linking you to the Educational Resources section of the Help Guide to help you get started with NinjaScript: http://www.ninjatrader.com/support/h..._resources.htm

            You will find Reference Samples online as well as some Tips and Tricks for both indicators and strategies:
            Click here to see our NinjaScript Reference Samples: http://www.ninjatrader.com/support/f...splay.php?f=30
            Click here to see our NinjaScript Tips: http://www.ninjatrader.com/support/f...ead.php?t=3229

            These samples can be downloaded, installed and modified from NinjaTrader and hopefully serve as a good base for your custom works.

            There is a also a growing library of user submitted custom indicators (100+) that can be downloaded from our support form. Please look in the NinjaScript File Sharing section of our support forum as you may find what you are looking for there: http://www.ninjatrader.com/support/f...splay.php?f=37

            If you have limited time or programming capabilities, you can discuss your requirements with any of our certified NinjaScript consultants.
            Click here for a list of certified NinjaScript Consultants: http://www.ninjatrader.com/Ecosystem/NonBroker.php#81

            Please let me know if you have any questions.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            633 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            364 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            105 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            567 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            568 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X