Files to look at:
How to display a regression line for a series
This example demonstrates how a regression line can be displayed for a series of the Stock view type. Note that to access the collection of indicators, you should cast your series view to an appropriate type
To create a regression line, you should define a value level to which it corresponds.
For a step-by-step design time tutorial, refer to How to: Show a Regression Line for a Stock Chart.