Skip to content

OHLCData

StructChartGuruChartGuru
public struct OHLCData

OHLC data structure for candlestick charts.

public float X

Returns

System.Single

public float Open

Returns

System.Single

public float High

Returns

System.Single

public float Low

Returns

System.Single

public float Close

Returns

System.Single

public float Volume

Returns

System.Single

OHLCData(float, float, float, float, float, float)

Section titled “OHLCData(float, float, float, float, float, float)”
public OHLCData(float x, float open, float high, float low, float close, float volume = 0)

Creates one open-high-low-close sample at the specified X position, with optional volume metadata.

Parameters

NameType
xSystem.Single
openSystem.Single
highSystem.Single
lowSystem.Single
closeSystem.Single
volumeSystem.Single

public CandleStickMark ToCandlestick()

Creates a candlestick mark from the price fields. Volume is not represented by the returned mark.

Returns

ChartGuru.CandleStickMark

public bool IsBullish { get; }

Returns

System.Boolean