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

[EquisMetaStock Group] Re: Trace a line



PureBytes Links

Trading Reference Links

Roy,

Here's scoub's original request:

Those tops are from "high -20 days before"  to  " high-8 days before".

I read it as 8 days ago going back to 20 days ago which would be 12 
bars. Am I wrong?

P




--- In equismetastock@xxxxxxxxxxxxxxx, "Roy Larsen" <rlarsen@xxxx> 
wrote:
> Preston
> 
> I forget what the original request was but I'm thinking that the 
line to be
> truncated started 20 bars before a particular point and finished 8 
bars
> after it. That's a total of 28 bars (20+8). It looks to me that 
your lines
> are only 12 bars long (20-8).
> 
> It seems to me that Signal2 is displaced backwards rather than 
forwards. I
> may have it all wrong. If the beginning and/or end bars of the 
lines are
> miscalculated then everything else is going to fail.Get the timing 
right
> before worrying about how to calculate the numbers.
> 
> Roy
> 
> 
> 
> ----- Original Message ----- 
> From: "pumrysh" <no_reply@xxxxxxxxxxxxxxx>
> To: <equismetastock@xxxxxxxxxxxxxxx>
> Sent: Wednesday, September 10, 2003 9:34 AM
> Subject: [EquisMetaStock Group] Re: Trace a line
> 
> 
> > Roy,
> >
> > Thanks! So far the formula that I have come up with doesn't quite 
get
> > it... but its close. The problem, I think, is with the slope
> > calculation. Should be easy enough to subtract the value of the 
slope
> > from the oldest high and plot forward but so far its eluding me. I
> > know that I could use an if statement but I was hoping for a 
variable
> > input.
> >
> > Preston
> >
> > {BarBack DescendView}
> > len:=Input("Periods for Ref High",1,100,20);
> > Signal:=Ref(H,-len);
> > Barbk:=Input("Barsback High",1,100,8);
> > Signal2:=Ref(H,-Barbk);
> > {Periods:=len;} {periods to display last value}
> > {Line Plot }
> > D1:=Cum(1)=LastValue(Cum(1))-LastValue(len);
> > {D1 is first bar of line}
> > D2:=Cum(1)=LastValue(Cum(1))-LastValue(len)-(barbk);
> > {D2 is last bar of line}
> > P1:=signal2; {start-of-line data array}
> > P2:=signal; {end-of-line data array}
> > V1:=ValueWhen(1,D1,P1);
> > V2:=ValueWhen(1,D2,P2);
> > B1:=LastValue(BarsSince(D1));
> > B2:=LastValue(BarsSince(D2));
> > Line:=V1-Cum(If(D1=0,(v1/v2)-(b1/b2),0));
> > Line:=Ref(Ref(line,-barbk),barbk); {blank end of line}
> > Line;
> > aLine:=v1-Cum(If(D1=0,(b1*v1)/(b2*v2),0));
> > aLine:=Ref(Ref(aline,-barbk),barbk); {blank end of line}
> > aLine;
> >
> >
> >



------------------------ 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/l.m7sD/LIdGAA/qnsNAA/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/