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 halgo_boulder, 04-20-2024, 08:44 AM
          2 responses
          21 views
          0 likes
          Last Post halgo_boulder  
          Started by mishhh, 05-25-2010, 08:54 AM
          19 responses
          6,189 views
          0 likes
          Last Post rene69851  
          Started by gwenael, Today, 09:29 AM
          0 responses
          5 views
          0 likes
          Last Post gwenael
          by gwenael
           
          Started by Karado58, 11-26-2012, 02:57 PM
          8 responses
          14,830 views
          0 likes
          Last Post Option Whisperer  
          Started by Option Whisperer, Today, 09:05 AM
          0 responses
          2 views
          0 likes
          Last Post Option Whisperer  
          Working...
          X