I'm using a DashStyleHelper type variable as part of inputs in a custom indicator. This input allows one to change line style. For this following is performed:
a. in OnStateChange(), within if (State == State.SetDefaults):
ils_ExtendLineStyle = DashStyleHelper.Solid;
b. in #region Properties:
[NinjaScriptProperty]
[Display(Name="Line Style", Description="Style of extended horizontal line", Order=3, GroupName="Extended Line Properties")]
public DashStyleHelper ils_ExtendLineStyle
{ get; set; }
c. Lastly I include DashStyleHelper ils_ExtendLineStyle as part of parameters in functions inside #region NinjaScript generated code, like:
NT8_Indi NT8Indi(bool onAlert, DashStyleHelper ils_ExtendLineStyle, int ii_PriceTextSize)
etc.
The code executes and operates without errors.
However, when I export the NinjaScript file as compiled assembly, it can't be imported back to the system. Import displays following message:
"Import Failed. The Ninjascript Archive file may contain duplicate method names that already exist on your PC or there is a required file missing on either your PC or in the input archive."
Through certain hit and trials, I observed that removing DashStyleHelper type input or changing the variable's datatype allows successful importing of .zip file.
May someone point out how this issue be resolved while using DashStyleHelper type input.
Thanks
Vivek
Comment