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

RE: Code Help for Trading Day



PureBytes Links

Trading Reference Links

Sounds like you tried to make it a function and your not assiging a return
value.

Jerry

-----Original Message-----
From: Greg Hunt [mailto:greghunt@xxxxxxxxxxxx]
Sent: Monday, November 08, 2004 3:39 PM
To: Bob Fulks
Cc: omega-list@xxxxxxxxxx
Subject: Re: Code Help for Trading Day


Bob;
Thanks for your help.
The problem is that this code will not verify.
The error says, 'A value was never assigned to the user function.'
Please fix if you can.

Dr Greg Hunt

Bob Fulks wrote:

> 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);