TCandleSeries.AddCandle

TCandleSeries.AddCandle
TCandleSeries

function AddCandle(Const ADate: TDateTime; Const AOpen, AHigh, ALow, AClose: Double; Const ALabel: String; AColor: TColor): Integer;

Unit
CandleCh

Description
The AddCandle function appends a new Stock Market point to the Series.
This function returns the corresponding point index for the new added point.

Series1.AddCandle( EncodeDate( 2002, 10, 16), 100, 120, 80, 90 );

Note:
If you want to skip "weekends", pass an incremental integer number to Date parameter of AddCandle method:

var tmp : Integer;
tmp := Series1.AddCandle( Series1.Count, 100, 120, 80, 90 );
Series1.Label[ tmp ]:= DateToStr( EncodeDate( 2002, 10, 16 ));