I am clearly doing something stupid and even though it is a simple thing, for the world I cannot see where the error is. Any insight would be greatly appreciated. Thank you.
In my strategy I define a variable for my custom indicator:
private NinjaTrader.NinjaScript.Indicators.MyCustomIndicator myCustomIndicator;
myCustomIndicator = NinjaTrader.NinjaScript.Indicators.MyCustomIndicator();
So I change this line to
myCustomIndicator = MyCustomIndicator();
AddChartIndicator(myCustomIndicator);
myCustomIndicator = MyCustomIndicator();
Comment