StockFetcher Forums · Filter Exchange · help<< >>Post Follow-up
hmsb4494
81 posts
msg #120242
Ignore hmsb4494
5/29/2014 6:21:23 PM

Any coding ideas for the 3 month average of the 1 month sharpe ratio---I cannot make the numbers work out

Kevin_in_GA
4,599 posts
msg #120244
Ignore Kevin_in_GA
5/29/2014 8:41:04 PM

Fetcher[
/*STEP 1: Determine sharpe ratio for the last month (21 trading days)*/
SET{performance, roc(21,1)}
SET{STD, CSTDDEV(CLOSE,21)}
SET{Volatility, STD / MA(21)}
SET{VOL, Volatility * 100}

SET{SHARPE, performance / VOL}

/*STEP 2: Calculate the 3 month average of the 1 month sharpe ratio*/

set{averagesharpe, cma(sharpe,63)}

add column averagesharpe

]



Note that this does not use the annualized Sharpe - for such a short time you can use either with the same ranking result (to annualize this for the purist, multiply by the square root of 12, or 3.46).

hmsb4494
81 posts
msg #120257
Ignore hmsb4494
5/30/2014 8:25:41 AM

Thanks Kevin---this is exactly what I was looking for.


StockFetcher Forums · Filter Exchange · help<< >>Post Follow-up

*** Disclaimer *** StockFetcher.com does not endorse or suggest any of the securities which are returned in any of the searches or filters. They are provided purely for informational and research purposes. StockFetcher.com does not recommend particular securities. StockFetcher.com, Vestyl Software, L.L.C. and involved content providers shall not be liable for any errors or delays in the content, or for any actions taken based on the content.


Copyright 2022 - Vestyl Software L.L.C.Terms of Service | License | Questions or comments? Contact Us
EOD Data sources: DDFPlus & CSI Data Quotes delayed during active market hours. Delay times are at least 15 mins for NASDAQ, 20 mins for NYSE and Amex. Delayed intraday data provided by DDFPlus


This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.