PureBytes Links
Trading Reference Links
|
datadog wrote:
> I think Gary meant the month cond. to be '<>' , not '>' below.
Whoops! Caught me. Yes, '>' will not work too well on Jan. 1.
'<>' is the right test.
> You might consider making a user function which has all the dates
> that match your cond, which returns a 1 only if the current date (or
> even tomorrow's data if you prefer) is 3 from eom. This is not a very
> elegant method but it works. You do need to periodically update the
> UF list of dates.
A perfectly simple and workable solution. Sometimes I just think
too hard. :-) With a few minutes' work you could have the
function prepped for 5 or 10 years in the future.
Gary
|