Once a week I’m going to post a backtest of my attempt to implement a trading strategy based off of a research paper, so that others can critique my code and I can learn at an expedited pace. 

 

BUY RULE

The system invests in the top X sectors. For Top 1, the system is 100% invested in the top ranked sector. ForTop 2, the system is 50% invested in each of the top two sectors. For Top 3, the system is 33% invested in eachof the top three sectors.

 

SELL RULE

Since the system is a simple ranking, the top X sectors are held and if a sector falls out of the top X sectors it issold at the monthly rebalance and replaced with the sector in the top X.

**note**

Whenever the s&p is below the 200 day sma I go 100% into bonds.

There are only 6 sectors to choose so I couldn’t imitate the paper exactly(missing biotech, Technology etc). 

 

I also did a monthly rebalance as oppose to an end of month rebalance(Every 25 days). Other than that the strategy is basically the same as the paper probably minus some inaccuracy in my coding and the fact that I’ve decided to sort my universe based off of dollar volume. 

 

Anyways I will be posting again a week from now. Cheers !