I would like to put some enums and structs that are used by a strategy and a few indicators in a separate namespace. How do I code this namespace so that that enum varaibles and struct objects can be exposed and passed from the indicator to the strategy? I understand that that enums should be defined outside the
namespace NinjaTrader.
namespace NinjaTrader.NinjaScript.Indicators
namespace myNamespace { public enum MyEnum { Alt1, Alt2, } public struct MyStruct { public string name; public int count; public MyStruct(string name, int count) { this.name = myName; this.count = myCount; } } }
Comment