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

SCIFibonacciRetracementCreationModifier

@interface SCIFibonacciRetracementCreationModifier
    : SCIMultiPointAnnotationPlacementModifier

Two-point gesture modifier that creates a SCIFibonacciRetracementAnnotation on a SciChart surface. Style properties set here are applied to each annotation as it is created.

SCIFibonacciRetracementCreationModifier *mod = [SCIFibonacciRetracementCreationModifier new]; mod.fillOpacity = 0.2; [surface.chartModifiers add:mod];

  • The SCIPenStyle used to draw the level lines. Supplies thickness and dash pattern; the colour of each level comes from regionColors.

    Declaration

    Objective-C

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

    Swift

    var stroke: SCIPenStyle? { get set }
  • The Fibonacci ratios at which levels are drawn.

    Declaration

    Objective-C

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

    Swift

    var levels: [NSNumber] { get set }
  • The colours used to fill the regions between levels, treated as a ramp.

    Declaration

    Objective-C

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

    Swift

    var regionColors: [UIColor] { get set }
  • 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 }
  • Determines whether a connector line is drawn between the two base points.

    Declaration

    Objective-C

    @property (nonatomic) BOOL showConnectorLine;

    Swift

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

    Declaration

    Objective-C

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

    Swift

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

    Declaration

    Objective-C

    @property (nonatomic) SCIFibonacciLabelPlacement fibonacciLabelPlacement;

    Swift

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

    Declaration

    Objective-C

    @property (nonatomic) SCIFibonacciLabelColorMode fibonacciLabelColorMode;

    Swift

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

    Declaration

    Objective-C

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

    Swift

    var labelStyle: SCIFontStyle? { get set }