Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.
    BertrandNinjaTrader Customer Service

    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 Segwin, 05-07-2018, 02:15 PM
          14 responses
          1,788 views
          0 likes
          Last Post aligator  
          Started by Jimmyk, 01-26-2018, 05:19 AM
          6 responses
          837 views
          0 likes
          Last Post emuns
          by emuns
           
          Started by jxs_xrj, 01-12-2020, 09:49 AM
          6 responses
          3,293 views
          1 like
          Last Post jgualdronc  
          Started by Touch-Ups, Today, 10:36 AM
          0 responses
          13 views
          0 likes
          Last Post Touch-Ups  
          Started by geddyisodin, 04-25-2024, 05:20 AM
          11 responses
          63 views
          0 likes
          Last Post halgo_boulder  
          Working...
          X