iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x

ISCIOhlcDataSeries

@protocol ISCIOhlcDataSeries <ISCIOhlcDataSeriesValues, ISCIXDataSeries>

Defines the interface to an OHLC DataSeries, a series containing Open, High, Low, Close data-points.

  • Inserts X, Open, High, Low and Close value at specified index.

    Declaration

    Objective-C

    - (void)insertX:(nonnull id<ISCIComparable>)x
               open:(nonnull id<ISCIComparable>)open
               high:(nonnull id<ISCIComparable>)high
                low:(nonnull id<ISCIComparable>)low
              close:(nonnull id<ISCIComparable>)close
                 at:(NSInteger)index;

    Parameters

    x

    The X value.

    open

    The Open value.

    high

    The High value.

    low

    The Low value.

    close

    The close value.

    index

    The index to insert point at.

  • Inserts X, Open, High, Low and Close values at specified index.

    Declaration

    Objective-C

    - (void)insertArrayX:(nonnull NSArray<id<ISCIComparable>> *)xArray
                    open:(nonnull NSArray<id<ISCIComparable>> *)openArray
                    high:(nonnull NSArray<id<ISCIComparable>> *)highArray
                     low:(nonnull NSArray<id<ISCIComparable>> *)lowArray
                   close:(nonnull NSArray<id<ISCIComparable>> *)closeArray
                      at:(NSInteger)index;

    Parameters

    xArray

    The X values.

    openArray

    The Open values.

    highArray

    The High values.

    lowArray

    The Low values.

    closeArray

    The close values.

    index

    The index to insert points at.

  • Inserts X, Open, High, Low and Close values at specified index.

    Declaration

    Objective-C

    - (void)insertValuesX:(nonnull id<ISCIValues>)xValues
                     open:(nonnull id<ISCIValues>)openValues
                     high:(nonnull id<ISCIValues>)highValues
                      low:(nonnull id<ISCIValues>)lowValues
                    close:(nonnull id<ISCIValues>)closeValues
                       at:(NSInteger)index;

    Swift

    func insert(x xValues: ISCIValues, open openValues: ISCIValues, high highValues: ISCIValues, low lowValues: ISCIValues, close closeValues: ISCIValues, at index: Int)

    Parameters

    xValues

    The X values.

    openValues

    The Open values.

    highValues

    The High values.

    lowValues

    The Low values.

    closeValues

    The close values.

    index

    The index to insert points at.

  • Updates Open, High, Low and Close values at specified index.

    Declaration

    Objective-C

    - (void)updateOpen:(nonnull id<ISCIComparable>)open
                  high:(nonnull id<ISCIComparable>)high
                   low:(nonnull id<ISCIComparable>)low
                 close:(nonnull id<ISCIComparable>)close
                    at:(NSInteger)index;

    Parameters

    open

    The Open value.

    high

    The High value.

    low

    The Low value.

    close

    The close value.

    index

    The index of point to update.

  • Updates Open, High, Low and Close values at specified index.

    Declaration

    Objective-C

    - (void)updateArrayOpen:(nonnull NSArray<id<ISCIComparable>> *)openArray
                       high:(nonnull NSArray<id<ISCIComparable>> *)highArray
                        low:(nonnull NSArray<id<ISCIComparable>> *)lowArray
                      close:(nonnull NSArray<id<ISCIComparable>> *)closeArray
                         at:(NSInteger)index;

    Parameters

    openArray

    The Open values.

    highArray

    The High values.

    lowArray

    The Low values.

    closeArray

    The close values.

    index

    The index of point to start update from.

  • Updates Open, High, Low and Close values at specified index.

    Declaration

    Objective-C

    - (void)updateValuesOpen:(nonnull id<ISCIValues>)openValues
                        high:(nonnull id<ISCIValues>)highValues
                         low:(nonnull id<ISCIValues>)lowValues
                       close:(nonnull id<ISCIValues>)closeValues
                          at:(NSInteger)index;

    Swift

    func update(open openValues: ISCIValues, high highValues: ISCIValues, low lowValues: ISCIValues, close closeValues: ISCIValues, at index: Int)

    Parameters

    openValues

    The Open values.

    highValues

    The High values.

    lowValues

    The Low values.

    closeValues

    The close values.

    index

    The index of point to start update from.