This is with beta 3.
Here is the code that Ninja has generated at the end of my script:
#region NinjaScript generated code. Neither change nor remove. namespace NinjaTrader.NinjaScript.Indicators { public partial class Indicator : NinjaTrader.Gui.NinjaScript.IndicatorRenderBase { private JT_v5_DepthSales[] cacheJT_v5_DepthSales; public JT_v5_DepthSales JT_v5_DepthSales() { return JT_v5_DepthSales(Input); } public JT_v5_DepthSales JT_v5_DepthSales(ISeries<double> input) { if (cacheJT_v5_DepthSales != null) for (int idx = 0; idx < cacheJT_v5_DepthSales.Length; idx++) if (cacheJT_v5_DepthSales[idx] != null && cacheJT_v5_DepthSales[idx].EqualsInput(input)) return cacheJT_v5_DepthSales[idx]; return CacheIndicator<JT_v5_DepthSales>(new JT_v5_DepthSales(), input, ref cacheJT_v5_DepthSales); } } } namespace NinjaTrader.NinjaScript.MarketAnalyzerColumns { public partial class MarketAnalyzerColumn : MarketAnalyzerColumnBase { public Indicators.JT_v5_DepthSales JT_v5_DepthSales() { return indicator.JT_v5_DepthSales(Input); } public Indicators.JT_v5_DepthSales JT_v5_DepthSales(ISeries<double> input ) { return indicator.JT_v5_DepthSales(input); } } } namespace NinjaTrader.NinjaScript.Strategies { public partial class Strategy : NinjaTrader.Gui.NinjaScript.StrategyRenderBase { public Indicators.JT_v5_DepthSales JT_v5_DepthSales() { return indicator.JT_v5_DepthSales(Input); } public Indicators.JT_v5_DepthSales JT_v5_DepthSales(ISeries<double> input ) { return indicator.JT_v5_DepthSales(input); } } } #endregion
The type 'NinjaTrader.NinjaScript.Indicators.Indicator' already contains a definition for 'cacheJT_v5_DepthSales'
Type 'NinjaTrader.NinjaScript.Indicators.Indicator' already defines a member called 'JT_v5_DepthSales' with the same parameter types
Type 'NinjaTrader.NinjaScript.Indicators.Indicator' already defines a member called 'JT_v5_DepthSales' with the same parameter types
Type 'NinjaTrader.NinjaScript.MarketAnalyzerColumns.Mar ketAnalyzerColumn' already defines a member called 'JT_v5_DepthSales' with the same parameter types
Type 'NinjaTrader.NinjaScript.MarketAnalyzerColumns.Mar ketAnalyzerColumn' already defines a member called 'JT_v5_DepthSales' with the same parameter types
NinjaScript File Error Code Line Column
Type 'NinjaTrader.NinjaScript.Strategies.Strategy' already defines a member called 'JT_v5_DepthSales' with the same parameter types
NinjaScript File Error Code Line Column
Type 'NinjaTrader.NinjaScript.Strategies.Strategy' already defines a member called 'JT_v5_DepthSales' with the same parameter types
All errors are referencing the generated lines of code.
These errors do not appear when I open up Ninja8 (which I presume still does a compile on open).
I can also re-open Ninja after a compile and export the indicators. I just cannot compile them from the NinjaScript editor.
Cheers
Pete
Comment