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

Re: [EquisMetaStock Group] Re: How to find the 2nd highest high,the 3rd highest high ?



PureBytes Links

Trading Reference Links


Hi José,

Thanks for your reply but unfortunately, my coding capabilities are weak and I just can't understand the indicator you kindly gave to me :-[
Hope someone will be able to modify it.

Regards,
Marco


Jose Silva a écrit :
Marco, I don't have MetaStock with me, but perhaps you can modify the 
indicator below.

===================
BarsSince Nth event
===================
---8<--------------------------

{ ©Copyright 2005 Jose Silva }
{ For personal use only }
{ http://www.metastocktools.com }

{ User inputs }
NthEvent:=Input("BarsSince Nth event  (1=last, 2=2nd last, 
etc)",1,1000,2);
plot:=Input("plot:  [1]BarsSince Nth event,  [2]Event signals",1,2,1);

{ Event peak example }
signal:=PeakBars(1,L,.01)=0;;

{ Count events backwards }
count:=LastValue(Cum(signal))-Cum(signal)+1;

{ BarsSince Nth event }
BarsSinceNth:=
 HighestSinceBars(NthEvent+1,signal,count)-1;

{ Plot in own window }
If(plot=1,BarsSinceNth,signal)

---8<--------------------------


jose '-)
http://www.metastocktools.com



--- In equismetastock@xxxxxxxxxxxxxxx, Khamsina11 
<Khamsina11@xxxx> wrote:
  
Hi,

Can anyone help me with this formula. I'm trying to do the following :

For instance, _for all the quotations available_, try to find for an 
indicator (i.e. rsi) :

- its 2nd highest high, its 3rd highest high and its 4th highest high
- conversely, its 2nd lowest low, its 3rd lowest low and its 4th lowest
low

I have been playing around with Lowest and Highest functions but
these  didn't work.

Any guidance will be highly appreciated,
Many thanks,

Regards,

Marco
    




------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a href="" class="moz-txt-link-rfc2396E" href="">"http://us.ard.yahoo.com/SIG=12hu2bdv7/M=362131.6882500.7825259.1493532/D=groups/S=1705375617:TM/Y=YAHOO/EXP=1124882982/A=2889190/R=0/SIG=10r90krvo/*http://www.thebeehive.org
">Put more honey in your pocket. (money matters made easy) Welcome to the Sweet Life - brought to you by One Economy</a>.</font>
--------------------------------------------------------------------~-> 

 
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/
 




  


SPONSORED LINKS
Business finance course Business to business finance Small business finance
Business finance consultant Business finance magazine Business finance schools


YAHOO! GROUPS LINKS