Thanks for the references and I think these are data series, am I wrong?
Heres the code.
protectedoverridevoid Initialize()
{
Add(new Plot(Color.Red, PlotStyle.Line, "Line1"));
Add(new Plot(Color.Red, PlotStyle.Line, "Line2"));
}
protectedoverridevoid OnBarUpdate()
{
if (Line1Value != 0) Line1.Set(Line1Value);
if (Line2Value != 0) Line2.Set(Line2Value);
DrawRegion("First", CurrentBar, 0, Line1, Line2, Color.Black, Color.Khaki, 2);
}
#region Properties
[Browsable(false)]
[XmlIgnore()]
public DataSeries Line1
{
get { return Values[0]; }
}
//repeated for Line2
}
[Description("Line 1 value")]
[Category("Parameters")]
publicdouble Line1Value
{
get { return line1Value; }
set { line1Value = value; }
}
Comment