Back

Backtesting Help - Data speed

Hi,

I'm new to QuantConnect and I have run into an issue when trying to test my day trading algorithm. In my algorithm I have requested the tick data for a single stock for 1 day. When I run a backtest, it completes in just over 2 seconds without firing any of my triggers to create orders. It seems like the data is being blasted through and my algorithm does not get a chance to react. I have tried adding more time to the test (an extra few days) and I can see my algorithm reacting in the log. I wondered if anyone else had come across a similar issue and I would be really greatful for any suggestions.

Update Backtest








For community assistance please attach an algorithm so people can debug it

or replicate your request.



Bug reports should be sent to support@quantconnect.com
2

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.


You may also benefit from the example library. An issue like this is often programming/logic-not-being-accessed-as-expected related(which makes the share backtest feature so great, as Jarad mentions above).

https://github.com/QuantConnect/Lean/tree/master/Algorithm.CSharp
1

Thanks guys, I really appreciate the quick responses! I'll take a good look around the examples library to see where I have gone wrong and if i'm still stuck i'll attach the backtest. It's probbaly because I am a Java developer by trade and I have an error somewhere in my C# code :-)

0

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