[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Recognising a new month starting



PureBytes Links

Trading Reference Links

At 06:32 AM 1/5/2005, Adrian Pitt wrote:

>I'm struggling to find a way to get TS to see if 'today' is a new month
>compared to the last trading bar. 


How about:

Var: DOM(0);

DOM = DayOfMonth(Date);

if DOM > DOM[1] then begin
   ...
end;


Bob Fulks