Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Market Breadth Analysis

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

    Market Breadth Analysis

    Is it possible to collate market breadth statistics in NT? For example, can I create a new data series whose content is the number of stocks in list A which makes 52 weeks high?

    Thank you!

    #2
    Hello,

    Thanks for the note.

    This is possible but would take a multi instrument indicator or strategy to do this with. You would simply setup code to identify stocks at a high and then add them all together to a variable and then set the variable to the dataseries and you can plot this if you would like on the chart as well.

    This is getting into some more advanced NinjaScript to do this however.



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

    Comment


      #3
      Hi Brett,

      Thank you for the quick response. At least you pointed out that it can be done! I will look into what you suggested.

      Let's say the instruments in the list have different start dates, e.g. some only has 500 days of data while others have >2000 days of historical data. I need the breadth statistic to start from 2000 days ago. Let's say the statistic is just summation of stocks which make new high. For stocks which do not have data yet, i would like to put 0 in the summation.

      Would what you suggested work in this case?

      Comment


        #4
        Hello,

        The indicator will be limited to the instrument that has the least data. As it will not start running until all data is loaded for all instruments and it will start at the point of the instrument that has the least data.

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

        Comment


          #5
          I see. This is a big problem for my case then.

          Is there a fast way to know the earliest available data for each stock in a list?

          Comment


            #6
            Hello,

            Best way is to pull up a chart with maximum number of bars back.

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

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            85 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            47 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            29 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            32 views
            0 likes
            Last Post TheRealMorford  
            Started by Mindset, 02-28-2026, 06:16 AM
            0 responses
            67 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Working...
            X