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

Re: [EquisMetaStock Group] Re: Highest prices for the year



PureBytes Links

Trading Reference Links

Preston

I like Jose's approach but I don't have a problem the full year being used. I use a "date filter"
all the time. Since the default has to be changed anyway for it to be effective for downstream code
that's where I make the change (the default value in the formula window).

By using GlobalVar.dll it would be possible to save parameters in such a way that MS would use the
parameter window values for all downstream code rather than the defaults. Jose's solution would work
well with that setup.

Roy


----- Original Message ----- 
From: "pumrysh" <no_reply@xxxxxxxxxxxxxxx>
To: <equismetastock@xxxxxxxxxxxxxxx>
Sent: Wednesday, January 21, 2004 11:12 AM
Subject: [EquisMetaStock Group] Re: Highest prices for the year


> Jose',
>
> Not the code I remember but it works and solves the problem!
>
> Thanks again,
>
> Preston
>
>
>
> --- In equismetastock@xxxxxxxxxxxxxxx, "Jose" <josesilva22@xxxx>
> wrote:
> >
> > Preston, perhaps something like the code below?
> >
> > =============
> > Date filter(2)
> > =============
> > ---8<------------------
> >
> > {2-digit year date filter}
> > {Plots +1 signal within user-input date period}
> > { http://users.bigpond.com/prominex/pegasus.htm }
> >
> > StDay:=Input("start Day",1,31,1);
> > StMnth:=Input("start Month",1,12,1);
> > StYear:=Input("start Year '00",0,99,3);
> > EnDay:=Input("end Day",1,31,31);
> > EnMnth:=Input("end Month",1,12,12);
> > EnYear:=Input("end Year '00",0,99,3);
> >
> > StYear:=If(StYear<40,StYear+2000,StYear+1900);
> > EnYear:=If(EnYear<40,EnYear+2000,EnYear+1900);
> >
> > start:=Year()>StYear
> >  OR (Year()=StYear AND (Month()>StMnth
> >   OR Month()=StMnth AND DayOfMonth()>=StDay));
> > end:=Year()<EnYear
> >  OR (Year()=EnYear AND (Month()<EnMnth
> >   OR Month()=EnMnth AND DayOfMonth()<=EnDay));
> >
> > start AND end
> >
> > ---8<------------------
> >
> > jose '-)
> >
> >
> >
> > --- In equismetastock@xxxxxxxxxxxxxxx, pumrysh <no_reply@xxxx>
> wrote:
> > > Jose',
> > >
> > > Thanks for the formulas!
> > >
> > > One of the problems that I'm sure everyone will run into is
> > adjusting
> > > the input for the year. If you simply use the advance/decline
> arrows
> > > you will get an input that will display 2000 as 2,000. Metastock
> > does
> > > not like the comma and to correct the problem you must remove it
> > > before the input will be accepted. Seems like there should be an
> > > easier way and I seem to remember a binary date code being posted
> > > recently that solves the problem but can't seem to find it right
> > now.
> > > Maybe someone else will remember it and post.
> > >
> > > Preston
>
>
>
>
>
> Yahoo! Groups Links
>
> To visit your group on the web, go to:
>  http://groups.yahoo.com/group/equismetastock/
>
> To unsubscribe from this group, send an email to:
>  equismetastock-unsubscribe@xxxxxxxxxxxxxxx
>
> Your use of Yahoo! Groups is subject to:
>  http://docs.yahoo.com/info/terms/
>
>
>
>



 

Yahoo! Groups Links

To visit your group on the web, go to:
 http://groups.yahoo.com/group/equismetastock/

To unsubscribe from this group, send an email to:
 equismetastock-unsubscribe@xxxxxxxxxxxxxxx

Your use of Yahoo! Groups is subject to:
 http://docs.yahoo.com/info/terms/