• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How can I check if the current bar being processed is today?

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

    How can I check if the current bar being processed is today?

    To check if the current bar time being processed by the OnBarUpdate() method is today:

    if (Time[0].Date == DateTime.Now.Date)
    // Do something

    Ray
    RayNinjaTrader Customer Service

Latest Posts

Collapse

Topics Statistics Last Post
Started by lightsun47, Today, 12:33 PM
0 responses
1 view
0 likes
Last Post lightsun47  
Started by Woomera, Today, 12:21 PM
0 responses
2 views
0 likes
Last Post Woomera
by Woomera
 
Started by MojoJojo, Yesterday, 07:19 PM
2 responses
26 views
0 likes
Last Post MojoJojo  
Started by U0000999, Today, 11:23 AM
3 responses
9 views
0 likes
Last Post NinjaTrader_Jesse  
Started by Jonathan.Lee, Today, 11:29 AM
1 response
8 views
0 likes
Last Post NinjaTrader_Jesse  
Working...
X