The chart line is incorrect.
protected override void OnStateChange()
{
if (State == State.SetDefaults)
{
AddPlot(new Stroke(Brushes.DimGray,2),PlotStyle.Line,"Fx");//Plot0
................................................
for(n=i0;n<=i0+p;n++)
{
sum=0;
for(kk=1;kk<=degree;kk++)
{
sum+=x[kk+1]*Math.Pow(n,kk);
}
[B]Fx[0] = (x[1]+sum);[/B]
}
..............................................
[Browsable(false)] // this line prevents the data series from being displayed in the indicator properties dialog, do not remove
[XmlIgnore()] // this line ensures that the indicator can be saved/recovered as part of a chart template, do not remove
public Series<double> Fx
{
get { return Values[0]; }
}

Comment