PureBytes Links
Trading Reference Links
|
Hello,
download indicators.dll
stephane
Index= Foreign("999150","C");
Periods=Param("period",20,20,200,10);
Plot(scBETA(Index,C,periods),"",colorBlue,1);
Beta=(( Periods * Sum(ROC( C,1) * ROC(Index,1),Periods )) - (Sum(ROC
(C,1),Periods) * Sum(ROC( Index,1),Periods))) / ((Periods * Sum((ROC
(Index,1)
^2 ),Periods)) - (Sum(ROC(Index,1 ),Periods)^2 ));
//Plot(beta,"BETA",colorWhite,1);
/*****Alpha*********************/
Alpha=(Sum(ROC( C,1) ,Periods) - ( Beta ) * Sum( ROC(
Index,1) ,Periods ) ) / Periods;
//Plot(ALPHA,"",colorRed,1);
Plot(scALPHA(Index,C,periods),"ALPHA",colorRed,1);
> There is a code by Anthony Faragasso in the AFL library,
>
> http://www.amibroker.com/library/detail.php?id=157
>
> It might be what you need.
>
> /JS
>
>
> --- In amibroker@xxxxxxxxxxxxxxx, "Werner" <WKRAG@xxxx> wrote:
> > Good day,
> >
> > I was wondering if there is a function for BETA in the AFL
> language.
> > I looked in the manual but did not find anything.
> > If not, how do I compute BETA (for volatility) in a stock. High
> BETA
> > stocks move up faster when the market goes up and vice versa.
> > I'd like to compare stocks to - let's say - the QQQ and find
those
> > that have a BETA of 2 (compared to the QQQ). Period maybe 6
> months.
> >
> > Any ideas?
> >
> > Thank you.
> >
> > Werner
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
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/
|