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 ageeholdings, Today, 07:43 AM
          0 responses
          7 views
          0 likes
          Last Post ageeholdings  
          Started by pibrew, Today, 06:37 AM
          0 responses
          4 views
          0 likes
          Last Post pibrew
          by pibrew
           
          Started by rbeckmann05, Yesterday, 06:48 PM
          1 response
          14 views
          0 likes
          Last Post bltdavid  
          Started by llanqui, Today, 03:53 AM
          0 responses
          6 views
          0 likes
          Last Post llanqui
          by llanqui
           
          Started by burtoninlondon, Today, 12:38 AM
          0 responses
          12 views
          0 likes
          Last Post burtoninlondon  
          Working...
          X