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 charlesugo_1, 05-26-2026, 05:03 PM
            0 responses
            55 views
            0 likes
            Last Post charlesugo_1  
            Started by DannyP96, 05-18-2026, 02:38 PM
            1 response
            142 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 05-11-2026, 05:56 AM
            0 responses
            160 views
            0 likes
            Last Post CarlTrading  
            Started by CarlTrading, 05-10-2026, 08:12 PM
            0 responses
            96 views
            0 likes
            Last Post CarlTrading  
            Started by Hwop38, 05-04-2026, 07:02 PM
            0 responses
            276 views
            0 likes
            Last Post Hwop38
            by Hwop38
             
            Working...
            X