Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 kevinenergy, 02-17-2023, 12:42 PM
            116 responses
            2,757 views
            1 like
            Last Post kevinenergy  
            Started by franatas, 12-04-2023, 03:43 AM
            7 responses
            106 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by jpapa, Today, 07:22 AM
            0 responses
            1 view
            0 likes
            Last Post jpapa
            by jpapa
             
            Started by Jltarrau, Today, 05:57 AM
            3 responses
            7 views
            0 likes
            Last Post Jltarrau  
            Started by f.saeidi, Today, 05:56 AM
            2 responses
            8 views
            0 likes
            Last Post NinjaTrader_Erick  
            Working...
            X