OhlcDataSeries

StockSharp.Xaml.Charting.Model.DataSeries

A DataSeries to store OHLC data-points, containing X and Y-Open, Y-High, Y-Low, Y-Close values. May be used as a DataSource for and as well as standard XY renderable series types

Inherits: DataSeries<T, T>

Implements: IOhlcDataSeries<T, T>, IDataSeries<T, T>, IDataSeries, ISuspendable, IOhlcDataSeries, ITimeframeDataSeries

Constructors

OhlcDataSeries
public OhlcDataSeries()
ohlcDataSeries = OhlcDataSeries()

Initializes a new instance of the OhlcDataSeries class.

Properties

CloseValues
public IList<TY> CloseValues { get; }
value = ohlcDataSeries.CloseValues

Gets the Close Values of this DataSeries, if the data is OHLC

DataSeriesType
public override DataSeriesType DataSeriesType { get; }
value = ohlcDataSeries.DataSeriesType

Gets the DataSeriesType for this DataSeries

HasValues
public override bool HasValues { get; }
value = ohlcDataSeries.HasValues

Gets whether the Data Series has values (is not empty)

HighValues
public IList<TY> HighValues { get; }
value = ohlcDataSeries.HighValues

Gets the High Values of this DataSeries, if the data is OHLC

LowValues
public IList<TY> LowValues { get; }
value = ohlcDataSeries.LowValues

Gets the Low Values of this DataSeries, if the data is OHLC

OpenValues
public IList<TY> OpenValues { get; }
value = ohlcDataSeries.OpenValues

Gets the Open Values of this DataSeries, if the data is OHLC

StockSharp#Xaml#Charting#Model#DataSeries#IOhlcDataSeries#CloseValues

Gets the Close Values of this DataSeries as a List of IComparable

StockSharp#Xaml#Charting#Model#DataSeries#IOhlcDataSeries#HighValues

Gets the High Values of this DataSeries as a List of IComparable

StockSharp#Xaml#Charting#Model#DataSeries#IOhlcDataSeries#LowValues

Gets the Low Values of this DataSeries as a List of IComparable

YRange
public override IRange YRange { get; }
value = ohlcDataSeries.YRange

Gets the computed YRange, which is an IRange wrapping YMin and YMax properties

Methods

Append
public void Append(IEnumerable<TX> x, IEnumerable<TY> open, IEnumerable<TY> high, IEnumerable<TY> low, IEnumerable<TY> close)
ohlcDataSeries.Append(x, open, high, low, close)

Appends a list of Open, High, Low, Close points to the series

x
The list of X values
open
The list of Open values
high
The list of High values
low
The list of Low values
close
The list of Close values
Append
public void Append(TX x, TY open, TY high, TY low, TY close)
ohlcDataSeries.Append(x, open, high, low, close)

Appends an Open, High, Low, Close point to the series

x
The X value
open
The Open value
high
The High value
low
The Low value
close
The Close value
Append
public override void Append(IEnumerable<TX> x, IEnumerable<TY>[] yValues)
ohlcDataSeries.Append(x, yValues)

Appends a list of X, Y points to the series

x
The list of X points
yValues
Lists of Y points (depends on series type)
Append
public override void Append(TX x, TY[] yValues)
ohlcDataSeries.Append(x, yValues)

Appends an X, Y point to the series

x
The X Value
yValues
The Y Values (depends on series type)
ClearColumns
protected override void ClearColumns()
ohlcDataSeries.ClearColumns()

When overridden in a derived class, clears all columns in the Data Series

Clone
public override IDataSeries<TX, TY> Clone()
result = ohlcDataSeries.Clone()

Creates a deep copy of a DataSeries

GetYMaxAt
public override TY GetYMaxAt(int index, TY existingYMax)
result = ohlcDataSeries.GetYMaxAt(index, existingYMax)

When overriden in a derived class, gets the Max(existingYMax, currentMax), where currentMax is the maximum at the specified index

index
The index to the underlying dataset
existingYMax
The existing maximum

Returns: The new YMax, which is the Min(existingYMax, currentMax)

GetYMinAt
public override TY GetYMinAt(int index, TY existingYMin)
result = ohlcDataSeries.GetYMinAt(index, existingYMin)

When overriden in a derived class, gets the Min(existingYMin, currentMin), where currentMin is the minimum at the specified index

index
The index to the underlying dataset
existingYMin
The existing minimum

Returns: The new YMin, which is the Min(existingYMin, currentMin)

Insert
public void Insert(int index, TX x, TY open, TY high, TY low, TY close)
ohlcDataSeries.Insert(index, x, open, high, low, close)

Inserts an Open, High, Low, Close point at the specified index

index
The index to insert at
x
The X value
open
The Open value
high
The High value
low
The low value
close
The close value
InsertRange
public void InsertRange(int startIndex, IEnumerable<TX> x, IEnumerable<TY> open, IEnumerable<TY> high, IEnumerable<TY> low, IEnumerable<TY> close)
ohlcDataSeries.InsertRange(startIndex, x, open, high, low, close)

Inserts a list of Open, High, Low, Close points at the specified index

startIndex
The index to insert at
x
The list of X values
open
The list of Open values
high
The list of High values
low
The list of Low values
close
The list of Close values
RemoveAt
public override void RemoveAt(int index)
ohlcDataSeries.RemoveAt(index)

Removes the X,Y values at the specified index

index
The index to remove at
RemoveRange
public override void RemoveRange(int startIndex, int count)
ohlcDataSeries.RemoveRange(startIndex, count)

Removes a range of points starting from the specified index

startIndex
Starting index of the range of elements to remove
count
The number of elements to remove
ToHitTestInfo
public override HitTestInfo ToHitTestInfo(int index)
result = ohlcDataSeries.ToHitTestInfo(index)

When overridden in a derived class, returns a HitTestInfo struct containing data about the data-point at the specified index

index
The index to the DataSeries

Returns: The HitTestInfo

ToPointSeries
public override IPointSeries ToPointSeries(ResamplingMode resamplingMode, IndexRange pointRange, int viewportWidth, bool isCategoryAxis, bool? dataIsDisplayedAs2D, IRange visibleXRange, IPointResamplerFactory factory, object pointSeriesArg)
result = ohlcDataSeries.ToPointSeries(resamplingMode, pointRange, viewportWidth, isCategoryAxis, dataIsDisplayedAs2D, visibleXRange, factory, pointSeriesArg)

Converts the default YValues to an IPointSeries which is used to render XY series

resamplingMode
The desired ResamplingMode
pointRange
The integer Indices range in the parent data-set
viewportWidth
The current width of the viewport
isCategoryAxis
If true, uses the indices to form the resampled X-values, else uses the X-Values themselves
dataIsDisplayedAs2D
If true, then data is presented as a scatter series without relationship between the points, e.g. not a line series
visibleXRange
The XAxis VisibleRange at the time of resampling
factory
The IPointResamplerFactory Instance
pointSeriesArg
Additional parameter to the point series.

Returns: A IPointSeries which is used to render XY series

Update
public void Update(TX x, TY open, TY high, TY low, TY close)
ohlcDataSeries.Update(x, open, high, low, close)

Updates an Open, High, Low, Close point specified by the X-Value passed in.

x
The X Value to key on when updating
open
The Open value
high
The High value
low
The Low value
close
The Close value