Hi, I'm new to Quantconnect.
Using the Boot camp in the Buy and Hold -> Set Data Normalization Mode excercize even if I cut and past the solution the exericise fails. Any idea why?
The code is very simple:
namespace QuantConnect
{
public partial class BootCampTask : QCAlgorithm
{
public override void Initialize()
{
var spy = AddEquity("SPY", Resolution.Daily);
spy.SetDataNormalizationMode(DataNormalizationMode.Raw);
var iwm = AddEquity("IWM", Resolution.Daily);
iwm.SetLeverage(1);
}
public override void OnData(Slice data)
{
//
}
}
}
And the output log looks fine:
1997-12-31 19:00:00 Launching analysis for 97879119d226eb5405053fd44c2d14e6 with LEAN Engine v2.4.0.0.5236
2019-03-06 00:00:00 BCT~: Security:SPY R:4 L:2 FF:True Type:1 DNM:0 EMH:False M:usa BM:QuantConnect.Brokerages.DefaultBrokerageModel
2019-03-06 00:00:00 BCT~: Security:IWM R:4 L:1 FF:True Type:1 DNM:1 EMH:False M:usa BM:QuantConnect.Brokerages.DefaultBrokerageModel
2019-03-06 00:00:00 BCT~: Start: 19980101 EndDate: 20190305
2019-03-06 00:00:00 Algorithm Id:(97879119d226eb5405053fd44c2d14e6) completed in 1.53 seconds at 7k data points per second. Processing total of 10,210 data points.
But I get the error message: Exercise failed! Please try again.
Thanks.
Halldor Andersen
Hi Salvatore.
Thank you for bringing this to our attention. We identified and fixed a minor bug in this exercise. You can now try again. Good luck!
Salvo
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!