Table of Contents

Class ChartOhlc

Namespace
TwBlazor.Models
Assembly
TwBlazor.dll

The open, high, low and close values for one period, plotted by TwCandlestickChart.

public sealed record ChartOhlc : IEquatable<ChartOhlc>
Inheritance
ChartOhlc
Implements
Inherited Members

Constructors

ChartOhlc(string, double, double, double, double)

The open, high, low and close values for one period, plotted by TwCandlestickChart.

public ChartOhlc(string Label, double Open, double High, double Low, double Close)

Parameters

Label string

The period label shown on the axis, tooltips and table view.

Open double

The opening value.

High double

The highest value.

Low double

The lowest value.

Close double

The closing value.

Properties

Close

The closing value.

public double Close { get; init; }

Property Value

double

High

The highest value.

public double High { get; init; }

Property Value

double

Label

The period label shown on the axis, tooltips and table view.

public string Label { get; init; }

Property Value

string

Low

The lowest value.

public double Low { get; init; }

Property Value

double

Open

The opening value.

public double Open { get; init; }

Property Value

double

Methods

Deconstruct(out string, out double, out double, out double, out double)

public void Deconstruct(out string Label, out double Open, out double High, out double Low, out double Close)

Parameters

Label string
Open double
High double
Low double
Close double

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(ChartOhlc?)

public bool Equals(ChartOhlc? other)

Parameters

other ChartOhlc

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(ChartOhlc?, ChartOhlc?)

public static bool operator ==(ChartOhlc? left, ChartOhlc? right)

Parameters

left ChartOhlc
right ChartOhlc

Returns

bool

operator !=(ChartOhlc?, ChartOhlc?)

public static bool operator !=(ChartOhlc? left, ChartOhlc? right)

Parameters

left ChartOhlc
right ChartOhlc

Returns

bool