ExpressionIndexSecurity

StockSharp.Algo.Expressions

索引,由数个仪器通过数学公式表达式组合而成.

继承自: IndexSecurity

实现: IDisposable

构造函数

ExpressionIndexSecurity
public ExpressionIndexSecurity()
expressionIndexSecurity = ExpressionIndexSecurity()

初始化了 & ##ExpressionIndexSecurity+#的新实例.

属性

Expression
public string Expression { get; set; }
value = expressionIndexSecurity.Expression
expressionIndexSecurity.Expression = value

指数的数学公式.

Formula
public ExpressionFormula<decimal> Formula { get; }
value = expressionIndexSecurity.Formula

编译出数学公式.

InnerSecurityIds
public override IEnumerable<SecurityId> InnerSecurityIds { get; }
value = expressionIndexSecurity.InnerSecurityIds

工具,是用来创建这个篮子的。

方法

Clone
public override Security Clone()
result = expressionIndexSecurity.Clone()

Creates a deep copy of a DataSeries

返回值: Copy.

FromSerializedString
protected override void FromSerializedString(string text)
expressionIndexSecurity.FromSerializedString(text)

装入金融工具状态从.

text
价值,从ToSerializedString收到。
GetFormulaAsync
public ValueTask<ExpressionFormula<decimal>> GetFormulaAsync(CancellationToken cancellationToken)
result = expressionIndexSecurity.GetFormulaAsync(cancellationToken)

Get the mathematical formula compiled from Expression.

cancellationToken
CancellationToken

返回值: Compiled mathematical formula. A text that cannot be compiled gives a formula whose Error says why.

ToSerializedString
protected override string ToSerializedString()
result = expressionIndexSecurity.ToSerializedString()

保存金融工具状态为字符串 。

返回值: 弦乐

ToString
public override string ToString()
result = expressionIndexSecurity.ToString()

转换为行代表.

返回值: 弦乐表演.