I have a master subfile inside the indicators list called j2. So the namespace is NinjaTrader.NinjaScript.Indicators.j2
The indicator name is thus after this as a public class. There are a series of proprietary indicators that I keep in this subfolder j2
I have two others that possess second namespaces that are specifically used for dropdown multiple choice public enums. I am unable to keep these in the j2 file as if placed there they will return compilation errors stating that the second namespace cannot be found. I thus have to keep them out of the j2 subfolder and instead have to keep them in the general indicators list.
Specific Example: The following indicator construct section is currently kept in the general indicators file and everything works just fine:
#region Using declarations
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Input;
using System.Windows.Media;
using System.Xml.Serialization;
using NinjaTrader.Cbi;
using NinjaTrader.Gui;
using NinjaTrader.Gui.Chart;
using NinjaTrader.Gui.SuperDom;
using NinjaTrader.Gui.Tools;
using NinjaTrader.Data;
using NinjaTrader.NinjaScript;
using NinjaTrader.Core.FloatingPoint;
using NinjaTrader.NinjaScript.Indicators;
using NinjaTrader.NinjaScript.DrawingTools;
using j2LevelsBaseLine;
#endregion
namespace j2BaseLine
{ public enum BaseLine { Option1, Option2, Option3 }
}
//This namespace holds Indicators in this folder and is required. Do not change it.
namespace NinjaTrader.NinjaScript.Indicators
{
public class j2Levels : Indicator
Now if I simply add ".j2" to the second namespace & place it in the j2 subfolder i.e. namespace NinjaTrader.NinjaScript.Indicators.j2
When compiling it will return an error stating that j2Levels cannot be found in the NinjaTrader.NinjaScript.Indicators.j2
First thought is that I have the enums namespace incorrectly placed or identified. Or is simply that if one is using two namespaces one cannot keep that indicator in a subfile of the indicators list?
Comment