I built a simple strategy using the wizard but when I test the strategy, I get an error in the output saying
For information, I am using Version 8.0.5.2 64-bit on Windows 10
else if (State == State.Configure) { SetProfitTarget(@"L1", CalculationMode.Price, DonchianChannel1.Mean[1]); SetProfitTarget(@"S1", CalculationMode.Price, DonchianChannel1.Mean[1]); SetStopLoss(@"L1", CalculationMode.Price, (DonchianChannel1.Lower[1] - (ATR(14)[0])) , false); SetStopLoss(@"S1", CalculationMode.Price, (DonchianChannel1.Upper[1] + (ATR(14)[0])) , false); }
Additional information: Object reference not set to an instance of an object.
Thanks
Comment