Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Count # of Bars since Midnight

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

    Count # of Bars since Midnight

    How could I count the # of bars since midnight on a chart?

    and also since start of session

    #2
    Hello NinjaCustomer,

    Thank you for your post.
    Originally posted by NinjaCustomer View Post
    How could I count the # of bars since midnight on a chart?
    You would use GetBar(): http://www.ninjatrader.com/support/h...nt7/getbar.htm

    As in
    Code:
    Bars.GetBar(new DateTime(Time[0].Year, Time[0].Month, Time[0].Day, 0, 0, 0))
    Originally posted by NinjaCustomer View Post
    and also since start of session
    Use BarsSinceSession: http://www.ninjatrader.com/support/h...ncesession.htm
    Patrick H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Da vinci, Today, 02:51 PM
    0 responses
    4 views
    0 likes
    Last Post Da vinci  
    Started by emini.ninja, Today, 02:50 PM
    0 responses
    5 views
    0 likes
    Last Post emini.ninja  
    Started by Polufson, Today, 01:37 PM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_Kate  
    Started by mohsemian, Today, 01:36 PM
    2 responses
    12 views
    0 likes
    Last Post mohsemian  
    Started by Derjan, Today, 01:18 PM
    2 responses
    20 views
    0 likes
    Last Post NinjaTrader_Kate  
    Working...
    X