DXFinancialSeriesData Protocol

The protocol of a DXStockSeries or DXCandleStickSeries series's data with date-time arguments and Open-High-Low-Close values.

Declaration

@protocol DXFinancialSeriesData <DXSeriesData, NSObject>

Note that this protocol should be used only for DXStockSeries and DXCandleStickSeries. If this series is used with other series, zero value replaces all data point values.

Implements

DXCharts.NSObject

Properties

DXFinancialSeriesData.delegate Property

Declaration

@property (nonatomic, weak) id<DXSeriesDataDelegate> delegate

Property Value

Type Description
id<DXSeriesDataDelegate>

Instance Methods

DXFinancialSeriesData.getArgumentByIndex: Instance Method

Returns the argument of a data point at the specified index.

Declaration

- (NSDate *)getArgumentByIndex:(int)index

Parameters

Type Name Description
int index

The index of data point whose label should be returned.

Returns

Type Description
NSDate *

The argument of a data point at the specified index.

DXFinancialSeriesData.getCloseValueByIndex: Instance Method

Returns the Close value of a data point at the specified index.

Declaration

- (double)getCloseValueByIndex:(int)index

Parameters

Type Name Description
int index

The index of a data point whose value should be returned.

Returns

Type Description
double

The Close value of a data point at the specified index.

DXFinancialSeriesData.getDataCount Instance Method

Declaration

- (int)getDataCount

Returns

Type Description
int

DXFinancialSeriesData.getHighValueByIndex: Instance Method

Returns the High value of a data point at the specified index.

Declaration

- (double)getHighValueByIndex:(int)index

Parameters

Type Name Description
int index

The index of a data point whose value should be returned.

Returns

Type Description
double

The High value of a data point at the specified index.

DXFinancialSeriesData.getLowValueByIndex: Instance Method

Returns the Low value of a data point at the specified index.

Declaration

- (double)getLowValueByIndex:(int)index

Parameters

Type Name Description
int index

The index of a data point whose value should be returned.

Returns

Type Description
double

The Low value of a data point at the specified index.

DXFinancialSeriesData.getOpenValueByIndex: Instance Method

Returns the Open value of a data point at the specified index.

Declaration

- (double)getOpenValueByIndex:(int)index

Parameters

Type Name Description
int index

The index of a data point whose value should be returned.

Returns

Type Description
double

The Open value of a data point at the specified index.