Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Is it possible to count the number of bars on a chart?

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

    Is it possible to count the number of bars on a chart?

    Suppose i open a chart of the Sp500 60 min 17 days back.

    Obviously 60min means 7 bars per day * 17 days = 84 bars.

    But its not always that simple.

    So can we include in the scroll bar of the bottom chart the number of bars on the chart for the time selected or the time you scroll back and foward?

    thank you

    #2
    Hello frankduc,

    Unfortunately this is not supported by default.

    However, you can create a custom indicator or contact any of the supported NinjaScript consultants at the link below.


    In addition, information to create custom indicators can be found at the following link.

    Comment


      #3
      frankduc,

      You can code an indicator to display the CurrentBar value at the bottom right hand of the chart. As long as you keep the same tag, it will always overwrite itself with the most up to date value of CurrentBar.
      mrlogik
      NinjaTrader Ecosystem Vendor - Purelogik Trading

      Comment


        #4
        i understand the idea

        After all there is a countdown volume/time candle indicator.

        How do i modify or create a similiar that will count the number of candles in the chart or in a specific area of the chart is a mistery to me.

        Ill have to research this.

        Thanks for the comments MRlogik

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        32 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        126 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        182 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        94 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        138 views
        0 likes
        Last Post cmoran13  
        Working...
        X