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

Re: [amibroker] Metastock Code Translation Help



PureBytes Links

Trading Reference Links

Hello,
 
I would check your High volatility formula, out of 7000 + symbols only 1 hit.....also, maybe put some volume criteria in the scan to remove illiquid symbols.

HighVol=Close>20 AND (HHV((StDev(log(C/Ref(C,-1)),23) * sqrt(365)),5)) <

(HHV((StDev(log(C/Ref(C,-1)),23) * sqrt(365)),253)) AND

Ref((HHV((StDev(log(C/Ref(C,-1)),23) * sqrt(365)),5))

,-1)==Ref((HHV((StDev(log(C/Ref(C,-1)),23) * sqrt(365)),253)) ,-1) AND

(StDev(log(C/Ref(C,-1)),23) * sqrt(365))< Ref((StDev(log(C/Ref(C,-1)),23) *

sqrt(365)),-1);

LowVol= Close>20 AND (StDev(log(C/Ref(C,-1)),6) * sqrt(365))

<0.5*(StDev(log(C/Ref(C,-1)),100) * sqrt(365)) AND

(StDev(log(C/Ref(C,-1)),10) * sqrt(365))<0.5*(StDev(log(C/Ref(C,-1)),100) *

sqrt(365));

 

Filter=HighVol OR LowVol ;

AddColumn(Highvol*1,"High");

AddColumn(Lowvol*-1,"low");

----- Original Message -----
From: ct1942
Sent: Saturday, April 16, 2005 12:29 PM
Subject: [amibroker] Metastock Code Translation Help


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





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




No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.13 - Release Date: 4/16/2005


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

No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.13 - Release Date: 4/16/2005