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

Re: [amibroker] Help : MS to AB gurus: shorter question.



PureBytes Links

Trading Reference Links

OK I can make the question clearer and shorter:::::::
 
In Metastock code: Peak(a,H,b)
 
what does the "a" refer to?
 
what does the "b" refer to?
 
Is Metastock Peak(a,H,b) the same as Amibroker
 
Peak(H,a,b)
 
or Peak(H,b,a) ???
 
TIA.
 
ChrisB
 
 
 


kris45mar <kris45mar@xxxxxxxxx> wrote:


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]




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








			
---------------------------------
Do you Yahoo!?
 Check out the new Yahoo! Front Page. www.yahoo.com

[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/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/