I am writting an indicator with a input parameter called "indicatorType" and defined like an Enum:
#region Variables
<...>
private ZeIndicatorType indicatorType = ZeIndicatorType.RSI;
public enum ZeIndicatorType
{
RSI,
RSX,
StochasticD,
StochasticK,
ROC,
Price,
}
<...>
#endregion
parameter:
Add this declaration for the mirror variable in Variables region:
#region Variables
<...>
private int intIndicatorType = (int)ZeIndicatorType.RSI;
<...>
#endregion
#region Properties
<...>
[Description("Tipo de indicador")]
[Category("00. Parameters Plus")]
[Gui.Design.DisplayName("02. IndicatorType")]
public ZeIndicatorType IndicatorType
{
get { return indicatorType; }
set {
indicatorType = value;
intIndicatorType = (int)value;
}
}
[Description(" INT Tipo de indicador")]
[Category("Parameters")]
[Gui.Design.DisplayName("02. IntIndicatorType")]
public int IntIndicatorType
{
get { return intIndicatorType; }
set {
intIndicatorType = value;
indicatorType = (ZeIndicatorType)value;
}
}
<...>
#endregion
I don't know why. Could you help me, please ?
Thanks very much.

Comment