So I have an indicator that uses an Enum. In order to allow this Indicator to use an enough I have defined it in the same namespace as the Indicator. Example,
The Indicator is in the Namespace NinjaTrader.Ninjascript.Indicators.Test
I have defined the Enum in the same file just above the class in the same namespace as " public enum TypeEnum{enum1, enum2};"
Here is Full example below (Using Test names instead of real names):
namespace NinjaTrader.NinjaScript.Indicators.Test
{
public enum TypeEnum {enum1, enum2};
public class TestIndicator: Indicator
{
When I export to Protected Compilied Assembly and try and import on another machine it give me the error "Error importing Compiled Assembly, *Blah Blah*, The Type or Namespace "TypeEnum" could not be found"
I am thinking this is a build order issue but haven't worked a ton with DLLs and am not sure how to fix it. Hopefully you guys can help, Let me know.
Also Ideally my goal was to define all of the indicator enums in one seperate file so that if I want to use this enum on another indicator I don't have to send this specific one as well, I can just send the file with all the enums. Got that to work in Uncompilied assembly but not compilied. Let me know if you can help or where I can go for help.
Thank you so much in advance.
Also Let me know if I need to recreate a test file to send to you guys
Comment