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>
Remarks
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.
Properties
delegate Property
Declaration
@property (nonatomic, weak) id<DXSeriesDataDelegate> delegate
Property Value
Type |
---|
id<DXSeriesDataDelegate> |
Instance Methods
getArgumentByIndex: Instance Method
Returns the argument of a data point at the specified index.
Declaration
- (NSDate *)getArgumentByIndex:(int)index
Parameters
Name | Type | Description |
---|---|---|
index | int | The index of data point whose label should be returned. |
Returns
Type | Description |
---|---|
NSDate * | The argument of a data point at the specified index. |
getCloseValueByIndex: Instance Method
Returns the Close value of a data point at the specified index.
Declaration
- (double)getCloseValueByIndex:(int)index
Parameters
Name | Type | Description |
---|---|---|
index | int | 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. |
getDataCount Instance Method
Declaration
- (int)getDataCount
Returns
Type |
---|
int |
getHighValueByIndex: Instance Method
Returns the High value of a data point at the specified index.
Declaration
- (double)getHighValueByIndex:(int)index
Parameters
Name | Type | Description |
---|---|---|
index | int | 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. |
getLowValueByIndex: Instance Method
Returns the Low value of a data point at the specified index.
Declaration
- (double)getLowValueByIndex:(int)index
Parameters
Name | Type | Description |
---|---|---|
index | int | 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. |
getOpenValueByIndex: Instance Method
Returns the Open value of a data point at the specified index.
Declaration
- (double)getOpenValueByIndex:(int)index
Parameters
Name | Type | Description |
---|---|---|
index | int | 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. |