Back

Adaptive Asset Allocation: ReSolve Asset Management

I have attempted to build the Adaptive Asset Allocation (AAA) algorithm outlined in ReSolve Asset Management's white paper. You can add any additional asset classes in the self.additional list that are't included in the original.

Please provide any feed back on code improvement. 

I hope it's useful!

Update Backtest








Nice work! Thanks for sharing it. The code is very neat and easy to read. One suggestion I might have is about the history request. self.History() affects the running speed of the algorithm. 

hist1 = self.History(self.stocks, 200, Resolution.Daily).unstack(level=0).close
hist2 = self.History(symbols, 200, Resolution.Daily).unstack(level=0).close.pct_change()[1:]

These two history methods get the same set of historical data. This repeat request slows down the algorithm. You can only select the required columns in the first history to construct a new dataframe.

For example, the above code is equivalent to the following 

hist1 = self.History(self.stocks, 200, Resolution.Daily).unstack(level=0).close
hist2 = hist[symbols].pct_change()[1:]

0


Thanks for the feedback

0

Update Backtest





0

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Loading...

This discussion is closed