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 cmoran13, Yesterday, 01:02 PM
            0 responses
            28 views
            0 likes
            Last Post cmoran13  
            Started by PaulMohn, 04-10-2026, 11:11 AM
            0 responses
            18 views
            0 likes
            Last Post PaulMohn  
            Started by CarlTrading, 03-31-2026, 09:41 PM
            1 response
            160 views
            1 like
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 04-01-2026, 02:41 AM
            0 responses
            95 views
            1 like
            Last Post CarlTrading  
            Started by CaptainJack, 03-31-2026, 11:44 PM
            0 responses
            148 views
            2 likes
            Last Post CaptainJack  
            Working...
            X