Although the compounding annual return is 2421.010% for the January to April of 2016 period, it should be noted that the algorithm is overfit for that time period. I optimized the algorithm using that time period. Backtesting run through 2014 and 2015 shows a much more modest compounding annual return of 69.422% for that time period. Conditions do change due to changing trading patterns from other algorithms and traders, which is an argument in favor of this algorithm.
Use entirely at your own risk!
The premise of the algorithm is simple, look for stocks with a high downward momentum and buy them on the bounce, when the most recent minute is higher than the minute previous to the most recent. Sell as soon as the stock turns downward again, when the most recent minute is lower than the minute previous to the most recent.
Custom algorithm development : warrencharding@yahoo.com.
Levitikon
Warren Harding
Warren Harding
Stephen Oehler
Warren Harding
Eric Summers
Benton Pena
Warren Harding
Guanting Liu
Very interesting algorithm! I am new to QuantConnect and algorithmic trading. Hope to learn from all of you guys. :)
Mohammed Q
Warren Harding
4.0.8. is below. It shows a compounding annual return of 9762.145%, but again it is overfit for the time period. It does make the top 1% of the community which isn't bad for an algorithm that addresses slippage and unrealistically large purchases.
Eric Summers
Warren Harding
@Eric, I didn't do anything special to get the data bar, I just selected the backtest with the combo box. Maybe QuantConnect just added that functionality recently.
Jared Broad
@Eric its a feature called RuntimeStatistics :) By default we add a few key statistics, and you can add your own with:
SetRuntimeStatistic("Name", value);
https://www.quantconnect.com/docs#Runtime-Statistics
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.
Jose Sobrinho
Jose Sobrinho
Never mind. Your posting was on the second page. Apologies.
Jose Sobrinho
@jared when trying to run this code loive using paper trade for verification, it mentions that code can run only every 15 minutes due to a memory issue. If that's the case, this code would fail as it assuming and checking for the data of the last 1 minute bar, right?
I have printed the entire documentation and I will be reading.
Thanks,
Jose Sobrinho
I am trying to run live (paper trade) this code for first time but I cant see why the error. It seems everytime is in a different location as per the log... In short, it runs the backtest but fails on live mode.
Jose Sobrinho
Jose Sobrinho
Also, I am using the previous version, the simple one, just to make it simplistic, since I am not able yet to find the issue when running live. It seems everytime is in a different spot. Did you ever put this to run live via the paper trading?
thank you guys!! awesome tool!!
Warren Harding
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!