Back

Backtesting on Yesterday's Data

I know I must be doing something stupid, but I feel like the data that is coming into the OnData(TradeBars) handler is not correct. For example, the stock Allergan (AGN) has ranged from approximately $340/share to $320/share between 2015-08-04 and today. In the code below, the backtest should at some point print "Below 325!" to the log, but it never does. What am I doing wrong?

Thanks,
Carl
Update Backtest








The data just isn't up to date with yesterday yet (its only processed up until Wednesday). So you can't see the $325 figure. I'd recommend looking at a longer period. Looking at just the last 72 hours will give you strange results.

Check out this project -- see how I plotted the AGN values to identify the cause of the issue.

Today I was working on making the updated data available by 6am the following morning. Hopefully this new updater system should be live by Monday.
1

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.


Okay, thank you very much for the clarification.

Carl
0

@Jared - I'm in a similar situation trying to validate backtesting outcomes with actual outcomes using INTC as a test case. I noticed this morning that when I ran the backtest starting 7/28, once it reaches 8/11 I get the same price figures all day long. I turned off fill-forward and lost all prices, so it appears that there is no data for INTC on 8/11. Can you confirm that this data is unavailable at the moment?
0

Correct Adam, this means there's no data yet for the requested period. The entire cloud data processing is roughly 36 hours behind live at the moment.
0

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.


Update Backtest





0

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...

This discussion is closed