LEAN is the open source
algorithmic trading engine powering QuantConnect. Founded in 2013 LEAN has been built by a
global community of 80+ engineers and powers more than a dozen hedge funds today.
Alpha League Competition: $1,000 Weekly Prize Pool
Qualifying Alpha Streams Reentered Weekly Learn
more
I am a complete newb when it comes to quant trading, but I have been noodling around for the last week and put together a very basic algo that seems to consistently produce positive backtest results. I understand that this likely would not work in live market conditions. I was hoping that you all could tell me why.
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.
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.
Bob Loblaw
223
,
Hi Matt,
I'm new as well, but I recently discovered that using daily resolution can lead to crazy results. Check out the paragraph in the middle of this post on resolution:
Your answer is in your backtest, your equity decreased by 90% in 6 months. You might be able to mitigate some of that with stop losses.
2
Derek Melchin
STAFF
,
Hi Matt,
In general, RSI does not have a cause-and-effect relationship to price. If a company has bad earnings or is sued by the SEC for insider trading, the share price falls. Furthermore, the algorithm lacks diversification. I recommend reviewing our documentation on universe selection to create algorithms which are diversified across a basket of securities instead of just trading BA. Additionally, when making investment decisions based off indicators, selecting hand-picked threshold values should be avoided as it can lead to overfitting. Instead, we can create an algorithm which longs the stocks in our universe with the lowest RSI values and shorts the ones with the highest.
For your convenience , I've attached an algorithm that demonstrates these improvements. I recommend reviewing our documenation on the Algorithm Framework for full understanding.
Best, Derek Melchin
1
Edited by Derek Melchin
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.
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...
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!