PDA

View Full Version : How can I check if the current bar being processed is today?


NinjaTrader_Ray
01-18-2007, 03:19 AM
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