PureBytes Links
Trading Reference Links
|
Unfortunately the "yyyymmdd" format introduces precision errors in
MetaStock. For example, 20050503 may sometimes plot as 20050504.
jose '-)
http://www.metastocktools.com
--- In equismetastock@xxxxxxxxxxxxxxx, "v" <entinv@xxxx> wrote:
> 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 Sponsor --------------------~-->
Has someone you know been affected by illness or disease?
Network for Good is THE place to support health awareness efforts!
http://us.click.yahoo.com/Rcy2bD/UOnJAA/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/
|