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.

    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.

        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.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by trilliantrader, 04-18-2024, 08:16 AM
            7 responses
            27 views
            0 likes
            Last Post NinjaTrader_BrandonH  
            Started by samish18, 04-17-2024, 08:57 AM
            17 responses
            64 views
            0 likes
            Last Post NinjaTrader_BrandonH  
            Started by rocketman7, Today, 02:12 AM
            2 responses
            17 views
            0 likes
            Last Post rocketman7  
            Started by briansaul, Today, 05:31 AM
            1 response
            13 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Started by PaulMohn, Today, 03:49 AM
            1 response
            12 views
            0 likes
            Last Post NinjaTrader_BrandonH  
            Working...
            X