Frank, here is a one-liner that I use.  You need to be aware that it 
does look ahead one day (references +1 day into the future).  It will 
work correctly in backtesting, but you will need a different solution 
if you are looking at Real Time operations.

LastDayofMonth  = IIf(Day() > Ref(Day(),1),1,0);




--- In [email protected], "frankami2007" <[EMAIL PROTECTED]> wrote:
>
> What AFL code can be used to determine the last day of the month? I 
am 
> trying to create a trading system that only trades on the last day of 
> the month.
>


Reply via email to