Hello,
I am a fairly new QuantConnect user and have been playing around with backtesting some extended hours data. I am experiencing some weird behavior and I was wondering what I am doing wrong. I have attached my project. The strange thing is that during the backtest, the algorithm buys three different times on the evening of 2015/07/21 for a total of 30 shares. The next morning the algorithm calls Liquidate but apparently only 20 shares are sold. Near the end of the backtest (on 2015/08/04), the last 10 shares are sold. Could someone explain why this is happening?
Another problem. If I change the symbol to "HAL" instead of "AAPL", and then run the backtest, it claims no trade bars (0 data points) come through to the algorithm. However, if I keep the symbol as "HAL" and use the start date of "SetStartDate(2015, 7, 14);" then data does come through to the algorithm. However, as far as I can tell there is no activity in the extended hours data for "HAL" (i.e., the prices remains constant) which I don't think is correct (comparing to other data providers).
Any suggestions?
Thanks for reading,
Carl
Michael Handschuh
Carl Erikson
Carl Erikson
Carl Erikson
Jared Broad
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.
Michael Handschuh
Carl Erikson
Carl Erikson
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!