| 
 PureBytes Links 
Trading Reference Links 
 | 
Help from MS to AB gurus: PnT exploration.
 
I am trying to understand the following from Guppy’s newsletter:
Metastock Peak to Trough Exploration:                
Col A:          ((Peak(1,H,1)-Trough(1,L,1))/Trough(1,L,1)*100)     
Col B:            CLOSE>Ref(HHV(C,25),-1)   
Filter              colB=1 AND V>200000 AND C>Mov(C,40,E) AND colA<=15
I presume in Metastock-ese the Peak(1,H,1) refers to AB Peak(H,1,1) ? Is this correct?
 
Then I would need the following:
 
p = Peak(H,1,1);
t = Trough(L,1,1);
Perc = 100 * ((p -t)/t );
 
Filter = Close > (Ref(HHV(C,25), -1))
AND Volume > 200000
AND C > EMA(C,40)
AND Perc < 15;
 
AddColumn(p,"peak",1.2);
AddColumn(Perc,"%change",1.2);
AddColumn(PeakBars(H,1,1),"barssincepeak",1);
 
Is this saying the same thing as the MS code?
 
TIA
 
ChrisB
__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
[Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links
<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/
<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 
 |