CandlestickMark<T> Class

Draws a candlestick per row (OHLC prices): a line from the low to the high price, and a box from the open to the close price, in the positive color of the theme when the price rises and in its negative color when it falls.

public sealed class CandlestickMark<T> : Mark<T>

Type parameters

T
The type of the rows.
Inheritance
Mark<T> CandlestickMark<T>

Constructors

NameDescription
CandlestickMark(IEnumerable<T>, Func<T, object?>, Func<T, object?>, Func<T, object?>, Func<T, object?>, Func<T, object?>)Initializes a new instance of the CandlestickMark<T> class.

CandlestickMark(IEnumerable<T>, Func<T, object?>, Func<T, object?>, Func<T, object?>, Func<T, object?>, Func<T, object?>)

CandlestickMark.cs

Initializes a new instance of the CandlestickMark<T> class.

public CandlestickMark(IEnumerable<T> data, Func<T, object?> x, Func<T, object?> open, Func<T, object?> high, Func<T, object?> low, Func<T, object?> close)

Parameters

data IEnumerable<T>
The rows.
x Func<T, object?>
The channel of the time or the category of the candle.
open Func<T, object?>
The channel of the open price.
high Func<T, object?>
The channel of the high price.
low Func<T, object?>
The channel of the low price.
close Func<T, object?>
The channel of the close price.

Properties

NameDescription
CandleWidthGets or sets the width of a candle, as a fraction of the space between two candles. The default is 0.6.
CloseGets the channel of the close price.
HighGets the channel of the high price.
LowGets the channel of the low price.
OpenGets the channel of the open price.
XGets the channel of the time or the category of the candle.

Gets or sets the width of a candle, as a fraction of the space between two candles. The default is 0.6.

public double CandleWidth { get; set; }

Property value

double

Gets the channel of the close price.

public Func<T, object?> Close { get; }

Property value

Func<T, object?>

Gets the channel of the high price.

public Func<T, object?> High { get; }

Property value

Func<T, object?>

Gets the channel of the low price.

public Func<T, object?> Low { get; }

Property value

Func<T, object?>

Gets the channel of the open price.

public Func<T, object?> Open { get; }

Property value

Func<T, object?>

Gets the channel of the time or the category of the candle.

public Func<T, object?> X { get; }

Property value

Func<T, object?>