I've been learning JavaScript and in turn C# for some type, to aid in my indicator/strategy development in NinjaTrader and I think I've made strides, where my only limitations are now figuring out what I actually want to be done, and not how to do it.
I'm saying that because it's not an issue with my code, as far as I know. In fact, nothing changed from October 11th to October 12th, outside of restarting my computer, and when I opened up NinjaTrader again and opened up Editor looking to add some code, I'm getting an error on an indicator that is a BUILT IN, and I made no modifications. Any idea why this is happening?
NinaTrader\WoodiesCCI.cs - 'Indicator':member names cannot be the same as their enclosing type - CS0542 - Line 124 & Line 129 - Column20
"
#region NinjaScript generated code. Neither change nor remove.
namespace NinjaTrader.NinjaScript.Indicators
{
public partial class Indicator : NinjaTrader.Gui.NinjaScript.IndicatorRenderBase
{
private Indicator[] cacheIndicator;
public Indicator Indicator()
{
return Indicator(Input);
}
public Indicator Indicator(ISeries<double> input)
{
if (cacheIndicator != null)
for (int idx = 0; idx < cacheIndicator.Length; idx++)
if (cacheIndicator[idx] != null && cacheIndicator[idx].EqualsInput(input))
return cacheIndicator[idx];
return CacheIndicator<Indicator>(new Indicator(), input, ref cacheIndicator);
}
}
}
"
Comment