As such, this means I cannot reference the indicator from another indicator, while being able to set that property on the function call.
So my script...
In the class level, I declare and initialize a variable:
private [COLOR=#9b59b6]MaType [/COLOR]myMA = MaType.SMA;
In the properties section, notice I do not have a 'NinjaScriptProperty' tag there, so I cannot set this variable when caling from another indicator. I have set up the input as follows:
[Display(Name="MA in Calc", Order=4, GroupName = "1)Parameters" )]
public [COLOR=#9b59b6]MaType [/COLOR]MyMA
{
get { return myMA; }
set { myMA = value; }
}
#region Enums
public enum MaType
{
SMA,
EMA,
WMA,
TMA,
HMA,
ZLEMA
}
#endregion
Is there a way to add in the [ninjascriptproperty] tag I am unaware of?

Comment