Date of recent bar
Author: ajewell
Creation Date: 4/2/2016 1:21 PM
profile picture

ajewell

#1
How do I obtain the date of the most recent bar? Some bars do not update. I wish to compare the current date to the latest bar date to ensure I am triggering off of current data.

Something like: DateTime.Today.ToString("d") equals Bars.Count (some kind of date function)
profile picture

Eugene

#2
Something like:

CODE:
Please log in to see this code.
profile picture

Cone

#3
For EOD Strategies, what is required is to know the date of the last trading session. I'd suggest we add the following method(s) to Community.Components for this purpose.

CODE:
Please log in to see this code.

Note, however, if you trade illiquid markets (or a stock who had undergone a trading halt for an entire session), this won't give you the desired result.
profile picture

Eugene

#4
QUOTE:
I'd suggest we add the following method(s) to Community.Components for this purpose.

Done (next release). Thanks Robert.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).