Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Accessing Bar Spacing Property

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

    Accessing Bar Spacing Property

    Is it possible to access the properties of the chart

    - equidistant bar spacing
    - non-equidistant bar spacing (time-based)

    from within an indicator? This would be necessary, as for many indicators the code to be executed would be different for the two cases.

    Otherwise I would have to use an enum, and let user manually adjust the indicator to equidistant and non-equidistant bar spacing, which is not really the way to go.

    #2
    Hi Harry, while it's an unsupported method you could try working with ChartControl.EquidistantBars returning a bool whether or not equidistant spacing in on.

    Comment


      #3
      Originally posted by NinjaTrader_Bertrand View Post
      Hi Harry, while it's an unsupported method you could try working with ChartControl.EquidistantBars returning a bool whether or not equidistant spacing in on.
      That is exactly, what I was looking for. Thank you.

      Comment


        #4
        This is a very important idea for me. I need equal bar spacing on one chart with different data series; 500 tick and 1500 tick and 3000 tick all on one chart. Right now they seem to randomly go their own way. Exactly how is this controlled. I do not understand the comment to Harry about a bool. Please explain.
        Thank you very much,

        Comment


          #5
          JohnPS, as stated above, this is unfortunately an unsupported property.
          AustinNinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          599 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          345 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          103 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          558 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          558 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X