PureBytes Links
Trading Reference Links
|
Does anyone have the
afl code for the Sortino Ratio, Upside Semivariance & Downside
Semivariance?
<SPAN
class=953183119-15052004><SPAN
class=953183119-15052004><SPAN
class=953183119-15052004><SPAN
class=953183119-15052004>
<B
><SPAN
>Sortino
Ratio<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office"
/>
<SPAN
>Where R
I = Return for period I
<SPAN
><SPAN
>
Where N = Number of Periods
<SPAN
><SPAN
>
Where R MAR = Period Minimum Acceptable
Return
<SPAN
><SPAN
>
Where DD MAR = Downside Deviation
<SPAN
><SPAN
>
Where L I = R I <SPAN
><SPAN
>-<SPAN
> R
MAR ( IF R I <SPAN
><SPAN
>-<SPAN
> R
MAR <SPAN
><SPAN
><<SPAN
><SPAN
> 0 )or<SPAN
> 0 ( IF R I
<SPAN
><SPAN
>-<SPAN
> R
MAR <SPAN
><SPAN
>³<SPAN
><SPAN
> 0 )
<SPAN
><SPAN
>
<SPAN
> <SPAN
>N<SPAN
>
<FONT
face=Garamond>DD
MAR =<SPAN
> <SPAN
>(<SPAN
> <SPAN
>(<SPAN
><SPAN
>S<FONT
face=Garamond><SPAN
> ( L I ) <B
>2 <SPAN
>)<SPAN
> <SPAN
><SPAN
>¸<FONT
face=Garamond><SPAN
> N <SPAN
>)
½
<SPAN
><SPAN
>
I=1
<SPAN
><SPAN
>
<SPAN
>
<SPAN
>Sortino
Ratio =
(<SPAN
> Compound Period Return
<SPAN
><SPAN
>-<FONT
face=Garamond> R
MAR <SPAN
>)<SPAN
> <SPAN
><SPAN
>¸<SPAN
> DD
MAR
<SPAN
><FONT
face=Garamond>
<B
><SPAN
>Annualized Sortino
Ratio<SPAN
>
<SPAN
><SPAN
>
<SPAN
>
Annualized Sortino = Monthly
Sortino <SPAN
><SPAN
>´<FONT
face=Garamond> ( 12 )
<SPAN
>½<B
><SPAN
>
<SPAN
class=953183119-15052004>
<SPAN
class=953183119-15052004>
<SPAN
class=953183119-15052004>Thanks,
Mr
Valley
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 Sponsor
ADVERTISEMENT
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 the Yahoo! Terms of Service.
|