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

[amibroker] Metastock Code Translation Help



PureBytes Links

Trading Reference Links


I've been using Fishback's ODDS exploration in metastock. Could anyone
translate the code below to Amibroker.

The exploration searches all securities for extremely high or
extremely low volatility.  Extremely high volatility securities will
show a "1" in the "Hi/low ?" column of the report, whereas extremely
low volatility securities will show a "-1".  

Formula:

If(CLOSE>20 AND (HHV((Std(Log(C/Ref(C,-1)),23) * Sqr(365)),5)) <
(HHV((Std(Log(C/Ref(C,-1)),23) * Sqr(365)),253)) AND
Ref((HHV((Std(Log(C/Ref(C,-1)),23) * Sqr(365)),5))
,-1)=Ref((HHV((Std(Log(C/Ref(C,-1)),23) * Sqr(365)),253)) ,-1) AND
(Std(Log(C/Ref(C,-1)),23) * Sqr(365))< Ref((Std(Log(C/Ref(C,-1)),23) *
Sqr(365)),-1),1{high volatility},If(
CLOSE>20 AND (Std(Log(C/Ref(C,-1)),6) * Sqr(365))
<0.5*(Std(Log(C/Ref(C,-1)),100) * Sqr(365)) AND
(Std(Log(C/Ref(C,-1)),10) * Sqr(365))<0.5*(Std(Log(C/Ref(C,-1)),100) *
Sqr(365)),-1{low volatility},0))

Filter:

(CLOSE>20 AND (HHV((Std(Log(C/Ref(C,-1)),23) * Sqr(365)),5)) <
(HHV((Std(Log(C/Ref(C,-1)),23) * Sqr(365)),253)) AND
Ref((HHV((Std(Log(C/Ref(C,-1)),23) * Sqr(365)),5))
,-1)=Ref((HHV((Std(Log(C/Ref(C,-1)),23) * Sqr(365)),253)) ,-1) AND
(Std(Log(C/Ref(C,-1)),23) * Sqr(365))< Ref((Std(Log(C/Ref(C,-1)),23) *
Sqr(365)),-1)) OR
CLOSE>20 AND (Std(Log(C/Ref(C,-1)),6) * Sqr(365))
<0.5*(Std(Log(C/Ref(C,-1)),100) * Sqr(365)) AND
(Std(Log(C/Ref(C,-1)),10) * Sqr(365))<0.5*(Std(Log(C/Ref(C,-1)),100) *
Sqr(365))

TIA, 

ct1942





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Has someone you know been affected by illness or disease?
Network for Good is THE place to support health awareness efforts!
http://us.click.yahoo.com/Rcy2bD/UOnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.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/