ChartIQCondition
public class ChartIQCondition : NSObject
Encapsulates parameters with additional information for Condition.
-
The ChartIQCondition leftIndicator parameter. Is a field in the study’s outputMap.
Declaration
Swift
public var leftIndicator: String
-
The ChartIQCondition operator parameter.
Declaration
Swift
public var `operator`: ChartIQSignalOperator
-
The ChartIQCondition rightIndicator parameter. Can be either a numeric value in string or a field in the study’s outputMap.
Declaration
Swift
public var rightIndicator: String
-
The ChartIQCondition markerOptions parameter. Optional settings for main series marker. When multiple conditions match, markerOptions from the first matching condition are applied.
Declaration
Swift
public var markerOptions: ChartIQMarkerOptions?
-
Init Condition model with all parameters.
Declaration
Swift
public init(leftIndicator: String, `operator`: ChartIQSignalOperator, rightIndicator: String, markerOptions: ChartIQMarkerOptions?)
Parameters
leftIndicator
The String Object.
operator
The ChartIQSignalOperator model.
rightIndicator
The String Object.
markerOptions
The ChartIQMarkerOptions model.
-
Init Condition model with dictionary.
Declaration
Swift
public init?(array: [Any])
Parameters
array
The array with data for init Condition model.
-
Convert Condition model to array.
Declaration
Swift
public func toArray() -> [Any]
Return Value
The dictionary with Condition model parameters.