Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Error: GetDayBar() should only be used for accessing prior trading day data.

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

    Error: GetDayBar() should only be used for accessing prior trading day data.

    Bars.GetSessionBar(0).Time get the error:
    “GetDayBar() should only be used for accessing prior trading day data. To access current trading day data, please use the CurrentDayOHL() method.”

    What method/technique should be used to get the 0 bar’s time and volume?

    #2
    Hello Jim,

    Thank you for your post.

    If you just need the current bar's time use Time[0]. For information on Time please visit the following link: http://www.ninjatrader.com/support/h...s/nt7/time.htm

    If you need the Volume of the current bar use VOL()[0]. For information on VOL() please visit the following link: http://www.ninjatrader.com/support/h...s/nt7/time.htm

    Please let me know if you have any questions.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    174 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    329 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    252 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    355 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    182 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Working...
    X