OhlcDataSeries

StockSharp.Xaml.Charting.Model.DataSeries

一个存储 OHLC 数据点的 DataSeries, 包含 X 和 Y- Open, Y- High, Y- Low, Y- 关闭值。 可用于 & 标准 XY 渲染序列类型 。

继承自: DataSeries<T, T>

实现: IOhlcDataSeries<T, T>, IDataSeries<T, T>, IDataSeries, ISuspendable, IOhlcDataSeries, ITimeframeDataSeries

构造函数

OhlcDataSeries
public OhlcDataSeries()
ohlcDataSeries = OhlcDataSeries()

初始化了 & ##OhlcDataSeries+# 类的新实例 。

属性

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

获取此%% DataSeries%%%%%% 的近值, 如果数据为 OHLC

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

获得此 & # # # #DataSeriesType # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #

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

获取数据序列是否有值( 不是空的)

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

获得此%% DataSeries%%%%%% 的高值, 如果数据为 OHLC

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

获取此%% DataSeries%%%%%%% 的低值, 如果数据为 OHLC

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

获取此%% DataSeries 的开放值, 如果数据是 OHLC

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

获取此%% DataSeries%%%%%%s 的近值为 IComparabable 列表

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

获得此%% DataSeries%%%%%%%%%s 的高值作为比较列表

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

获得此%% DataSeries 的低值作为 IComparabable 列表

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

获得计算 YRange, 即IRang 包接 YMIN 和 YMax 属性

方法

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)

将一个开放、高、低、近点列表添加到系列中

x
X 值列表
open
打开值列表
high
高值列表
low
低值列表
close
关闭值列表
Append
public void Append(TX x, TY open, TY high, TY low, TY close)
ohlcDataSeries.Append(x, open, high, low, close)

将一个开放、 高、 低、 相近点附加到系列中

x
X 值
open
打开值
high
高值
low
低值
close
近值
Append
public override void Append(IEnumerable<TX> x, IEnumerable<TY>[] yValues)
ohlcDataSeries.Append(x, yValues)

附加 X 列表, Y 指向序列

x
X 点列表
yValues
Y分列表( 取决于系列类型)
Append
public override void Append(TX x, TY[] yValues)
ohlcDataSeries.Append(x, yValues)

附加一个 X, Y 指向序列

x
X 值
yValues
Y 值( 取决于系列类型)
ClearColumns
protected override void ClearColumns()
ohlcDataSeries.ClearColumns()

当在某一类中被覆盖时, 清除数据序列中的所有列

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)

当在衍生类中被覆盖时,获得最大值(existingYMax,currentMax),其中currentMax是指定索引中的最大值

index
基础数据集的索引
existingYMax
现有上限

返回值: 新的YMax,即Min(existingYMax,currentMax).

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

当在衍生类中被覆盖时, 可获得 Min(%% existingYMin+%,% currentMin+%), 其中的% currentMin+%% 是指定索引中最小的

index
基础数据集的索引
existingYMin
现有最低限额

返回值: 新的YMIN,即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)

在指定的索引上插入一个打开、 高、 低、 关闭点

index
插入的索引
x
X 值
open
打开值
high
高值
low
低值
close
近值
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)

在指定的索引上插入一个打开、 高、 低、 关闭点的列表

startIndex
插入的索引
x
X 值列表
open
打开值列表
high
高值列表
low
低值列表
close
关闭值列表
RemoveAt
public override void RemoveAt(int index)
ohlcDataSeries.RemoveAt(index)

删除指定索引中的 X, Y 值

index
要删除的索引 :
RemoveRange
public override void RemoveRange(int startIndex, int count)
ohlcDataSeries.RemoveRange(startIndex, count)

删除从指定的索引开始的点范围

startIndex
开始删除元素范围的索引
count
要删除的元素数量
ToHitTestInfo
public override HitTestInfo ToHitTestInfo(int index)
result = ohlcDataSeries.ToHitTestInfo(index)

当在衍生类中被覆盖时, 返回包含指定索引数据点的 HitTestInfo 结构

index
The index to the DataSeries

返回值: 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)

将默认的 YValues 转换为用于渲染 XY 序列的 IPointSeries

resamplingMode
The desired ResamplingMode
pointRange
父数据集中的整数索引范围
viewportWidth
视图的当前宽度
isCategoryAxis
如果真实, 使用索引来组成被重印的 X 值, 否则使用 X 值本身
dataIsDisplayedAs2D
如果数据是真实的, 那么数据会被显示为散射序列, 而不在点之间发生关系, e.g 。 而不是行序列 。
visibleXRange
重作取样时的轴 VisibleRange
factory
The IPointResamplerFactory Instance
pointSeriesArg
点序列的附加参数.

返回值: 用于制取 XY 系列的 IPointSeries 相机

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

更新 X Value 指定的 Open、High、Low、Close 点。

x
更新时的 X 值为按键
open
打开值
high
高值
low
低值
close
近值