ZigZagIndicatorValue

StockSharp.Algo.Indicators

ZigZag indicator value.

Inherits: ShiftedIndicatorValue

Constructors

ZigZagIndicatorValue
public ZigZagIndicatorValue(IIndicator indicator, DateTime time)
zigZagIndicatorValue = ZigZagIndicatorValue(indicator, time)

Initializes a new instance of the ZigZagIndicatorValue.

indicator
Indicator.
time
Time
ZigZagIndicatorValue
public ZigZagIndicatorValue(IIndicator indicator, decimal value, int shift, DateTime time, bool isUp)
zigZagIndicatorValue = ZigZagIndicatorValue(indicator, value, shift, time, isUp)

Initializes a new instance of the ZigZagIndicatorValue.

indicator
Indicator.
value
Indicator value.
shift
The shift of the indicator value.
time
Time
isUp
IsUp

Properties

IsUp
public bool IsUp { get; private set; }
value = zigZagIndicatorValue.IsUp
zigZagIndicatorValue.IsUp = value

Is the trend up.

Methods

FromValues
public override void FromValues(object[] values)
zigZagIndicatorValue.FromValues(values)

Convert to indicator value.

values
ToValues
ToValues
public override IEnumerable<object> ToValues()
result = zigZagIndicatorValue.ToValues()

Convert to primitive values.

Returns: Primitive values.