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 lorem, Yesterday, 09:18 AM
          3 responses
          13 views
          0 likes
          Last Post lorem
          by lorem
           
          Started by cmtjoancolmenero, Yesterday, 03:58 PM
          12 responses
          42 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by FrazMann, Today, 11:21 AM
          0 responses
          5 views
          0 likes
          Last Post FrazMann  
          Started by geddyisodin, Yesterday, 05:20 AM
          8 responses
          52 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by DayTradingDEMON, Today, 09:28 AM
          4 responses
          27 views
          0 likes
          Last Post DayTradingDEMON  
          Working...
          X