You can see the issue if you add the following code to the AddOnFramework example
// add to: protected override void Restore(XElement element) // Restore the previously selected interval BarsPeriod barsPeriod = NinjaTrader.Data.BarsPeriod.FromXml(element); if (intervalSelector != null && barsPeriod != null) intervalSelector.Interval = barsPeriod; // add to: protected override void Save(XElement element) // Save the currently selected interval if (BarsPeriod != null) BarsPeriod.ToXml(element);
Also, would be nice if this was added properly to the example. Thanks.
Comment