Trend lines - 2 question
Posted: Wed Mar 04, 2009 10:37 am
Hello,
I have uploaded 2 images (upload page) to make things clear - ShimonSoferTrendQ1.png, ShimonSoferTrendQ2.png .
My questions
1. In the first image (not all points are displayed) I see the the slope makes sense but the height of the line has certain offset... I also noticed that this y-offset is changing significantly when new points are inserted to the series...
The code I am using is -
MA := TTrendFunction.Create(Self);
MA.Period := 0;
With Self do // Self is the Tee Chart itself...
begin
tmpHighLine:=TLineSeries.Create(self);
tmpHighLine.XValues.DateTime:=True;
tmpHighLine.Color := clRed;
tmpHighLine.VertAxis := aRightAxis;
AddSeries(tmpHighLine);
//Define the Function Type for the new Series
tmpHighLine.SetFunction(MA);
tmpHighLine.DataSource := FLineSeries
end;
2. In the second image you can see that I am using a Period which is different from 0 (actually 20). Again you can see the y-offset of the line from the points but another issue bother me : The many trend lines are connected to each other... I would like the lines to be separated...
Thanks,
Shimon
I have uploaded 2 images (upload page) to make things clear - ShimonSoferTrendQ1.png, ShimonSoferTrendQ2.png .
My questions
1. In the first image (not all points are displayed) I see the the slope makes sense but the height of the line has certain offset... I also noticed that this y-offset is changing significantly when new points are inserted to the series...
The code I am using is -
MA := TTrendFunction.Create(Self);
MA.Period := 0;
With Self do // Self is the Tee Chart itself...
begin
tmpHighLine:=TLineSeries.Create(self);
tmpHighLine.XValues.DateTime:=True;
tmpHighLine.Color := clRed;
tmpHighLine.VertAxis := aRightAxis;
AddSeries(tmpHighLine);
//Define the Function Type for the new Series
tmpHighLine.SetFunction(MA);
tmpHighLine.DataSource := FLineSeries
end;
2. In the second image you can see that I am using a Period which is different from 0 (actually 20). Again you can see the y-offset of the line from the points but another issue bother me : The many trend lines are connected to each other... I would like the lines to be separated...
Thanks,
Shimon