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.

Author