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 CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    232 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    150 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    161 views
    1 like
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    243 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    198 views
    0 likes
    Last Post CarlTrading  
    Working...
    X