
All Units All Classes Properties, Methods and Events |
TCompressGetDate
type TCompressGetDate = procedure(Sender:
TTeeFunction; Source: TChartSeries; ValueIndex: Integer; Var Date: TDateTime) of object;
Unit
CandleCh
Description
Event used at TCompressFunction OnGetDate event to allow custom supply of Date values.
This event is useful if your source Candle series to be compressed does not have Date values (ie: uses sequential values to skip weekends).
Note:
For this event to work, the function Period property must be zero, for the Compress property to define the grouping datetime period.
Example of converting candle labels as datetime values:
procedure TForm1.eeFunction1GetDate(Sender: TTeeFunction;
Source: TChartSeries; ValueIndex: Integer; var Date: TDateTime);
begin
Date:=StrToDate( (Source as TCandleSeries).Labels[ValueIndex] );
end;
Send us Help Feedback. Copyright 1995-2013 © by Steema Software. All Rights Reserved.