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 zstheorist, Today, 07:52 PM
        0 responses
        3 views
        0 likes
        Last Post zstheorist  
        Started by pmachiraju, 11-01-2023, 04:46 AM
        8 responses
        149 views
        0 likes
        Last Post rehmans
        by rehmans
         
        Started by mattbsea, Today, 05:44 PM
        0 responses
        5 views
        0 likes
        Last Post mattbsea  
        Started by RideMe, 04-07-2024, 04:54 PM
        6 responses
        33 views
        0 likes
        Last Post RideMe
        by RideMe
         
        Started by tkaboris, Today, 05:13 PM
        0 responses
        5 views
        0 likes
        Last Post tkaboris  
        Working...
        X