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

RE: [EquisMetaStock Group] Re: EXPLORATION



PureBytes Links

Trading Reference Links

Is date at event can be represented as "yyyymmdd" ?
 
 
Vladimir
-----Original Message-----
From: equismetastock@xxxxxxxxxxxxxxx [mailto:equismetastock@xxxxxxxxxxxxxxx]On Behalf Of Jose Silva
Sent: Monday, May 02, 2005 1:24 PM
To: equismetastock@xxxxxxxxxxxxxxx
Subject: [EquisMetaStock Group] Re: EXPLORATION

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 Links