Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Accessing top sort in Market Analyzer

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

    Accessing top sort in Market Analyzer

    I have a custom indicator column in the MA. My stock list is sorted smallest to largest on this column. I want to pick the top stock and trade it automatically. How do I look up that stock from code?

    #2
    Hello,

    How I would do this is using the windows linking function.

    On the top right hand corner of the Window is a L button. Set this to a color. Now open up the superDOM or Chart Trader or Basic Entry window however you plan to trade this and then also set its link to the same color. You can do this with charts too. That way when you click on the instrument in the market analyzer, the chart and order entry window both change to have this instrument selected.



    Let me know if I can be of further assistance.
    BrettNinjaTrader Product Management

    Comment


      #3
      Thanks, but I need to retrieve the instrument into the code.

      Comment


        #4
        Hello,

        Got it. This would actually not be possible automatically.

        To do this automatically, you would need to setup a multi series strategy that is running on all the instruments you may possibly be trading and then run this indicator on each series in your code and then chose which one to trade there in your strategy. This requires you to understand multi instrument strategy programming as a strategy in NinjaTrader by default only runs on one instrument at a time.

        BrettNinjaTrader Product Management

        Comment


          #5
          I assume that setting up 500 such series would degrade performance.

          Comment


            #6
            Hello,

            Yes this would, I have not specifically tested this however you have to have an active connection and strategy running on each instrument with OnBarUpdate()'s occurring for each data series. I know people that have run 10 to 100 but this is all relative and depending on the complexity of your code, the amount of historical data you need loaded into RAM and then power of the computer. I would start of with a small amount or 2 symbols and keep adding and testing until you find the wall for your specific setup.

            The alternative would be to use the MA to scan the market and then start your strategies at the beginning of the day on the instruments manually that you want to trade.

            Let me know if I can be of further assistance.
            BrettNinjaTrader Product Management

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            627 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            359 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            105 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            562 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            568 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X