Trendline

Created with Raphaël 2.0.1Stock HistoryMSFTTrendlineDec 1Dec 8Dec 15Dec 22Dec 29Jan 5Jan 12Jan 19Jan 264567891011121314151617181920212223Stock Price

This sample demostrates how to draw a trendline on C1CandlestickChart.

You can customize the trendline by setting following properties:

  • FitType - sepcifies the type of the trendline.
  • SampleCount - specifies the sample count for function calculation. It works only if the FitType is polynom, power, exponent, logarithmic and fourier.
  • Order - defines the number of terms in polynom equation. It works only if the FitType is polynom, power, exponent, logarithmic and fourier.