TCompressFunction
 
 
 

All Units  All Classes  Properties, Methods and Events  

TCompressFunction
Hierarchy     Properties     Methods     Events     

Unit
CandleCh

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);




Send us Help Feedback. Copyright 1995-2013 © by Steema Software. All Rights Reserved.