ExpressionIndexSecurity

StockSharp.Algo.Expressions

Индекс, построенный из комбинации нескольких инструментов посредством математической формулы Expression.

Наследует: 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()

Создает глубокую копию 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()

Преобразовать к строковому представлению.

Возвращает: Строковое представление.