PureBytes Links
Trading Reference Links
|
I suppose so - be careful with pre-2000 dates.
jose '-)
--- In equismetastock@xxxxxxxxxxxxxxx, "v" <entinv@xxxx> wrote:
> Jose,
>
> Is date in this format "ptyymmdd" can be used for comparison like
> If(ptyymmdd_1>ptyymmdd_2,1,2) ?
>
>
> Vladimir
>
> -----Original Message-----
> From: equismetastock@xxxxxxxxxxxxxxx
> [mailto:equismetastock@xxxxxxxxxxxxxxx]On Behalf Of Jose Silva
> Sent: Monday, May 02, 2005 12:53 PM
> To: equismetastock@xxxxxxxxxxxxxxx
> Subject: [EquisMetaStock Group] Re: EXPLORATION
>
>
> You're welcome. Here is an updated version:
>
> =============
> Date at Event
> =============
> ---8<--------------------------
>
> { Date at event signals - v2.0 }
>
> { ©Copyright 2005 Jose Silva
> For personal use only.
> http://www.metastocktools.com }
>
> { User inputs }
> plot:=Input("Event: [1]Date, [2]Signal, [3]Date+Signal",1,3,1);
> format:=Input("Date format: [1]0.yymmdd, [2]ymmdd, [3]ddmmyy",1,
3,1);
>
> { Event example }
> event:=Cross(Mov(C,5,E),Mov(C,20,E));
>
> { Date components }
> y:=If(Year()<2000,Year()-1900,Year()-2000);
> m:=Month();
> d:=DayOfMonth();
>
> { Date in selected format }
> yymmdd:=y*10000+m*100+d;
> ptyymmdd:=yymmdd/1000000;
> ddmmyy:=y+m*100+d*10000;
> date:=If(format=1,ptyymmdd,
> If(format=2,yymmdd,ddmmyy));
>
> { Extend date from last event }
> xtDate:=ValueWhen(1,event,date);
>
> { Plot in own window }
> If(plot=1,xtDate,If(plot=2,event,event*date))
>
> ---8<--------------------------
>
>
> jose '-)
> http://www.metastocktools.com
>
>
>
> --- In equismetastock@xxxxxxxxxxxxxxx, "Hitendra Vasudeo"
> <hitendra@xxxx> wrote:
> Thank you very much, Jose
------------------------ Yahoo! Groups Sponsor --------------------~-->
In low income neighborhoods, 84% do not own computers.
At Network for Good, help bridge the Digital Divide!
http://us.click.yahoo.com/EpW3eD/3MnJAA/cosFAA/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/
|