| 
 PureBytes Links 
Trading Reference Links 
 | 
Hi everybody!
              I hope somone can help me!!!
I  need  TO  COUNT  HOW MANY peaks has a function but I can't find the
way.
In  this  case  I'm  interesting to know HOW MANY postive and negative
peaks are and also HOW LONG is each peak.
So I will be able to find a kind of ratio: (+)DIVS/(-)DIVS :)
Thank U in advance!!!
Best regargs,
             Pablo
{ User inputs }
pds:=20; {for calculus of divergences}
p1:=Input("Divergence pds for short EMA",1,260,20);
p2:=Input("Divergence pds for long EMA",20,260,200);
s1:= Mov(C,p1,E); { short-trend }
s2:= Mov(C,p2,E); { long-trend  }
{ Divergences between short and long trends }
divs:=If(s1<Mov(s1,pds,E) AND  (s1<Ref(s1,-pds))  AND
s2>Mov(s2,pds,E)  AND  (s2>Ref(s2,-pds)),-1,
If(s1>Mov(s1,pds,E) AND  (s1>Ref(s1,-pds)) AND
s2<Mov(s2,pds,E)  AND  (s2<Ref(s2,-pds)) ,1,0));
{ Plotting }
divs;
------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get to your groups with one click. Know instantly when new email arrives
http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/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/
 
 |