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

Re: [EquisMetaStock Group] Adding a certain number of days to a date.



PureBytes Links

Trading Reference Links

bruni

What do you mean by "calculate the highest  and lowest value of the roc for
the time period loaded and then add  48 to 52 days to that date and plot a
line between the two"?

That doesn't quite make sense to me. I've created a line plot based on my
first understanding of your request but I see now that you mean something
different. Just what I can't quite decide. Hope the formula helps anyway.
What it does is find the highest point of the ROC then adds 48-52  bars to
that and plots a line between the two ROC values. It's apparently not what
you want but all the tools you need should be there.

Roy

  {Line Plot on ROC}
D:=Input("Line Length",48,52,50);
F:=Input("Roc Periods",5,99,20);
A:=ROC(C,F,%);
B:=BarsSince(A=Highest(A));
D1:=Cum(1)=LastValue(Cum(1))-LastValue(B);
  {D1 is first bar of line}
D2:=Cum(1)=LastValue(Cum(1))-LastValue(B)+D;
  {D2 is last bar of line}
P1:=A; {start-of-line data array}
P2:=A; {end-of-line data array}
V1:=ValueWhen(1,D1,P1);
V2:=LastValue(ValueWhen(1,D2,P2));
B1:=LastValue(BarsSince(D1));
B2:=LastValue(BarsSince(D2));
Bp:=LastValue(B2);
Line:=V1-Cum(If(D1=0,(V1-V2)/(B1-B2),0));
Line:=Ref(Ref(Line,-Bp),Bp); {blank end of line}
A; {Rate of Change}
Line;

----- Original Message ----- 
From: "Chris " <cjbruni@xxxxxxxxxxxxxxx>
To: <equismetastock@xxxxxxxxxxxxxxx>
Sent: Tuesday, July 22, 2003 4:48 AM
Subject: [EquisMetaStock Group] Adding a certain number of days to a date.


> Hello everyone,
>      I am trying to come up with a function to calculate the highest
> and lowest value of the roc for the time period loaded and then add
> 48 to 52 days to that date and plot a line between the two.  I know
> there is the hhv() and llv() function but is there a date function
> and then a way to add 48 days to it.  Still new to metastock - any
> help would be appreciated.
>
> Thanks
> bruni
>
>
>
> 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 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/sOykFB/k9VGAA/ySSFAA/BefplB/TM
---------------------------------------------------------------------~->

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/