PureBytes Links
Trading Reference Links
|
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 Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/BefplB/TM
---------------------------------------------------------------------~->
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/
|