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

Re: Code Help for Trading Day



PureBytes Links

Trading Reference Links

That code looks as if it would work correctly on a chart of daily bars.

It counts the bars it finds starting with "1" on the first bar of the month.

Bob Fulks



At 01:12 PM 11/8/2004, Greg Hunt wrote:

>Can someone please correct this function for me?
>In my EL library; not sure where it came from or why it doesn't work.
>TIA.
>Dr. Greg Hunt
>
>{TRADING DAY OF THE MONTH
>}
>Vars: Mo(0), TradeDay(0);
>
>Mo = Month(Date);
>TradeDay = iff(Mo <> Mo[1], 1, TradeDay + 1);