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)
Size:
Color:
Something like:
CODE:
Please log in to see this code.
Size:
Color:
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.
Size:
Color:
QUOTE:
I'd suggest we add the following method(s) to Community.Components for this purpose.
Done (next release). Thanks Robert.
Size:
Color: