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

SCIFibonacciRetracementAnnotation

@interface SCIFibonacciRetracementAnnotation : SCIMultiPointAnnotationBase

Defines a Fibonacci Retracement annotation, a technical analysis tool placed on the chart using two anchor points which marks the retracement levels between them.

Levels are drawn as horizontal lines with filled regions in between, each labelled with its ratio and the price it corresponds to.

Note

The level lines take their thickness and dash pattern from the inherited stroke, and their colour from regionColors.
  • Defines the Fibonacci ratios at which levels are drawn.

    Note

    Defaults to 0, 0.236, 0.382, 0.5, 0.618, 0.786, 1, 1.618, 2.618, 3.618, 4.236.

    Declaration

    Objective-C

    @property (nonatomic, copy) NSArray<NSNumber *> *_Nonnull levels;

    Swift

    var levels: [NSNumber] { get set }
  • Defines the colours used to fill the regions between levels.

    Note

    The supplied colours are treated as a ramp and interpolated to thresholds.count - 1 entries, so any number of colours may be provided.

    Declaration

    Objective-C

    @property (nonatomic, copy) NSArray<UIColor *> *_Nonnull regionColors;

    Swift

    var regionColors: [UIColor] { get set }
  • Defines the opacity applied to the filled regions, in the range 0.0 - 1.0.

    Declaration

    Objective-C

    @property (nonatomic) float fillOpacity;

    Swift

    var fillOpacity: Float { get set }
  • Defines the value indicating whether a connector line is drawn between the two base points.

    Declaration

    Objective-C

    @property (nonatomic) BOOL showConnectorLine;

    Swift

    var showConnectorLine: Bool { get set }
  • Defines the SCIPenStyle used to draw the connector line between the two base points.

    Note

    When nil, a dashed pen in the first region colour is used.

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) SCIPenStyle *connectorLineStroke;

    Swift

    var connectorLineStroke: SCIPenStyle? { get set }
  • Defines where the level labels are placed relative to their level line.

    Declaration

    Objective-C

    @property (nonatomic) SCIFibonacciLabelPlacement fibonacciLabelPlacement;

    Swift

    var fibonacciLabelPlacement: SCIFibonacciLabelPlacement { get set }
  • Defines how the level labels are coloured.

    Declaration

    Objective-C

    @property (nonatomic) SCIFibonacciLabelColorMode fibonacciLabelColorMode;

    Swift

    var fibonacciLabelColorMode: SCIFibonacciLabelColorMode { get set }
  • Defines the SCIFontStyle used by the level labels.

    Note

    Its text colour is only used when fibonacciLabelColorMode is SCIFibonacciLabelColorMode_SingleColor; otherwise each label matches its level line.

    Declaration

    Objective-C

    @property (nonatomic, strong) SCIFontStyle *_Nonnull labelStyle;

    Swift

    var labelStyle: SCIFontStyle { get set }