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

[amibroker] Re: Metastock Code Translation Help



PureBytes Links

Trading Reference Links


Anthony,

Thanks for the formula help.....I ran the exploration in metastock on
only 1600 stocks and, I also came up with only 1 stock, TR.

I will take your advice and  add the liquidity filter.

Thanks again,

Cordell
--- In amibroker@xxxxxxxxxxxxxxx, "Anthony Faragasso" <ajf1111@xxxx>
wrote:
> 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 
>   To: amibroker@xxxxxxxxxxxxxxx 
>   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
> 
> 
> 
> 
> 
>
------------------------------------------------------------------------------
>   Yahoo! Groups Links
> 
>     a.. To visit your group on the web, go to:
>     http://groups.yahoo.com/group/amibroker/
>       
>     b.. To unsubscribe from this group, send an email to:
>     amibroker-unsubscribe@xxxxxxxxxxxxxxx
>       
>     c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service. 
> 
> 
> 
> 
>
------------------------------------------------------------------------------
> 
> 
>   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
> 
> 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





------------------------ Yahoo! Groups Sponsor --------------------~--> 
What would our lives be like without music, dance, and theater?
Donate or volunteer in the arts today at Network for Good!
http://us.click.yahoo.com/Tcy2bD/SOnJAA/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/