I am trying to define the color of the line of my indicator as a variable of input of my Indicator, but I am not being able to do it.
I am doing the following:
#region Variables
private Color color1 = Color.DarkRed
...
#endregion
protected override void Initialize()
{
Add(new Plot(new Pen(Color.FromKnownColor(KnownColor.Color1),2), PlotStyle.Line, "Linha1"));
.....
}
#region Properties
...
// -------------------------------------------------------------
[Description("")][GridCategory("Parameters")][Gui.Design.DisplayName("\t\t\t01 Cor")] public Color Cor1{get{return cor1;}set{cor1=value;}}
....
#endregion
What am I doing wrong?
Thank You
Comment