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
    Eric B.NinjaTrader Customer Service

    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 sidlercom80, 10-28-2023, 08:49 AM
          169 responses
          2,268 views
          0 likes
          Last Post QuantKey_Bruce  
          Started by Irukandji, Yesterday, 02:53 AM
          2 responses
          17 views
          0 likes
          Last Post Irukandji  
          Started by adeelshahzad, Today, 03:54 AM
          0 responses
          3 views
          0 likes
          Last Post adeelshahzad  
          Started by CortexZenUSA, Today, 12:53 AM
          0 responses
          3 views
          0 likes
          Last Post CortexZenUSA  
          Started by CortexZenUSA, Today, 12:46 AM
          0 responses
          1 view
          0 likes
          Last Post CortexZenUSA  
          Working...
          X