This is a trend following algorithm that attempts to determine a trend and then buy and hold with appropriate risk measures
Universe Filter:
This algorithm filters the top 1000 most liquid stocks and takes those with prices above 10$ and a market cap above 2 billion to weed out less ideal stocks
Alpha:
This algorithm generates insights based on a series of selection criteria:
- The stocks 50 day ema must have been trading above its 200 for a set amount of time
- The stock must have been mostly trading between the middle and high bollinger bands over a configurable period
- It must have a macd that has been above 0 for a certain period time
- The trend of its rsi and price must be in agreement
- The derivative of the ema must be above a certain threshold
- The Average Direction Index of the stock must be above a threshold and on an uptrend
- The On Balance Volume must be trending above a threshold
- If all the above apply and the stock is above its middle bollinger an insight is generated
Risk:
Risk is managed by the following:
- An atr trailing stop loss
- Selling out on weak (or strong for short positions) rsi
Portfolio Construction:
The RiskParityPortfolioConstructionModel was used as it yielded the best results, it is also modified to use all available leverage
Execution Model:
The VolumeWeightedAveragePriceExecutionModel was used as it yielded the best results
Quant League Competitions
Competition entry updated by Charles Hacker
Quant League Competitions
Competition entry updated by Charles Hacker
Quant League Competitions
Competition entry updated by Charles Hacker
Quant League Competitions
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!