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 inheritedstroke, and
their colour from regionColors.
-
Defines the Fibonacci ratios at which levels are drawn.
Note
Defaults to0, 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 tothresholds.count - 1entries, 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
SCIPenStyleused to draw the connector line between the two base points.Note
Whennil, 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
SCIFontStyleused by the level labels.Note
Its text colour is only used whenfibonacciLabelColorModeisSCIFibonacciLabelColorMode_SingleColor; otherwise each label matches its level line.Declaration
Objective-C
@property (nonatomic, strong) SCIFontStyle *_Nonnull labelStyle;Swift
var labelStyle: SCIFontStyle { get set }
View on GitHub