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 f.saeidi, Today, 12:14 PM
            7 responses
            16 views
            0 likes
            Last Post f.saeidi  
            Started by Russ Moreland, Today, 12:54 PM
            1 response
            6 views
            0 likes
            Last Post NinjaTrader_Erick  
            Started by philmg, Today, 12:55 PM
            1 response
            7 views
            0 likes
            Last Post NinjaTrader_ChristopherJ  
            Started by TradeForge, 04-19-2024, 02:09 AM
            2 responses
            32 views
            0 likes
            Last Post TradeForge  
            Started by aprilfool, 12-03-2022, 03:01 PM
            3 responses
            329 views
            0 likes
            Last Post NinjaTrader_Adrian  
            Working...
            X