Introduction
The low volatility effect in Equities refers to that stocks which previously exhibited lower volatility will earn higher risk-adjusted returns than those with higher volatility. This algorithm extends the study of the low volatility effect to U.S stocks with higher market capital.
Method
Universe Selection
To construct the investment universe which consists of US large cap stocks, first in coarse universe selection, we exclude stocks without fundamental data and the price is below 5. A universe of 100 stocks is selected based on the dollar volume. In fine universe selection, we pick 50 stocks from the coarse universe with the highest market cap.
Calculate the Volatility
We create SymbolData
class and use a RollingWindow to store the close price daily return data (via RateOfChange indicator) for symbols returned by fine universe.
The lookback period is 252 trading days. First, we request historical data to initialize the RollingWindow for the added symbols and update the ROC indicator with the closing price every day in OnData(). The indicator update handler then update the RollingWindow with the new indicator data point (daily return).
The standard deviation is the typical statistic used to measure volatility. It is defined as the square root of the average variance of the data from its mean. We use the closing price return series in RollingWindow to calculate the volatility.
Trading stocks
The trading logic is we go long 5 stocks with the lowest volatility and liquidate stocks in the portfolio which does not in the lowest volatility list. The portfolio is rebalanced at the first trading day each month by a Scheduled Event.
Derek Melchin
See the attached backtest for an updated version of the algorithm with the following changes:
Â
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.
Jing Wu
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.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!