I am trying to build a strategy with daily data, however, a run-time error showed "Sorry we do not have daily or hourly resolution yet. We recommend using minute data and building daily bars if required". Does this mean I have to use minute resolutions for all my tickers in my strategy in order to make it consistent? If so, how many minutes are included in a day? Is it regular trading hours only, or including pre-market, post-market hours or every minute in a day counts (24*60)?
Michael Handschuh
Ken Chiang
Michael Handschuh
Ken Chiang
Michael Handschuh
Kevin Jiang
2015-05-04 09:31:00 2015-05-04 09:31:00Z Close price: 210.70000000000000000000000000 2015-05-05 09:31:00 2015-05-05 09:31:00Z Close price: 211.33000000000000000000000000 2015-05-06 09:31:00 2015-05-06 09:31:00Z Close price: 208.91000000000000000000000000 2015-05-07 09:31:00 2015-05-07 09:31:00Z Close price: 208.91000000000000000000000000 2015-05-08 09:31:00 2015-05-08 09:31:00Z Close price: 208.91000000000000000000000000 2015-05-11 09:31:00 2015-05-11 09:31:00Z Close price: 208.91000000000000000000000000 2015-05-12 09:31:00 2015-05-12 09:31:00Z Close price: 208.91000000000000000000000000 2015-05-13 09:31:00 2015-05-13 09:31:00Z Close price: 208.91000000000000000000000000 2015-05-14 09:31:00 2015-05-14 09:31:00Z Close price: 208.91000000000000000000000000 2015-05-15 09:31:00 2015-05-15 09:31:00Z Close price: 208.91000000000000000000000000 2015-05-18 09:31:00 2015-05-18 09:31:00Z Close price: 208.91000000000000000000000000 2015-05-19 09:31:00 2015-05-19 09:31:00Z Close price: 208.91000000000000000000000000 2015-05-20 09:31:00 2015-05-20 09:31:00Z Close price: 208.91000000000000000000000000 2015-05-21 09:31:00 2015-05-21 09:31:00Z Close price: 208.91000000000000000000000000 2015-05-21 16:00:00 Algorithm Liquidated
Edit: not sure why I can't seem to attach my project, but here's a direct link instead https://www.quantconnect.com/terminal/results/05ca3d127a97063ac251fca203a82319Kevin Jiang
Michael Handschuh
AddSecurity(SecurityType.Equity, "SPY", Resolution.Second, fillDataForward: false);
This will tell the engine to not duplicate data when it's missing. It seems the first two data points are correct, here's the same algorithm attached but with fill forward off. You get this output:2015-05-04 09:31:00 2015-05-04 09:31:00Z Close price: 210.70000000000000000000000000 2015-05-05 09:31:00 2015-05-05 09:31:00Z Close price: 211.33000000000000000000000000
You'll also notice that the time stamps are for the morning of the next day. Currently, the consolidators will produce the daily bar when it sees the first bar for the next day.Kevin Jiang
Michael Handschuh
Kevin Jiang
Kevin Jiang
Michael Handschuh
AddSecurity(SecurityType.Equity, symbol, Resolution.Second);
Rish Bhatia
Michael Handschuh
Rish Bhatia
Michael Handschuh
Travis Fu
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!