PureBytes Links
Trading Reference Links
|
Hi all: help needed with conversion of MS formula:
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
This is what I have come up with:
P=Peak(H,1,1);
t= Trough(L,1,1);
Cond1= 100 * ((p-t)/ t);
Cond2 = C > Ref(HHV(C,25),-1);
Filter = Cond2 AND Volume > 200000 AND C > EMA(C,40) AND Cond1 <= 15;
AddColumn(Cond1,"value",1.2);
I am not sure about the P = Peak ( H,1,1) part. Should this read P = Peak(H,15,1) ??
Similarly should the t= Trough(L,15,1) be preferred?
TIA
krismar
---------------------------------
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
[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/
|