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

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    563 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    329 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    547 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    548 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X