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

Ranking big list of instruments based on indicator value?

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

    Ranking big list of instruments based on indicator value?

    Hello,
    is there any way to rank a large basket of securities based on an indicator value?

    For example, rank 100 securities, based on ADX value on 5 mn time frame.
    Then get this rank in ninjascript (by highest value, descending) for further processing and order placements.

    #2
    Hello Duval,

    The Market Analyzer allows you to sort by a column such as an indicator value.

    Are you asking how to do this in code?
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hello Chelsea,
      Yes, not only in code, but also when doing backtest.

      So for example, when a backtest calculation is done, I would need it to check ADX value for 100 instruments, rank them highest value descending, then for example place trades on the first 2.
      Last edited by Duval; 06-30-2019, 01:28 PM.

      Comment


        #4
        Hello Duval,

        To do something in a backtest it would have to be in the code.

        You would either need to add the instruments with AddDataSeries() or use BarsRequests.

        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Interesting.... is there a limitation to the number of dataseries I can add?

          Comment


            #6
            Hello Duval,

            NinjaTrader does not limit the number of times you can call AddDataSeries() or do BarsRequests.

            The limit will be with your broker or data provider and the number of simultaneous data requests allowed and the performance of your PC.
            Chelsea B.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by bortz, 11-06-2023, 08:04 AM
            47 responses
            1,611 views
            0 likes
            Last Post aligator  
            Started by jaybedreamin, Today, 05:56 PM
            0 responses
            9 views
            0 likes
            Last Post jaybedreamin  
            Started by DJ888, 04-16-2024, 06:09 PM
            6 responses
            19 views
            0 likes
            Last Post DJ888
            by DJ888
             
            Started by Jon17, Today, 04:33 PM
            0 responses
            6 views
            0 likes
            Last Post Jon17
            by Jon17
             
            Started by Javierw.ok, Today, 04:12 PM
            0 responses
            22 views
            0 likes
            Last Post Javierw.ok  
            Working...
            X