Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Range bar time

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

    Range bar time

    Hello

    How I will know open/close time for some range bar?

    #2
    Hello ren37,

    Thank you for your post,

    Individual range bars are created when the tick value is breached, at which point a new bar begins. See the below section of our help guide for more on bar types.

    https://ninjatrader.com/support/help...?bar_types.htm

    As a note, you can use the Data Box or Mini Data Box to view details on your chart with your mouse. The data box can be enabled from the chart tool bar or by holding down the middle mouse, or scroll wheel button when hovering your mouse over the price data.


    https://ninjatrader.com/support/help.../?data_box.htm

    Comment


      #3
      I need this in NinjaScript.
      Perhaps I can check prior range bar close time to know current bar open time? Or better to check FirstTickOfBar property and store time for that tick?

      what do you think?
      Last edited by ren37; 09-22-2016, 12:16 PM.

      Comment


        #4
        Hello Ren, and thank you for your question. I would definitely recommend using the Time DataSeries documented here,




        If, for instance, you wanted to know the open and close times 5 bars ago,

        Code:
        DateTime openTime = Time[6];
        DateTime closeTime = Time[5];
        Please let us know if there are any other ways we can help.
        Last edited by NinjaTrader_JessicaP; 09-22-2016, 01:38 PM.
        Jessica P.NinjaTrader Customer Service

        Comment


          #5
          Thanks a lot.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Mindset, Yesterday, 06:46 AM
          0 responses
          14 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          23 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          16 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by cmoran13, 04-16-2026, 01:02 PM
          0 responses
          82 views
          0 likes
          Last Post cmoran13  
          Started by PaulMohn, 04-10-2026, 11:11 AM
          0 responses
          51 views
          0 likes
          Last Post PaulMohn  
          Working...
          X