Any Strategies Applying Sharpe Ranking?
Author: swuzy
Creation Date: 5/30/2015 9:43 AM
profile picture


There is an interesting article today in Seeking Alpha on ETF Country Rotation With Treasury Hedge Using Sharpe Ranking.

This is also a popular topic / concept often discussed in local Silicon Valley AAII Computerized Investing / Mechanical Investing Group.

E.g., Sharpe Parity Tweaking Parts 1, 2, 3, 4 at:

Are there any WL strategies applying Sharpe ranking to filter or select stocks or ETFs on a rotational basis? Is it feasible or if not, are there any work arounds?

Belying my ignorance, is there anything like a Sharpe indicator for symbols that can be applied to a strategy code? If not, is it possible to create an indicator based on Sharpe ?
profile picture


The normal Sharpe ratio is calculated by Sharpe = rd/sd, with rd = mean daily return and sd = standard deviation of daily returns.

To modify the built-in RSI Rotation strategy to use Sharpe as per the article:

1. For mean daily return, you can take ROC.Series(Close, period) or rd
2. For standard deviation of daily returns, I guess you take StdDev.Series(rd, period, type)
3. Then you divide them i.e. rd / sd
4. Finally, follow the FAQ on changing the RSI Rotation system to a different rotation rule and you arrive with something like this on top of line 67:

Please log in to see this code.

This was the "rough" formula. The actual formula including volatility is up to you.
profile picture


Thank you.

Here is a note as to the rules of the Sharpe Parity Tweaking item from the sv AAII CI-MI presenter.!204989&authkey=!AGB3eXwU9IPxKsU&ithint=file%2cpdf

Also related is a Volatility equation for the rebalancing between cash (or treasuries) versus equities.!205020&authkey=!AHhDz99XdIzEEok&ithint=file%2cpdf

How might one code that Macquarie volatility weighting for cash or Treasuries vs equities into the rules of the Sharpe rotation strategy here?