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

How to create an instrument list based on filters.

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

    How to create an instrument list based on filters.

    I want to backtest an equities strat in a specific sector of market cap less than 500m$.
    To do that I need to create a custom instrument list to input in Strategy Analyzer?
    If so, how do I create a custom instrument list based on the criteria I provided up above?

    #2
    Hello Maoz1155,

    To do this you would need to use the market analyzer to first create a list of the instruments you wanted. Once you do that you can use that instrument list in the backtest by doing a basket test, that is simply clicking select all when browsing the instrument list in the analyzer.



    In the market analyzer you can add the market capitalization column and then sort by that column. Any instruments that are below your threshold you can delete from the analyzer and leave just the instruments you wanted to test. After doing that Right click -> Create instrument list and save it under a custom name. That list will then appear in the instrument selectors in the platform.


    JesseNinjaTrader Customer Service

    Comment


      #3
      Thanks Jesse.
      How do I add all equity stocks to that market analyzer? If I remember right, there's a limit to how many columns it can contain, so I would probably wont be able to add them all to filter them in the first place.
      Another question. Is there a limit to how long the instrument list can be?

      Comment


        #4
        Hello Maoz1155,

        You can use existing instrument lists to add multiple at a time, if the items you want are not in a list already you would need to manually add them to the analyzer or to a list before using the analyzer.

        Your data provider may have a limit on the number of symbols you can subscribe to at once so you would likely need to slowly build the list rather than trying to add all at once.

        There is not a limit to the list but as mentioned if you have more instruments in the list than you can subscribe to you won't be able to use that list all at once. The market analyzer subscribes to realtime data and the strategy analyzer will request historical data.

        JesseNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by andrewtrades, Today, 04:57 PM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by chbruno, Today, 04:10 PM
        0 responses
        6 views
        0 likes
        Last Post chbruno
        by chbruno
         
        Started by josh18955, 03-25-2023, 11:16 AM
        6 responses
        436 views
        0 likes
        Last Post Delerium  
        Started by FAQtrader, Today, 03:35 PM
        0 responses
        7 views
        0 likes
        Last Post FAQtrader  
        Started by rocketman7, Today, 09:41 AM
        5 responses
        19 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Working...
        X