ICompressFunction
Hierarchy Properties

Type Library
TeeChartx

Description
The ICompressFunction calculates the highest and lowest value from a source series during a datetime period.

It can be used for example to "compress" Candle stock data weekly, monthly, etc.

It can also be used with non-candle series (ie: with a normal line series).

var Compression : ICompressFunction;

Example [Visual Basic]:

Private Sub Form_Load()

' Example: How to create a Compression function

TChart1.Series(1).DataSource = TChart1.Series(0)

TChart1.Series(1).SetFunction (tfCompress)

' Sample Candle values

TChart1.Series(0).FillSampleValues 500

End Sub