Steps to reproduce:
- Run the new Indicator wizard; and just hit "Next" until the indicator is generated, with the default parameters.
- Compile.
- Delete the properties, plots, etc. so the indi now looks as below (and in the attached file).
- Compile.
NT will not update it's generated code to remove the deleted elements; and so will not compile the edited indi.
This is the code I stripped down once generating and compiling the default indi (the same as in the attached file):
using System; using System.ComponentModel; using System.Diagnostics; using System.Drawing; using System.Drawing.Drawing2D; using System.Xml.Serialization; using NinjaTrader.Cbi; using NinjaTrader.Data; using NinjaTrader.Gui.Chart; namespace NinjaTrader.Indicator { public class MyCustomIndicator : Indicator { protected override void Initialize() { } protected override void OnBarUpdate() { } } }
Comment