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 arvidvanstaey, Today, 02:19 PM
            4 responses
            11 views
            0 likes
            Last Post arvidvanstaey  
            Started by samish18, 04-17-2024, 08:57 AM
            16 responses
            61 views
            0 likes
            Last Post samish18  
            Started by jordanq2, Today, 03:10 PM
            2 responses
            9 views
            0 likes
            Last Post jordanq2  
            Started by traderqz, Today, 12:06 AM
            10 responses
            18 views
            0 likes
            Last Post traderqz  
            Started by algospoke, 04-17-2024, 06:40 PM
            5 responses
            48 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Working...
            X