Back

Why does this live algo still set a start and end date in it's initializer?

This live algo can be found here: 

https://github.com/Quantconnect/Lean/blob/master/Algorithm.CSharp/LiveFeaturesAlgorithm.cs

Something that seems quite counter intuitive to me is that this live algo sets SetStartDate and SetEndDate in it's initializer. Why would a live algo do this? Wouldn't a live algo only be concerned with upcoming future data points? 

How would this code be edited at the provided link to make it actually live and not backtest on the set dates? 

 

Thanks

Update Backtest








The dates are ignored. 

Having identical code in backtesting and live trading is probably a more important demonstration than removing for being counter intutative. 

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