Contents  All Classes  Index A-Z  All Units


TCompressFunction
Hierarchy     Properties     Methods     Events     

Unit
TeeCompressOHLC

Description
The TCompressFunction 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 : TCompressFunction;

// Example: How to create a Compression function
Compression:=TCompressFunction.Create(Self);

// Set function to Candle Series2
Series2.DataSource:=Series1;
Series2.SetFunction(Compression);

// Sample Candle values
Series1.FillSampleValues(500);



Submit your feedback about this page.

Copyright 1995-2007 © by Steema Software. All Rights Reserved.