Inherits from IGFinancialSeries : IGSeries : NSObject
Declared in Series.h

Overview

IGFinancialPriceSeries is used to plot stock prices and show the stock’s high, low, open and close prices over time. In addition, it can display trend lines for stock prices. IGFinancialPriceSeries is often used in combination with a number of other financial indicators to show price trends. IGFinancialPriceSeries uses IGCategoryXAxis or IGCategoryDateTimeXAxis and IGNumericYAxis. IGOHLCSeriesDataSourceHelper can be used as a data source for this series.

IGFinancialPriceSeries supports two rendering modes: CangleStick and OHLC. In candlestick mode each data point is plotted as a vertical column with vertical lines on both the top and bottom. The vertical line indicates the span between high and low values of an investment. The top of the vertical line indicates the highest price during a session and the bottom of the vertical line indicates the lowest price during a session.

The vertical columns indicate the span between the opening and closing values of an investment. The columns are filled using brush property when there is positive value and using negativeBrush property when there is negative value between the opening and closing values.

In OHLC mode each data point is plotted as a vertical line with horizontal perpendicular lines on both the left and right side. The vertical line indicates the span between high and low values of an investment. The top of the vertical line indicates the highest price during a session and the bottom of the vertical line indicates the lowest price during a session. The horizontal lines indicate the span between the opening and closing values of an investment. The horizontal line on the left-hand side of the vertical line indicates the opening value of a session. The horizontal line on the right-hand side of the vertical line indicates the closing value of a session.

Multiple series of the IGFinancialPriceSeries type that share the same X axis are rendered in clusters where each cluster represents a data point. The first series in the series collection of the IGChartView control renders as a column on the left of the cluster. Each successive series gets rendered to the right of the previous series. However, if series do not share the X axis, they are rendered in layers with each successive series rendered in front of the previous one.

Tasks

  •   displayType

    An enumeration value that determines the shapes of data points. IGFinancialPriceSeries can display data as a candle stick or OHLC lines.

    property
  •   trendLineType

    An enumeration property that determines which trend line to use.

    property
  •   actualTrendLineBrush

    Returns the resolved brush for the series trend line. (read-only)

    property
  •   trendLineBrush

    This property determines the brush of the series trend line.

    property
  •   trendLineDashArray

    An array of values used to create a dash pattern for the series trend line. This property uses an array of CGFloats to construct a repeating pattern of alternating dashes and spaces.

    property
  •   trendLineDashCap

    An enumeration value that determines the trend line’s dash cap. This propery specifies the shape used to draw line caps when the trend line uses a dashed pattern.

    property
  •   trendLinePeriod

    A value that determines the moving average period. This property only applies to the follwing trend lines: ExponentialAverage, ModifiedAverage, SimpleAverage, WeightedAverage.

    property
  •   trendLineThickness

    A value that determines the thickness (in pixels) of the trend line.

    property

Properties

actualTrendLineBrush

Returns the resolved brush for the series trend line. (read-only)

@property (nonatomic, readonly) IGBrush *actualTrendLineBrush

Declared In

Series.h

displayType

An enumeration value that determines the shapes of data points. IGFinancialPriceSeries can display data as a candle stick or OHLC lines.

@property (nonatomic) IGPriceDisplayType displayType

Declared In

Series.h

trendLineBrush

This property determines the brush of the series trend line.

@property (nonatomic, retain) IGBrush *trendLineBrush

Declared In

Series.h

trendLineDashArray

An array of values used to create a dash pattern for the series trend line. This property uses an array of CGFloats to construct a repeating pattern of alternating dashes and spaces.

@property (nonatomic, retain) NSArray *trendLineDashArray

Declared In

Series.h

trendLineDashCap

An enumeration value that determines the trend line’s dash cap. This propery specifies the shape used to draw line caps when the trend line uses a dashed pattern.

@property (nonatomic) CGLineCap trendLineDashCap

Declared In

Series.h

trendLinePeriod

A value that determines the moving average period. This property only applies to the follwing trend lines: ExponentialAverage, ModifiedAverage, SimpleAverage, WeightedAverage.

@property (nonatomic) NSInteger trendLinePeriod

Declared In

Series.h

trendLineThickness

A value that determines the thickness (in pixels) of the trend line.

@property (nonatomic) CGFloat trendLineThickness

Declared In

Series.h

trendLineType

An enumeration property that determines which trend line to use.

@property (nonatomic) IGTrendLineType trendLineType

Declared In

Series.h